uboot-tools: envtools: ipq95xx: use common function
Use common function ubootenv_add_mmc Signed-off-by: Paweł Owoc <frut3k7@gmail.com> Link: https://github.com/openwrt/openwrt/pull/19269 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
2aff9ba76e
commit
655eb05699
1 changed files with 1 additions and 7 deletions
|
@ -7,15 +7,9 @@ touch /etc/config/ubootenv
|
|||
|
||||
board=$(board_name)
|
||||
|
||||
ubootenv_add_mmc() {
|
||||
local mmcpart="$(find_mmc_part "${1}")"
|
||||
[ -n "$mmcpart" ] && \
|
||||
ubootenv_add_uci_config "$mmcpart" "${2}" "${3}" "${4}"
|
||||
}
|
||||
|
||||
case "$board" in
|
||||
8devices,kiwi-dvk)
|
||||
ubootenv_add_mmc "0:APPSBLENV" "0x0" "0x40000" "0x40000"
|
||||
ubootenv_add_mmc "0:APPSBLENV" "" "0x0" "0x40000" "0x40000"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Reference in a new issue