spl: spl_legacy: Use IS_ENABLED() to remove #ifdef
[oweals/u-boot.git] / board / wandboard / Makefile
index db9f4a685190d5a95bdb516be377766d20745777..c3d80536b3a322acb5161c0d4451529955c43719 100644 (file)
@@ -1,7 +1,6 @@
+# SPDX-License-Identifier: GPL-2.0+
 #
 # (C) Copyright 2013 Freescale Semiconductor, Inc.
-#
-# SPDX-License-Identifier:     GPL-2.0+
-#
 
-obj-y  := wandboard.o spl.o
+obj-y  := wandboard.o
+obj-$(CONFIG_SPL_BUILD) += spl.o