openwrt_archive/target/linux/socfpga/base-files/lib/upgrade/platform.sh
Luka Perkov 309626effc target: socfpga: Add Altera SoCFPGA support
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
2016-05-10 22:52:00 +00:00

38 lines
575 B
Bash
Executable File

#
# Copyright (C) 2014 OpenWrt.org
#
. /lib/socfpga.sh
RAMFS_COPY_BIN="/bin/mkdir /bin/touch /bin/mknod"
RAMFS_COPY_DATA=/lib/socfpga.sh
platform_check_image() {
local board=$(socfpga_board_name)
[ "$#" -gt 1 ] && return 1
case "$board" in
"socfpga-sockit")
platform_do_check_sockit "$ARGV"
return 0;
;;
esac
echo "Sysupgrade is not yet supported on $board."
return 1
}
platform_do_upgrade() {
local board=$(socfpga_board_name)
case "$board" in
"socfpga-sockit")
platform_do_upgrade_sockit "$ARGV"
;;
*)
default_do_upgrade "$ARGV"
;;
esac
}