diff options
author | Mathew McBride <matt@traverse.com.au> | 2022-01-19 02:25:23 +0000 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2023-06-13 14:12:23 +0200 |
commit | 7c223a881f93cb5e8e68fe8b92693b48d4609002 (patch) | |
tree | cede82ccb1ac128576c19bd6a771c0e1a07feefa /target/linux/armvirt/base-files/etc/board.d/02_network | |
parent | 1e7fa539ae6e94bfdb5d9e503f0c103e15b408a1 (diff) | |
download | upstream-7c223a881f93cb5e8e68fe8b92693b48d4609002.tar.gz upstream-7c223a881f93cb5e8e68fe8b92693b48d4609002.tar.bz2 upstream-7c223a881f93cb5e8e68fe8b92693b48d4609002.zip |
armvirt: add EFI support
EFI booting is used on newer machines compatible with the
Arm SystemReady specifications.
This commit restructures armvirt into a more 'generic'
target similar to x86.
See https://github.com/openwrt/openwrt/pull/4956
for a history of this port.
Signed-off-by: Mathew McBride <matt@traverse.com.au>
(23.05 version of e0f06ddc23b2503a1791ae7e97b02e2647e8a70d)
Diffstat (limited to 'target/linux/armvirt/base-files/etc/board.d/02_network')
-rw-r--r-- | target/linux/armvirt/base-files/etc/board.d/02_network | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/target/linux/armvirt/base-files/etc/board.d/02_network b/target/linux/armvirt/base-files/etc/board.d/02_network new file mode 100644 index 0000000000..f58de1c27d --- /dev/null +++ b/target/linux/armvirt/base-files/etc/board.d/02_network @@ -0,0 +1,18 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0-or-later + +. /lib/functions/system.sh +. /lib/functions/uci-defaults.sh + +board_config_update + +case "$(board_name)" in + traverse,ten64) + ucidef_set_interface_lan "eth0 eth1 eth2 eth3" + ucidef_set_interface_wan "eth6" + ;; +esac + +board_config_flush + +exit 0 |