diff --git a/BUILD.md b/BUILD.md index 93db5b3a..b33523db 100644 --- a/BUILD.md +++ b/BUILD.md @@ -72,7 +72,9 @@ Build guide for VMG8825-B50B V5.17(ABNY.7)C0 Clean and build the firmware $ make dirclean - $ make -j${nproc} V=s + $ make -j1 V=sc + + It is important to compile with -j1 because forcing multicore can cause problems when compiling libjson-c 6. The image is in the images directory. diff --git a/build.sh b/build.sh index 4b1730a7..ccf08c25 100755 --- a/build.sh +++ b/build.sh @@ -10,10 +10,10 @@ echo "Building Docker image ${IMAGE_NAME}..." docker build -t ${IMAGE_NAME} . echo "Starting container..." -docker run --cpus="8" -it --name ${CONTAINER_NAME} \ +docker run --cpus="1" -it --name ${CONTAINER_NAME} \ -e TERM=vt100 \ ${IMAGE_NAME} \ - /bin/bash -c "cd /home/builder/openwrt && bash" + /bin/bash -c "cd /home/builder/openwrt && make -j1 V=sc" docker cp ${CONTAINER_NAME}:.config ./.config-build docker cp ${CONTAINER_NAME}:defconfig.log ./defconfig-build.log