Just testing new functions to compile with docker

This commit is contained in:
Fabio Belavenuto
2023-01-11 20:51:32 -03:00
parent fb6c441159
commit e66f415ce0
3 changed files with 16 additions and 3 deletions

View File

@@ -51,8 +51,12 @@ function compile-module {
echo -e "Compiling module for \033[7m${PLATFORM}-${KVER}\033[0m..."
cp -R /input /tmp
export-vars ${PLATFORM}
make -C "/opt/${PLATFORM}/build" M="/tmp/input" \
${PLATFORM^^}-Y=y ${PLATFORM^^}-M=m modules
PARMS="${PLATFORM^^}-Y=y ${PLATFORM^^}-M=m"
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
strip -g "${F}"
echo "Copying `basename ${F}`"