mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-14 20:02:04 +08:00
autocore-arm: add support for mvebu (#5781)
Co-authored-by: 486057 <4860575@qq.com>
This commit is contained in:
parent
5d98c4178e
commit
1e36f5d11c
@ -16,7 +16,7 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define Package/autocore-arm
|
define Package/autocore-arm
|
||||||
TITLE:=Arm auto core loadbalance script.
|
TITLE:=Arm auto core loadbalance script.
|
||||||
MAINTAINER:=CN_SZTL
|
MAINTAINER:=CN_SZTL
|
||||||
DEPENDS:=@(TARGET_bcm27xx||TARGET_bcm53xx||TARGET_ipq40xx||TARGET_ipq806x||TARGET_rockchip) \
|
DEPENDS:=@(TARGET_bcm27xx||TARGET_bcm53xx||TARGET_mvebu||TARGET_ipq40xx||TARGET_ipq806x||TARGET_rockchip) \
|
||||||
+TARGET_bcm53xx:nvram \
|
+TARGET_bcm53xx:nvram \
|
||||||
+TARGET_ipq40xx:lm-sensors
|
+TARGET_ipq40xx:lm-sensors
|
||||||
VARIANT:=arm
|
VARIANT:=arm
|
||||||
|
@ -6,6 +6,8 @@ cpu_cores="$(cat "/proc/cpuinfo" | grep "processor" | wc -l)"
|
|||||||
|
|
||||||
if grep -q "bcm53xx" "/etc/openwrt_release"; then
|
if grep -q "bcm53xx" "/etc/openwrt_release"; then
|
||||||
cpu_freq="$(nvram get clkfreq | awk -F ',' '{print $1}')MHz"
|
cpu_freq="$(nvram get clkfreq | awk -F ',' '{print $1}')MHz"
|
||||||
|
elif grep -q "mvebu" "/etc/openwrt_release"; then
|
||||||
|
cpu_freq="$(cat "/proc/cpuinfo" | grep "BogoMIPS" | sed -n "1p" | awk -F ': ' '{print $2}')MHz"
|
||||||
else
|
else
|
||||||
cpu_freq="$(expr $(cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq) / 1000)MHz"
|
cpu_freq="$(expr $(cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq) / 1000)MHz"
|
||||||
fi
|
fi
|
||||||
|
@ -16,6 +16,7 @@ KERNEL_TESTING_PATCHVER:=5.4
|
|||||||
|
|
||||||
include $(INCLUDE_DIR)/target.mk
|
include $(INCLUDE_DIR)/target.mk
|
||||||
|
|
||||||
DEFAULT_PACKAGES += uboot-envtools kmod-gpio-button-hotplug
|
DEFAULT_PACKAGES += uboot-envtools kmod-gpio-button-hotplug \
|
||||||
|
autocore-arm
|
||||||
|
|
||||||
$(eval $(call BuildTarget))
|
$(eval $(call BuildTarget))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user