update 2024-03-09 02:00:55

This commit is contained in:
github-actions[bot] 2024-03-09 02:00:55 +08:00
parent bd737694fd
commit ec45f4fb3a
3 changed files with 22 additions and 2 deletions

View File

@ -16,7 +16,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-amlogic
PKG_VERSION:=3.1.222
PKG_VERSION:=3.1.223
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0 License

View File

@ -114,7 +114,13 @@ kernel_api="https://github.com/${kernel_repo}"
if [[ -n "${KERNEL_TAGS}" ]]; then
kernel_tag="${KERNEL_TAGS}"
else
[[ "${SOC}" == "rk3588" ]] && kernel_tag="rk3588" || kernel_tag="stable"
if [[ "${SOC}" == "rk3588" ]]; then
kernel_tag="rk3588"
elif [[ "${SOC}" == "rk3528" ]]; then
kernel_tag="rk35xx"
else
kernel_tag="stable"
fi
fi
kernel_tag="${kernel_tag/kernel_/}"

View File

@ -0,0 +1,14 @@
#!/bin/sh
cputype=$(uname -ms | tr ' ' '_' | tr '[A-Z]' '[a-z]')
[ -n "$(echo $cputype | grep -E "linux.*armv.*")" ] && cpucore="armv5"
[ -n "$(echo $cputype | grep -E "linux.*armv7.*")" ] && [ -n "$(cat /proc/cpuinfo | grep vfp)" ] && [ ! -d /jffs/clash ] && cpucore="armv7"
[ -n "$(echo $cputype | grep -E "linux.*aarch64.*|linux.*armv8.*")" ] && cpucore="arm64"
[ -n "$(echo $cputype | grep -E "linux.*86.*")" ] && cpucore="i386"
[ -n "$(echo $cputype | grep -E "linux.*86_64.*")" ] && cpucore="x86_64"
if [ -n "$(echo $cputype | grep -E "linux.*mips.*")" ];then
mipstype=$(echo -n I | hexdump -o 2>/dev/null | awk '{ print substr($2,6,1); exit}') #通过判断大小端判断mips或mipsle
[ "$mipstype" = "0" ] && cpucore="mips_softfloat" || cpucore="mipsle_softfloat"
fi
echo $cpucore