target: add pistachio
[openwrt/openwrt.git] / package / boot / uboot-envtools / files / pistachio
1 #!/bin/sh
2 #
3 # Copyright (C) 2017 OpenWrt.org
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 [ -e /etc/config/ubootenv ] && exit 0
10
11 touch /etc/config/ubootenv
12
13 . /lib/pistachio.sh
14 . /lib/uboot-envtools.sh
15 . /lib/functions.sh
16
17 board=$(pistachio_board_name)
18
19 case "$board" in
20 marduk)
21 ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x2000" "0x1000"
22 ;;
23 esac
24
25 config_load ubootenv
26 config_foreach ubootenv_add_app_config ubootenv
27
28 exit 0