This patch adds support for the Altera SoCFPGA target. Both generic target and Terasic SoCkit boards are supported. Signed-off-by: Marek Vasut <marex@denx.de> SVN-Revision: 49367
26 lines
330 B
Bash
26 lines
330 B
Bash
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2015 OpenWrt.org
|
|
#
|
|
|
|
[ -e /etc/config/network ] && exit 0
|
|
|
|
touch /etc/config/network
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
. /lib/socfpga.sh
|
|
|
|
board=$(socfpga_board_name)
|
|
|
|
ucidef_set_interface_loopback
|
|
|
|
case "$board" in
|
|
"socfpga-sockit")
|
|
ucidef_set_interface_lan 'eth0'
|
|
;;
|
|
esac
|
|
|
|
uci commit network
|
|
|
|
exit 0
|