diff --git a/openwrt/Makefile b/openwrt/Makefile new file mode 100644 index 0000000..8e6eaf8 --- /dev/null +++ b/openwrt/Makefile @@ -0,0 +1,31 @@ +define INC_NEWOPENWRT = + 1 +endef +$(info Defined INC_NEWOPENWRT) + +include /devel/docker/docker_vars.sh +export + +unexport INC_DOCKER +ifndef INC_DOCKER +include ${docker_src}/Makefile +endif + +.PHONY: input +input: + rm -rf input; mkdir -p input; chmod 777 input; + +.PHONY: prep-output +prep-output: + rm -rf output; mkdir output; chmod 777 output; + +input/diffconfig: diffconfig input + cp $< $@ + +output: diffconfig ${docker_src}/built/openwrt-builder-master.sentinel prep-output input/diffconfig input.sh output.sh + docker run \ + -v $$PWD/output:/output \ + -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 diff --git a/openwrt/input.sh b/openwrt/input.sh new file mode 100755 index 0000000..15b6a73 --- /dev/null +++ b/openwrt/input.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +cd /builder/openwrt + +cp /input/diffconfig .config + +make defconfig diff --git a/openwrt/output.sh b/openwrt/output.sh new file mode 100755 index 0000000..3ae9974 --- /dev/null +++ b/openwrt/output.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +cd /builder/openwrt + +cp -r bin /output/ + +cp .config /output/ +./scripts/diffconfig.sh > diffconfig +cp diffconfig /output/