summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/barebox-stm32mp-defaultenv
diff options
context:
space:
mode:
Diffstat (limited to 'configs/platform-v7a/barebox-stm32mp-defaultenv')
-rwxr-xr-xconfigs/platform-v7a/barebox-stm32mp-defaultenv/init/bootsource9
1 files changed, 9 insertions, 0 deletions
diff --git a/configs/platform-v7a/barebox-stm32mp-defaultenv/init/bootsource b/configs/platform-v7a/barebox-stm32mp-defaultenv/init/bootsource
new file mode 100755
index 0000000..b529384
--- /dev/null
+++ b/configs/platform-v7a/barebox-stm32mp-defaultenv/init/bootsource
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ -n "$nv.boot.default" ]; then
+ exit
+fi
+
+if [ $bootsource = mmc ]; then
+ global.boot.default="mmc${bootsource_instance}.root net"
+fi