diff options
Diffstat (limited to 'arch/arm/boards/phytec-phycore-am335x/defaultenv-phycore-am335x/init/bootsource')
-rw-r--r-- | arch/arm/boards/phytec-phycore-am335x/defaultenv-phycore-am335x/init/bootsource | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/boards/phytec-phycore-am335x/defaultenv-phycore-am335x/init/bootsource b/arch/arm/boards/phytec-phycore-am335x/defaultenv-phycore-am335x/init/bootsource new file mode 100644 index 0000000000..76d1f9b3c2 --- /dev/null +++ b/arch/arm/boards/phytec-phycore-am335x/defaultenv-phycore-am335x/init/bootsource @@ -0,0 +1,15 @@ +#!/bin/sh + +if [ -n "$nv.boot.default" ]; then + exit +fi + +if [ $bootsource = mmc ]; then + global.boot.default="mmc nand spi net" +elif [ $boosource = nand ]; then + global.boot.default="nand spi mmc net" +elif [ $boosource = spi ]; then + global.boot.default="spi nand mmc net" +elif [ $boosource = net ]; then + global.boot.default="net nand spi mmc" +fi |