diff --git a/docker/syno-compiler/files/opt/do.sh b/docker/syno-compiler/files/opt/do.sh index d90c4945..4ec4cd48 100755 --- a/docker/syno-compiler/files/opt/do.sh +++ b/docker/syno-compiler/files/opt/do.sh @@ -23,7 +23,7 @@ function export-vars() { ############################################################################### function shell() { - cp /opt/${2}/build/System.map /input + #cp /opt/${2}/build/System.map /input export-vars $2 shift 2 bash -l $@ diff --git a/docker/syno-toolkit/PLATFORMS b/docker/syno-toolkit/PLATFORMS new file mode 100644 index 00000000..2c77de1e --- /dev/null +++ b/docker/syno-toolkit/PLATFORMS @@ -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 diff --git a/docker/syno-toolkit/build.sh b/docker/syno-toolkit/build.sh index e17769ca..d19ab396 100755 --- a/docker/syno-toolkit/build.sh +++ b/docker/syno-toolkit/build.sh @@ -3,7 +3,7 @@ set -e CACHE_DIR="cache" -PLATFORM_FILE="../../PLATFORMS" +PLATFORM_FILE="PLATFORMS" TOOLKIT_VER=7.1 ############################################################################### diff --git a/docker/syno-toolkit/rootfs/usr/bin/do.sh b/docker/syno-toolkit/rootfs/usr/bin/do.sh index af9b31ee..61bbe0da 100755 --- a/docker/syno-toolkit/rootfs/usr/bin/do.sh +++ b/docker/syno-toolkit/rootfs/usr/bin/do.sh @@ -6,7 +6,11 @@ set -e function compile-module { echo -e "Compiling module for \033[7m${PLATFORM}\033[0m..." cp -R /input /tmp - make -C ${KSRC} M=/tmp/input ${PLATFORM^^}-Y=y ${PLATFORM^^}-M=m modules + PARMS="${PLATFORM^^}-Y=y ${PLATFORM^^}-M=m" + if [ -f "/tmp/input/defines.${PLATFORM}" ]; then + PARMS+=" `cat "/tmp/input/defines.${PLATFORM}" | xargs`" + fi + make -j`nproc` -C ${KSRC} M=/tmp/input ${PARMS} modules while read F; do strip -g "${F}" echo "Copying `basename ${F}`" diff --git a/files/board/arpl/p1/grub/grub.cfg b/files/board/arpl/p1/grub/grub.cfg index 9241eeb7..54cbb2ea 100644 --- a/files/board/arpl/p1/grub/grub.cfg +++ b/files/board/arpl/p1/grub/grub.cfg @@ -30,10 +30,10 @@ function load_video { } load_video -if loadfont unicode ; then +if loadfont unicode; then set gfxmode=auto insmod gfxterm - #set gfxpayload=800x600 + set gfxpayload=keep terminal_output gfxterm fi