diff options
author | Chris Fiege <c.fiege@pengutronix.de> | 2017-07-03 16:09:11 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2017-07-04 15:41:06 +0200 |
commit | 0a09093d9f1c2daed02673cdaa5740ea17143d85 (patch) | |
tree | ec152702e1113e1a6054acb3a0fcbd9721d2dd91 /configs/platform-v7a/barebox-vexpress-defaultenv/init/bootsource | |
parent | ef189b9c3e0c9e3fed8983bdc663907ccd21a592 (diff) | |
download | DistroKit-0a09093d9f1c2daed02673cdaa5740ea17143d85.tar.gz DistroKit-0a09093d9f1c2daed02673cdaa5740ea17143d85.tar.xz |
platform-v7a: vexpress: create own barebox defaultenv
Using this change the barebox-vexpress package has its own defaultenv
directory.
Signed-off-by: Chris Fiege <c.fiege@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/barebox-vexpress-defaultenv/init/bootsource')
-rw-r--r-- | configs/platform-v7a/barebox-vexpress-defaultenv/init/bootsource | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configs/platform-v7a/barebox-vexpress-defaultenv/init/bootsource b/configs/platform-v7a/barebox-vexpress-defaultenv/init/bootsource new file mode 100644 index 0000000..4de7163 --- /dev/null +++ b/configs/platform-v7a/barebox-vexpress-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 |