summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/barebox-stm32mp-defaultenv
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-03-02 12:03:52 +0100
committerRobert Schwebel <r.schwebel@pengutronix.de>2020-03-05 17:40:50 +0100
commitdf1a06af35ff5c486a672032f6dbaf9cfa17318c (patch)
tree796dce3a55248d8dbe5617fe63f53ec8d7af6e1a /configs/platform-v7a/barebox-stm32mp-defaultenv
parent8bbfadbd374b62f49b715f241d740b680cd13511 (diff)
downloadDistroKit-df1a06af35ff5c486a672032f6dbaf9cfa17318c.tar.gz
DistroKit-df1a06af35ff5c486a672032f6dbaf9cfa17318c.tar.xz
v7a: barebox: add new stm32mp rule
Since v2019.12.0, barebox now has SD/MMC and Ethernet support for the STM32MP1. Thus there is nothing holding us back from extending DistroKit's v7a platform to support the SoC. Add a barebox-stm32mp rule as first step. The barebox rule add here is only meant as second-stage bootloader (SSBL). First-stage (FSBL) will be TF-A introduced in a later patch. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
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