build: the proper way

pull/514/head 2021-03-30
John Doe 2021-03-29 15:44:13 +08:00
parent 8afc1155e5
commit d4d79d2187
No known key found for this signature in database
GPG Key ID: 30F190E0C359CB4F
3 changed files with 4 additions and 11 deletions

View File

@ -92,16 +92,10 @@ jobs:
run: |
cd ~/lede
cat $GITHUB_WORKSPACE/extra_packages.seed >> .config
find package/ -type d -name luci-app-* | rev | cut -d'/' -f1 | rev | xargs -n1 -i echo CONFIG_PACKAGE_{}=y >> .config
find package/ -type d -name luci-app-* | rev | cut -d'/' -f1 | rev | xargs -n1 -i echo CONFIG_PACKAGE_{}=m >> .config
make defconfig && cat .config
while true; do make download -j && break || true; done
make tools/compile -j$[`nproc`+1]
make toolchain/compile -j$[`nproc`+1]
make target/linux/compile -j$[`nproc`+1]
make package/compile -j$[`nproc`+1] IGNORE_ERRORS=y
make package/index
sed -i "s/\-[a-z0-9]\{32\})/)/" bin/targets/*/*/packages/Packages bin/targets/*/*/packages/Packages.manifest
gzip -f bin/targets/*/*/packages/Packages
make -j$[`nproc`+1] IGNORE_ERRORS=1
cat $GITHUB_WORKSPACE/$DEVICE.config.seed | sed '/CONFIG_PACKAGE_luci-app-/d' > .config
find package/ -type d -name luci-app-* | rev | cut -d'/' -f1 | rev | xargs -n1 -i echo "# CONFIG_PACKAGE_{} is not set" >> .config

View File

@ -1,2 +1,2 @@
CONFIG_PACKAGE_zram-swap=y
CONFIG_PACKAGE_xl2tpd=y
CONFIG_PACKAGE_zram-swap=m
CONFIG_PACKAGE_xl2tpd=m

View File

@ -9,7 +9,6 @@ sed -i "s/option sfe_flow '1'/option sfe_flow '0'/" package/ctcgfw/luci-app-turb
sed -i "s/option sfe_bridge '1'/option sfe_bridge '0'/" package/ctcgfw/luci-app-turboacc/root/etc/config/turboacc
sed -i "/dep.*INCLUDE_.*=n/d" package/ctcgfw/luci-app-turboacc/Makefile
sed -i '/Installed-Time/a\sed -i "s/\\([[:digit:]]\)-[a-z0-9]\{32\}/\1/" $(1)/usr/lib/opkg/status\' include/rootfs.mk
find . -type f -name nft-qos.config | xargs sed -i "s/option limit_enable '1'/option limit_enable '0'/"
sed -i "/\/etc\/coremark\.sh/d" package/feeds/packages/coremark/coremark
sed -i 's/192.168.1.1/192.168.2.1/' package/base-files/files/bin/config_generate