summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/barebox-at91-defaultenv/init
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-10-12 21:35:59 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2020-11-01 09:44:21 +0100
commit5af3a22b87cf8a248da7ca70f56dbe8fab108734 (patch)
tree790dd3edd6c54e3e771257ca29310fab0281dd50 /configs/platform-v7a/barebox-at91-defaultenv/init
parentb3a7bb132f4dbaf60cf98eaa5cab677eb7801e0f (diff)
downloadDistroKit-5af3a22b87cf8a248da7ca70f56dbe8fab108734.tar.gz
DistroKit-5af3a22b87cf8a248da7ca70f56dbe8fab108734.tar.xz
v7a: barebox: add new rule for sama5d2 support
Later commits will have the v7a platform generate an image for Cortex-A5 based sama5d2 as well. Import here a new barebox-at91 rule that extends the barebox-common rule to provide support for the two sama5d27 boards supported by barebox: barebox-sama5d27-som1-ek.img barebox-sama5d27-som1-ek-xload-mmc.img barebox-groboards-sama5d27-giantboard.img barebox-groboards-sama5d27-giantboard-xload-mmc.img Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/barebox-at91-defaultenv/init')
-rwxr-xr-xconfigs/platform-v7a/barebox-at91-defaultenv/init/bootsource9
1 files changed, 9 insertions, 0 deletions
diff --git a/configs/platform-v7a/barebox-at91-defaultenv/init/bootsource b/configs/platform-v7a/barebox-at91-defaultenv/init/bootsource
new file mode 100755
index 0000000..35ee4d9
--- /dev/null
+++ b/configs/platform-v7a/barebox-at91-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}.1 net"
+fi