Merge tag 'video-next' of https://gitlab.denx.de/u-boot/custodians/u-boot-video into...
[platform/kernel/u-boot.git] / board / freescale / c29xpcie / Makefile
index 626d48a..2a9c1be 100644 (file)
@@ -1,10 +1,25 @@
+# SPDX-License-Identifier: GPL-2.0+
 #
 # Copyright 2013 Freescale Semiconductor, Inc.
 #
-# SPDX-License-Identifier:     GPL-2.0+
 
+MINIMAL=
+ifdef CONFIG_SPL_BUILD
+ifdef CONFIG_SPL_INIT_MINIMAL
+MINIMAL=y
+endif
+endif
+
+ifdef MINIMAL
+obj-y  += spl_minimal.o
+else
+ifdef CONFIG_SPL_BUILD
+obj-y  += spl.o
+endif
 obj-y  += c29xpcie.o
 obj-y  += cpld.o
 obj-y  += ddr.o
+endif
+
 obj-y  += law.o
 obj-y  += tlb.o