[PATCH 3/3] at91sam9263ek: don't build legacy init when OFDEVICE is enabled

Lucas Stach l.stach at pengutronix.de
Wed Feb 21 01:53:34 PST 2018


The DT enabled build will fail when trying to reference the legacy
init funtions.

Fixes: b467c262b5a7 (at91sam9263ek: enable DT support)
Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
Is this the correct fix?
---
 arch/arm/boards/at91sam9263ek/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boards/at91sam9263ek/Makefile b/arch/arm/boards/at91sam9263ek/Makefile
index 7af6fab8e108..66083a239e75 100644
--- a/arch/arm/boards/at91sam9263ek/Makefile
+++ b/arch/arm/boards/at91sam9263ek/Makefile
@@ -1,4 +1,6 @@
-obj-$(CONFIG_AT91_BOOTSTRAP) += init.o
+ifeq ($(CONFIG_OFDEVICE),)
+obj-y += init.o
+endif
 obj-$(CONFIG_OF_DEVICE) += of_init.o
 
 lwl-y += lowlevel_init.o
-- 
2.16.1




More information about the barebox mailing list