[PATCH master 3/3] ARM: at91: sama5d27-giantboard: fix multi-image compatibility
Ahmad Fatoum
a.fatoum at pengutronix.de
Wed Sep 2 09:13:07 EDT 2020
For multi-image compatibility, board code needs to be guarded by a check
against the compatible. Retrofit the check.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
arch/arm/boards/sama5d27-giantboard/board.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boards/sama5d27-giantboard/board.c b/arch/arm/boards/sama5d27-giantboard/board.c
index 1d4453ede35b..006c6ffad5cd 100644
--- a/arch/arm/boards/sama5d27-giantboard/board.c
+++ b/arch/arm/boards/sama5d27-giantboard/board.c
@@ -3,9 +3,13 @@
#include <init.h>
#include <envfs.h>
#include <bbu.h>
+#include <of.h>
static int giantboard_device_init(void)
{
+ if (!of_machine_is_compatible("groboards,sama5d27-giantboard"))
+ return 0;
+
bbu_register_std_file_update("microSD", BBU_HANDLER_FLAG_DEFAULT,
"/mnt/mmc1.0/barebox.bin",
filetype_arm_barebox);
--
2.28.0
More information about the barebox
mailing list