diff options
author | Chris Fiege <c.fiege@pengutronix.de> | 2017-07-03 16:08:42 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2017-07-04 15:41:06 +0200 |
commit | ef189b9c3e0c9e3fed8983bdc663907ccd21a592 (patch) | |
tree | e8fc523ce74f0076ffe27aee659971d6bc7bcb03 /configs/platform-v7a/barebox-rpi2-defaultenv/init/bootsource | |
parent | 785275ccb99d60da8abbbe0f80104f3d30ef4248 (diff) | |
download | DistroKit-ef189b9c3e0c9e3fed8983bdc663907ccd21a592.tar.gz DistroKit-ef189b9c3e0c9e3fed8983bdc663907ccd21a592.tar.xz |
platform-v7a: rpi2: create own rpi2 barebox defaultenv
Using this change the barebox-rpi2 package has its own defaultenv
directory.
Signed-off-by: Chris Fiege <c.fiege@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/barebox-rpi2-defaultenv/init/bootsource')
-rw-r--r-- | configs/platform-v7a/barebox-rpi2-defaultenv/init/bootsource | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configs/platform-v7a/barebox-rpi2-defaultenv/init/bootsource b/configs/platform-v7a/barebox-rpi2-defaultenv/init/bootsource new file mode 100644 index 0000000..4de7163 --- /dev/null +++ b/configs/platform-v7a/barebox-rpi2-defaultenv/init/bootsource @@ -0,0 +1,13 @@ +#!/bin/sh + +if [ -n "$nv.boot.default" ]; then + exit +fi + +if [ $bootsource = mmc ]; then + global.boot.default="bootchooser net" +elif [ $bootsource = net ]; then + global.boot.default="net bootchooser" +else + global.boot.default="disk0.1 net" +fi |