Skip to content

Commit

Permalink
Merge pull request RedPill-TTG#14 from fbelavenuto/old-docker-compile
Browse files Browse the repository at this point in the history
Using old docker image for compiling
  • Loading branch information
fbelavenuto authored Jan 3, 2023
2 parents c297b1d + 44efa8a commit d41d736
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions compile-lkms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ function compileLkm() {
OUT_PATH="${TMP_PATH}/${PLATFORM}"
mkdir -p "${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
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 @@ -32,8 +34,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 d41d736

Please sign in to comment.