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