|
@@ -1,28 +1,22 @@
|
|
|
#!/bin/bash
|
|
|
#=================================================
|
|
|
-rm -Rf feeds/custom/diy
|
|
|
-./scripts/feeds update luci packages custom
|
|
|
+echo "src-git custom https://github.com/kiddin9/openwrt-packages.git" >>feeds.conf.default
|
|
|
+./scripts/feeds update -a
|
|
|
+cd feeds/custom && git pull; cd -
|
|
|
./scripts/feeds install -a -p custom
|
|
|
./scripts/feeds install -a
|
|
|
sed -i 's/Os/O2/g' include/target.mk
|
|
|
-rm -rf target/linux package/kernel
|
|
|
-svn export https://github.com/openwrt/openwrt/trunk/target/linux target/linux
|
|
|
-curl -L https://raw.githubusercontent.com/openwrt/openwrt/master/include/kernel-version.mk>include/kernel-version.mk
|
|
|
-svn export https://github.com/openwrt/openwrt/trunk/package/kernel package/kernel
|
|
|
-curl -L https://raw.githubusercontent.com/openwrt/openwrt/master/include/kernel-defaults.mk>include/kernel-defaults.mk
|
|
|
rm -Rf tools/upx && svn export https://github.com/coolsnowwolf/lede/trunk/tools/upx tools/upx
|
|
|
rm -Rf tools/ucl && svn export https://github.com/coolsnowwolf/lede/trunk/tools/ucl tools/ucl
|
|
|
sed -i 's?zstd$?zstd ucl upx\n$(curdir)/upx/compile := $(curdir)/ucl/compile?g' tools/Makefile
|
|
|
-sed -i 's/ libelf//' tools/Makefile
|
|
|
svn co https://github.com/immortalwrt/immortalwrt/branches/master/target/linux/generic/hack-5.4 target/linux/generic/hack-5.4
|
|
|
-svn co https://github.com/immortalwrt/immortalwrt/branches/master/target/linux/generic/hack-5.10 target/linux/generic/hack-5.10
|
|
|
-rm -rf target/linux/generic/hack-5.10/220-gc_sections.patch
|
|
|
+rm -rf target/linux/generic/hack-5.4/220-gc_sections.patch
|
|
|
+#svn co https://github.com/immortalwrt/immortalwrt/branches/master/target/linux/generic/hack-5.10 target/linux/generic/hack-5.10
|
|
|
svn export --force https://github.com/immortalwrt/immortalwrt/branches/openwrt-21.02/package/network/services/ppp package/network/services/ppp
|
|
|
svn export --force https://github.com/openwrt/openwrt/trunk/package/libs/libnfnetlink package/libs/libnfnetlink
|
|
|
svn export --force https://github.com/immortalwrt/immortalwrt/branches/master/package/network/services/dnsmasq package/network/services/dnsmasq
|
|
|
sed -i 's/$(TARGET_DIR)) install/$(TARGET_DIR)) install --force-overwrite/' package/Makefile
|
|
|
sed -i '$a /etc/sysupgrade.conf' package/base-files/files/lib/upgrade/keep.d/base-files-essential
|
|
|
-sed -i '$a /etc/amule' package/base-files/files/lib/upgrade/keep.d/base-files-essential
|
|
|
sed -i '$a /etc/acme' package/base-files/files/lib/upgrade/keep.d/base-files-essential
|
|
|
sed -i '$a /etc/bench.log' package/base-files/files/lib/upgrade/keep.d/base-files-essential
|
|
|
sed -i '/\/etc\/profile/d' package/base-files/files/lib/upgrade/keep.d/base-files-essential
|
|
@@ -35,7 +29,6 @@ sed -i 's/max_requests 3/max_requests 20/g' package/network/services/uhttpd/file
|
|
|
#svn export https://github.com/immortalwrt/packages/trunk/lang/golang feeds/packages/lang/golang
|
|
|
#svn export https://github.com/immortalwrt/packages/trunk/lang/node feeds/packages/lang/node
|
|
|
wget -P package/network/config/firewall/patches/ https://github.com/coolsnowwolf/lede/raw/master/package/network/config/firewall/patches/fullconenat.patch
|
|
|
-sed -i "s/+nginx\( \|$\)/+nginx-ssl\1/g" package/*/*/*/Makefile
|
|
|
sed -i 's/+python\( \|$\)/+python3/g' package/*/*/*/Makefile
|
|
|
sed -i 's?../../lang?$(TOPDIR)/feeds/packages/lang?g' package/feeds/custom/*/Makefile
|
|
|
sed -i 's/PKG_BUILD_DIR:=/PKG_BUILD_DIR?=/g' feeds/luci/luci.mk
|
|
@@ -58,7 +51,6 @@ if [ -f sdk.tar.xz ]; then
|
|
|
tar -xJf sdk.tar.xz -C sdk
|
|
|
cp -rf sdk/*/staging_dir/* ./staging_dir/
|
|
|
rm -rf sdk.tar.xz sdk
|
|
|
- rm -rf `find "staging_dir/host/" -maxdepth 2 -name 'libelf*'` || true
|
|
|
sed -i '/\(tools\|toolchain\)\/Makefile/d' Makefile
|
|
|
if [ -f /usr/bin/python ]; then
|
|
|
ln -sf /usr/bin/python staging_dir/host/bin/python
|