spl: spl_legacy: Use IS_ENABLED() to remove #ifdef
[oweals/u-boot.git] / board / wandboard / Makefile
index 6e886f729a85643335cf1eb4f7fabf6039277c11..c3d80536b3a322acb5161c0d4451529955c43719 100644 (file)
@@ -2,4 +2,5 @@
 #
 # (C) Copyright 2013 Freescale Semiconductor, Inc.
 
-obj-y  := wandboard.o spl.o
+obj-y  := wandboard.o
+obj-$(CONFIG_SPL_BUILD) += spl.o