diff --git a/docker_vars.sh b/docker_vars.sh index 5a096a1..55e3fb6 100644 --- a/docker_vars.sh +++ b/docker_vars.sh @@ -1 +1,2 @@ docker_src=/devel/docker +build_threads=24 diff --git a/openwrt/Makefile b/openwrt/Makefile index aa4fedf..3f37b71 100644 --- a/openwrt/Makefile +++ b/openwrt/Makefile @@ -39,7 +39,7 @@ output: ${docker_src}/built/openwrt-builder-master.sentinel $(BASE_REQS) -v $$PWD/input:/input \ -v $$PWD/input.sh:/input.sh \ -v $$PWD/output.sh:/output.sh \ - --rm -it openwrt-builder-master make V=ssc -j24 build + --rm -it openwrt-builder-master make V=ssc -j ${build_threads} output-%: ${docker_src}/built/openwrt-builder-%.sentinel $(BASE_REQS) docker run \ @@ -47,7 +47,7 @@ output-%: ${docker_src}/built/openwrt-builder-%.sentinel $(BASE_REQS) -v $$PWD/input:/input \ -v $$PWD/input.sh:/input.sh \ -v $$PWD/output.sh:/output.sh \ - --rm -it openwrt-builder-$* make V=ssc -j24 + --rm -it openwrt-builder-$* make V=ssc -j ${build_threads} debug-%: ${docker_src}/built/openwrt-builder-%.sentinel $(BASE_REQS) docker run \