mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
Merge pull request #494 from fbelavenuto/docker-changes
Just testing new functions to compile with docker
This commit is contained in:
commit
57751762ff
9
docker/syno-compiler/PLATFORMS
Normal file
9
docker/syno-compiler/PLATFORMS
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
bromolow 3.10.108
|
||||||
|
apollolake 4.4.180
|
||||||
|
broadwell 4.4.180
|
||||||
|
broadwellnk 4.4.180
|
||||||
|
denverton 4.4.180
|
||||||
|
geminilake 4.4.180
|
||||||
|
v1000 4.4.180
|
||||||
|
r1000 4.4.180
|
||||||
|
epyc7002 5.10.55
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
CACHE_DIR="cache"
|
CACHE_DIR="cache"
|
||||||
PLATFORM_FILE="../../PLATFORMS"
|
PLATFORM_FILE="PLATFORMS"
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
function trap_cancel() {
|
function trap_cancel() {
|
||||||
|
@ -51,8 +51,12 @@ function compile-module {
|
|||||||
echo -e "Compiling module for \033[7m${PLATFORM}-${KVER}\033[0m..."
|
echo -e "Compiling module for \033[7m${PLATFORM}-${KVER}\033[0m..."
|
||||||
cp -R /input /tmp
|
cp -R /input /tmp
|
||||||
export-vars ${PLATFORM}
|
export-vars ${PLATFORM}
|
||||||
make -C "/opt/${PLATFORM}/build" M="/tmp/input" \
|
PARMS="${PLATFORM^^}-Y=y ${PLATFORM^^}-M=m"
|
||||||
${PLATFORM^^}-Y=y ${PLATFORM^^}-M=m modules
|
if [ -f "/tmp/input/defines" ]
|
||||||
|
then
|
||||||
|
PARMS+=" `cat "/tmp/input/defines" | xargs`"
|
||||||
|
fi
|
||||||
|
make -C "/opt/${PLATFORM}/build" M="/tmp/input" ${PARMS} modules
|
||||||
while read F; do
|
while read F; do
|
||||||
strip -g "${F}"
|
strip -g "${F}"
|
||||||
echo "Copying `basename ${F}`"
|
echo "Copying `basename ${F}`"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user