summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6-phycore/init/bootsource
blob: 515613b041617d174559d5fef6f0fbfb32d37ac9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

if [ -n "$nv.boot.default" ]; then
	exit
fi

if [ $bootsource = mmc ]; then
	if [ $bootsource_instance = 0 ]; then
		global.boot.default="mmc emmc nand spi net"
	elif [ $bootsource_instance = 3 ]; then
		global.boot.default="emmc mmc nand spi net"
	fi
elif [ $bootsource = nand ]; then
	global.boot.default="nand spi emmc mmc net"
elif [ $bootsource = spi ]; then
	global.boot.default="spi nand emmc mmc net"
elif [ $bootsource = net ]; then
	global.boot.default="net nand spi emmc mmc"
fi