From 5af3a22b87cf8a248da7ca70f56dbe8fab108734 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Mon, 12 Oct 2020 21:35:59 +0200 Subject: 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 --- configs/platform-v7a/barebox-at91-defaultenv/init/bootsource | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 configs/platform-v7a/barebox-at91-defaultenv/init/bootsource (limited to 'configs/platform-v7a/barebox-at91-defaultenv') 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 -- cgit v1.2.3