From 95a83aa10f4734d2e7dbdb800f5332c70a3cf6e7 Mon Sep 17 00:00:00 2001 From: OPPEN321 Date: Wed, 24 Sep 2025 15:06:48 +0800 Subject: [PATCH] Update 05-rockchip_target_only.sh --- scripts/05-rockchip_target_only.sh | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/scripts/05-rockchip_target_only.sh b/scripts/05-rockchip_target_only.sh index dbff93d..047d560 100644 --- a/scripts/05-rockchip_target_only.sh +++ b/scripts/05-rockchip_target_only.sh @@ -3,3 +3,36 @@ # 使用特定的优化 sed -i 's,-mcpu=generic,-march=armv8-a+crc+crypto,g' include/target.mk sed -i 's,kmod-r8168,kmod-r8169,g' target/linux/rockchip/image/armv8.mk + +#Vermagic +wget https://downloads.openwrt.org/releases/${latest_version}/targets/rockchip/armv8/profiles.json +jq -r '.linux_kernel.vermagic' profiles.json >.vermagic +sed -i -e 's/^\(.\).*vermagic$/\1cp $(TOPDIR)\/.vermagic $(LINUX_DIR)\/.vermagic/' include/kernel-defaults.mk + +# Distfeeds.conf +mkdir -p files/etc/opkg +cat > files/etc/opkg/distfeeds.conf < files/usr/bin/AdGuardHome +chmod +x files/usr/bin/AdGuardHome + +# mihomo +mkdir -p files/etc/openclash/core +CLASH_META_URL="https://raw.githubusercontent.com/vernesong/OpenClash/core/master/meta/clash-linux-arm64.tar.gz" +GEOIP_URL="https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat" +GEOSITE_URL="https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat" +wget -qO- $CLASH_META_URL | tar xOvz > files/etc/openclash/core/clash_meta +wget -qO- $GEOIP_URL > files/etc/openclash/GeoIP.dat +wget -qO- $GEOSITE_URL > files/etc/openclash/GeoSite.dat +chmod +x files/etc/openclash/core/clash* +