forked from Ivasoft/openwrt
imx6: use device-tree compatible for board name
In imx6, we currently use the model from DTS to derive a board name manually in /lib/imx6.sh. However, if we have individual DTS files anyway, we can exploit generic 02_sysinfo and use the compatible as board name directly. While at it, remove the wildcards from /lib/upgrade/platform.sh as these might make code shorter, but are quite unpleasant when grepping for a specific device. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
@@ -10,22 +10,34 @@ board=$(board_name)
|
||||
board_config_update
|
||||
|
||||
case "$board" in
|
||||
cubox-i |\
|
||||
gw51xx |\
|
||||
gw52xx |\
|
||||
gw5904 |\
|
||||
gw5907 |\
|
||||
gw5910 |\
|
||||
gw5912 |\
|
||||
gw5913)
|
||||
gw,imx6dl-gw51xx |\
|
||||
gw,imx6dl-gw52xx |\
|
||||
gw,imx6dl-gw5904 |\
|
||||
gw,imx6dl-gw5907 |\
|
||||
gw,imx6dl-gw5910 |\
|
||||
gw,imx6dl-gw5912 |\
|
||||
gw,imx6dl-gw5913 |\
|
||||
gw,imx6q-gw51xx |\
|
||||
gw,imx6q-gw52xx |\
|
||||
gw,imx6q-gw5904 |\
|
||||
gw,imx6q-gw5907 |\
|
||||
gw,imx6q-gw5910 |\
|
||||
gw,imx6q-gw5912 |\
|
||||
gw,imx6q-gw5913 |\
|
||||
solidrun,cubox-i/dl |\
|
||||
solidrun,cubox-i/q )
|
||||
ucidef_set_interface_lan 'eth0'
|
||||
;;
|
||||
gw53xx |\
|
||||
gw54xx |\
|
||||
gw552x)
|
||||
gw,imx6dl-gw53xx |\
|
||||
gw,imx6dl-gw54xx |\
|
||||
gw,imx6dl-gw552x |\
|
||||
gw,imx6q-gw53xx |\
|
||||
gw,imx6q-gw5400-a |\
|
||||
gw,imx6q-gw54xx |\
|
||||
gw,imx6q-gw552x )
|
||||
ucidef_set_interfaces_lan_wan 'eth0' 'eth1'
|
||||
;;
|
||||
wandboard)
|
||||
wand,imx6dl-wandboard )
|
||||
ucidef_set_interface_wan 'eth0'
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user