summaryrefslogtreecommitdiff
path: root/board/liebherr/mccmon6/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'board/liebherr/mccmon6/Makefile')
-rw-r--r--board/liebherr/mccmon6/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/board/liebherr/mccmon6/Makefile b/board/liebherr/mccmon6/Makefile
index ead6750ebf..3c9786c6b7 100644
--- a/board/liebherr/mccmon6/Makefile
+++ b/board/liebherr/mccmon6/Makefile
@@ -2,5 +2,8 @@
#
# (C) Copyright 2016-2017
# Lukasz Majewski, DENX Software Engineering, lukma@denx.de
-
-obj-y := mccmon6.o spl.o
+ifdef CONFIG_SPL_BUILD
+obj-y := spl.o
+else
+obj-y := mccmon6.o
+endif