]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/nds32/lib/Makefile
Build arch/$ARCH/lib/bootm.o depending on CONFIG_CMD_BOOTM
[people/ms/u-boot.git] / arch / nds32 / lib / Makefile
index 581a2e758afae4da53786920dfa8c8afd6f87bb4..705e1ff90dd66c4f6e39178e12e6f32e5a2086b5 100644 (file)
@@ -29,7 +29,8 @@ include $(TOPDIR)/config.mk
 
 LIB    = $(obj)lib$(ARCH).o
 
-OBJS   := board.o bootm.o cache.o interrupts.o
+OBJS   := board.o cache.o interrupts.o
+COBJS-$(CONFIG_CMD_BOOTM) += bootm.o
 
 all:   $(LIB)