From bc156b902ed665b811db370c5201b740b437b02a Mon Sep 17 00:00:00 2001 From: Fabio Belavenuto Date: Thu, 12 Jan 2023 16:06:48 -0300 Subject: [PATCH] More docker adjustments --- docker/syno-compiler/files/opt/do.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/syno-compiler/files/opt/do.sh b/docker/syno-compiler/files/opt/do.sh index b94fa70c..d90c4945 100755 --- a/docker/syno-compiler/files/opt/do.sh +++ b/docker/syno-compiler/files/opt/do.sh @@ -52,11 +52,11 @@ function compile-module { cp -R /input /tmp export-vars ${PLATFORM} PARMS="${PLATFORM^^}-Y=y ${PLATFORM^^}-M=m" - if [ -f "/tmp/input/defines" ] + if [ -f "/tmp/input/defines.${1}" ] then - PARMS+=" `cat "/tmp/input/defines" | xargs`" + PARMS+=" `cat "/tmp/input/defines.${1}" | xargs`" fi - make -C "/opt/${PLATFORM}/build" M="/tmp/input" ${PARMS} modules + make -j`nproc` -C "/opt/${PLATFORM}/build" M="/tmp/input" ${PARMS} modules while read F; do strip -g "${F}" echo "Copying `basename ${F}`"