Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Just testing new functions to compile with docker #494

Merged
merged 1 commit into from
Jan 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docker/syno-compiler/PLATFORMS
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion docker/syno-compiler/build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

CACHE_DIR="cache"
PLATFORM_FILE="../../PLATFORMS"
PLATFORM_FILE="PLATFORMS"

###############################################################################
function trap_cancel() {
Expand Down
8 changes: 6 additions & 2 deletions docker/syno-compiler/files/opt/do.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}`"
Expand Down