ipq40xx: set DEVICE_DTS_DIR to /qcom by default
[openwrt/openwrt.git] / target / linux / mvebu / cortexa72 / base-files / lib / upgrade / platform.sh
1 #
2 # Copyright (C) 2014-2016 OpenWrt.org
3 # Copyright (C) 2016 LEDE-Project.org
4 #
5
6 RAMFS_COPY_BIN='fw_printenv fw_setenv'
7 RAMFS_COPY_DATA='/etc/fw_env.config /var/lock/fw_printenv.lock'
8 REQUIRE_IMAGE_METADATA=1
9
10 platform_check_image() {
11 case "$(board_name)" in
12 marvell,armada8040-mcbin-doubleshot|\
13 marvell,armada8040-mcbin-singleshot)
14 platform_check_image_sdcard "$1"
15 ;;
16 *)
17 return 0
18 ;;
19 esac
20 }
21
22 platform_do_upgrade() {
23 case "$(board_name)" in
24 marvell,armada8040-mcbin-doubleshot|\
25 marvell,armada8040-mcbin-singleshot)
26 platform_do_upgrade_sdcard "$1"
27 ;;
28 *)
29 default_do_upgrade "$1"
30 ;;
31 esac
32 }
33 platform_copy_config() {
34 case "$(board_name)" in
35 marvell,armada8040-mcbin-doubleshot|\
36 marvell,armada8040-mcbin-singleshot)
37 platform_copy_config_sdcard
38 ;;
39 esac
40 }