uboot-envtools: add support for 360T7

mediatek: add uboot-envtools to default packages
This commit is contained in:
hanwckf 2022-10-25 01:06:52 +08:00
parent b47a1bc350
commit 9e16c8d8bc
2 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,24 @@
#!/bin/sh
#
# Copyright (C) 2011-2012 OpenWrt.org
#
[ -e /etc/config/ubootenv ] && exit 0
touch /etc/config/ubootenv
. /lib/uboot-envtools.sh
. /lib/functions.sh
board=$(board_name)
case "$board" in
*360,t7*)
ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x20000" "0x20000" "1"
;;
esac
config_load ubootenv
config_foreach ubootenv_add_app_config ubootenv
exit 0

View File

@ -14,6 +14,6 @@ KERNEL_TESTING_PATCHVER:=5.4
include $(INCLUDE_DIR)/target.mk
DEFAULT_PACKAGES += \
kmod-leds-gpio kmod-gpio-button-hotplug \
autocore-arm luci-app-cpufreq
autocore-arm luci-app-cpufreq uboot-envtools
$(eval $(call BuildTarget))