From: Luis Araneda Date: Sun, 13 May 2018 19:55:00 +0000 (-0400) Subject: zynq: fix detection of the zybo board X-Git-Tag: v19.07.0-rc1~3531 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=61b977fa2cc30ad3ef7a1975cdc60bb86c550958;p=oweals%2Fopenwrt.git zynq: fix detection of the zybo board The board_name was being tested for "xlnx,zynq-zybo", but the .dts compatible string is "digilent,zynq-zybo" Also, sorted the boards alphabetically, and added an error message for unsupported boards Signed-off-by: Luis Araneda --- diff --git a/target/linux/zynq/base-files/etc/board.d/02_network b/target/linux/zynq/base-files/etc/board.d/02_network index ff907637a6..90731b68dc 100755 --- a/target/linux/zynq/base-files/etc/board.d/02_network +++ b/target/linux/zynq/base-files/etc/board.d/02_network @@ -6,9 +6,14 @@ board_config_update case "$(board_name)" in - xlnx,zynq-zc702|xlnx,zynq-zed|xlnx,zynq-zybo) - ucidef_set_interface_lan 'eth0' - ;; +digilent,zynq-zybo | \ +xlnx,zynq-zc702 | \ +xlnx,zynq-zed) + ucidef_set_interface_lan 'eth0' + ;; +*) + echo "Unsupported hardware. Network interfaces not intialized" + ;; esac board_config_flush