From dce6ee0ffd82d811dc70ed16a14a6674e037e7f9 Mon Sep 17 00:00:00 2001
From: Gary Bisson <gary.bisson@boundarydevices.com>
Date: Fri, 30 Jun 2017 12:59:04 +0200
Subject: [PATCH] config_distro_bootcmd: allow to add extra scripts and
 prefixes

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
---
 include/config_distro_bootcmd.h | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
index d672e8ebe65..9d6ef8f269d 100644
--- a/include/config_distro_bootcmd.h
+++ b/include/config_distro_bootcmd.h
@@ -333,6 +333,12 @@
 	BOOTENV_DEV_NAME_##devtypeu(devtypeu, devtypel, instance)
 #define BOOTENV_BOOT_TARGETS \
 	"boot_targets=" BOOT_TARGET_DEVICES(BOOTENV_DEV_NAME) "\0"
+#ifndef BOOTENV_EXTRA_BOOT_PREFIXES
+#define BOOTENV_EXTRA_BOOT_PREFIXES ""
+#endif
+#ifndef BOOTENV_EXTRA_BOOT_SCRIPTS
+#define BOOTENV_EXTRA_BOOT_SCRIPTS ""
+#endif
 
 #define BOOTENV_DEV(devtypeu, devtypel, instance) \
 	BOOTENV_DEV_##devtypeu(devtypeu, devtypel, instance)
@@ -346,9 +352,9 @@
 	BOOTENV_SHARED_IDE \
 	BOOTENV_SHARED_UBIFS \
 	BOOTENV_SHARED_EFI \
-	"boot_prefixes=/ /boot/\0" \
-	"boot_scripts=boot.scr.uimg boot.scr\0" \
-	"boot_script_dhcp=boot.scr.uimg\0" \
+	"boot_prefixes=/ /boot/" BOOTENV_EXTRA_BOOT_PREFIXES "\0" \
+	"boot_scripts=boot.scr.uimg boot.scr" BOOTENV_EXTRA_BOOT_SCRIPTS "\0" \
+	"boot_script_dhcp=boot.scr.uimg" BOOTENV_EXTRA_BOOT_SCRIPTS "\0" \
 	BOOTENV_BOOT_TARGETS \
 	\
 	"boot_extlinux="                                                  \
-- 
GitLab