summaryrefslogtreecommitdiffstats
path: root/arch/nios2/lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nios2/lib/Makefile')
-rw-r--r--arch/nios2/lib/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nios2/lib/Makefile b/arch/nios2/lib/Makefile
index 443f99ee15..f33f96a51a 100644
--- a/arch/nios2/lib/Makefile
+++ b/arch/nios2/lib/Makefile
@@ -28,7 +28,7 @@ LIB = $(obj)lib$(ARCH).o
SOBJS-y += cache.o
COBJS-y += board.o
-COBJS-y += bootm.o
+COBJS-$(CONFIG_CMD_BOOTM) += bootm.o
COBJS-y += libgcc.o
COBJS-y += time.o