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@xxxxxxxxxxxxxx> --- 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 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox