Skip to content

Commit

Permalink
Merge pull request #4 from fbelavenuto/master
Browse files Browse the repository at this point in the history
merge
  • Loading branch information
dogodefi authored Jan 3, 2023
2 parents 4f833ac + 3327bac commit 35abefa
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions compile-lkms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ function compileLkm() {
KVER=$2
OUT_PATH="${TMP_PATH}/${PLATFORM}"
mkdir -p "${OUT_PATH}"
sudo chmod 1777 "${OUT_PATH}"
# Compile using docker
docker run --rm -t -v "${OUT_PATH}":/output -v "${PWD}":/input \
fbelavenuto/syno-toolkit:${PLATFORM}-${TOOLKIT_VER} compile-lkm
# docker run --rm -t -v "${OUT_PATH}":/output -v "${PWD}":/input \
# fbelavenuto/syno-toolkit:${PLATFORM}-${TOOLKIT_VER} compile-lkm
docker run -u 1000 --rm -t -v "${OUT_PATH}":/output -v "${PWD}":/input \
fbelavenuto/syno-compiler:${TOOLKIT_VER} compile-lkm ${PLATFORM}
mv "${OUT_PATH}/redpill-dev.ko" "${DEST_PATH}/rp-${PLATFORM}-${KVER}-dev.ko"
rm -f "${DEST_PATH}/rp-${PLATFORM}-${KVER}-dev.ko.gz"
gzip "${DEST_PATH}/rp-${PLATFORM}-${KVER}-dev.ko"
Expand All @@ -34,8 +37,9 @@ function compileLkm() {
}

# Main
docker pull fbelavenuto/syno-compiler:${TOOLKIT_VER}
while read PLATFORM KVER; do
docker pull fbelavenuto/syno-toolkit:${PLATFORM}-${TOOLKIT_VER}
# docker pull fbelavenuto/syno-toolkit:${PLATFORM}-${TOOLKIT_VER}
compileLkm "${PLATFORM}" "${KVER}" &
done < PLATFORMS
wait

0 comments on commit 35abefa

Please sign in to comment.