treewide: use the generic board_name function
Use the generic function instead ot the target specific ones. Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
@@ -7,11 +7,10 @@
|
||||
|
||||
touch /etc/config/ubootenv
|
||||
|
||||
. /lib/ar71xx.sh
|
||||
. /lib/uboot-envtools.sh
|
||||
. /lib/functions.sh
|
||||
|
||||
board=$(ar71xx_board_name)
|
||||
board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
a40|\
|
||||
|
||||
@@ -7,11 +7,10 @@
|
||||
|
||||
touch /etc/config/ubootenv
|
||||
|
||||
. /lib/cns3xxx.sh
|
||||
. /lib/uboot-envtools.sh
|
||||
. /lib/functions.sh
|
||||
|
||||
board=$(cns3xxx_board_name)
|
||||
board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
laguna)
|
||||
|
||||
@@ -7,11 +7,10 @@
|
||||
|
||||
touch /etc/config/ubootenv
|
||||
|
||||
. /lib/imx6.sh
|
||||
. /lib/uboot-envtools.sh
|
||||
. /lib/functions.sh
|
||||
|
||||
board=$(imx6_board_name)
|
||||
board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
*gw5*)
|
||||
|
||||
@@ -7,11 +7,10 @@
|
||||
|
||||
touch /etc/config/ubootenv
|
||||
|
||||
. /lib/ipq806x.sh
|
||||
. /lib/uboot-envtools.sh
|
||||
. /lib/functions.sh
|
||||
|
||||
board=$(ipq806x_board_name)
|
||||
board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
ea8500)
|
||||
|
||||
@@ -7,11 +7,10 @@
|
||||
|
||||
touch /etc/config/ubootenv
|
||||
|
||||
. /lib/kirkwood.sh
|
||||
. /lib/uboot-envtools.sh
|
||||
. /lib/functions.sh
|
||||
|
||||
board=$(kirkwood_board_name)
|
||||
board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
dockstar|\
|
||||
|
||||
@@ -8,11 +8,10 @@
|
||||
|
||||
touch /etc/config/ubootenv
|
||||
|
||||
. /lib/mvebu.sh
|
||||
. /lib/uboot-envtools.sh
|
||||
. /lib/functions.sh
|
||||
|
||||
board=$(mvebu_board_name)
|
||||
board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
armada-385-linksys-caiman|\
|
||||
|
||||
@@ -7,11 +7,10 @@
|
||||
|
||||
touch /etc/config/ubootenv
|
||||
|
||||
. /lib/mxs.sh
|
||||
. /lib/uboot-envtools.sh
|
||||
. /lib/functions.sh
|
||||
|
||||
board=$(mxs_board_name)
|
||||
board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
duckbill)
|
||||
|
||||
@@ -7,11 +7,10 @@
|
||||
|
||||
touch /etc/config/ubootenv
|
||||
|
||||
. /lib/oxnas.sh
|
||||
. /lib/uboot-envtools.sh
|
||||
. /lib/functions.sh
|
||||
|
||||
board=$(oxnas_board_name)
|
||||
board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
akitio|\
|
||||
|
||||
@@ -7,11 +7,10 @@
|
||||
|
||||
touch /etc/config/ubootenv
|
||||
|
||||
. /lib/ramips.sh
|
||||
. /lib/uboot-envtools.sh
|
||||
. /lib/functions.sh
|
||||
|
||||
board=$(ramips_board_name)
|
||||
board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
all0239-3g|\
|
||||
|
||||
@@ -11,10 +11,9 @@ NAME=om-watchdog
|
||||
PROG=/sbin/om-watchdog
|
||||
|
||||
get_gpio() {
|
||||
if [ -r /lib/ar71xx.sh ]; then
|
||||
. /lib/ar71xx.sh
|
||||
local board=$(ar71xx_board_name)
|
||||
local board=$(board_name)
|
||||
|
||||
if [ -r /lib/ar71xx.sh ]; then
|
||||
case "$board" in
|
||||
"a40"|\
|
||||
"a60"|\
|
||||
@@ -49,9 +48,6 @@ get_gpio() {
|
||||
;;
|
||||
esac
|
||||
elif [ -r /lib/ramips.sh ]; then
|
||||
. /lib/ramips.sh
|
||||
local board=$(ramips_board_name)
|
||||
|
||||
case "$board" in
|
||||
"rut5xx")
|
||||
return 11
|
||||
|
||||
Reference in New Issue
Block a user