summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-09-02 15:13:06 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-09-14 15:18:24 +0200
commite2d1216e757194e87a255fab89be9826a2c40ed1 (patch)
tree06af14ff6837c4620b3761b56d432a927eed6765 /arch/arm/mach-at91
parenta01c4f46d451fdb06d77be34a7038642e1ecd866 (diff)
downloadbarebox-e2d1216e757194e87a255fab89be9826a2c40ed1.tar.gz
barebox-e2d1216e757194e87a255fab89be9826a2c40ed1.tar.xz
ARM: at91: fix link error when CONFIG_BOOTM=n
bootm-barebox.c understandably expects barebox bootm functionality to be available. Don't build it if that's not the case. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r--arch/arm/mach-at91/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile
index ba46c1a16e..9cfba28fa0 100644
--- a/arch/arm/mach-at91/Makefile
+++ b/arch/arm/mach-at91/Makefile
@@ -1,4 +1,4 @@
-obj-y += setup.o aic.o bootm-barebox.o
+obj-y += setup.o aic.o
lwl-y += at91_pmc_ll.o ddramc_ll.o matrix.o
lwl-$(CONFIG_CLOCKSOURCE_ATMEL_PIT) += early_udelay.o
@@ -9,6 +9,7 @@ endif
obj-$(CONFIG_CMD_AT91_BOOT_TEST) += boot_test_cmd.o
obj-$(CONFIG_AT91_BOOTSTRAP) += bootstrap.o
+obj-$(CONFIG_BOOTM) += bootm-barebox.o
obj-y += at91sam9_reset.o
obj-y += at91sam9g45_reset.o