]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - scripts/Makefile.spl
kconfig: switch to single .config configuration
[karo-tx-uboot.git] / scripts / Makefile.spl
index cc189adc0c604bdb2440dc3b5f9b1bc8e1a8d543..fcacb7fcb49b0269428577de1cce180239d7db72 100644 (file)
@@ -21,13 +21,15 @@ _dummy := $(shell [ -d $(obj) ] || mkdir -p $(obj))
 
 include $(srctree)/scripts/Kbuild.include
 
-UBOOTINCLUDE := -I$(obj)/include $(UBOOTINCLUDE)
-
--include $(obj)/include/config/auto.conf
+-include include/config/auto.conf
 -include $(obj)/include/autoconf.mk
 
+KBUILD_CPPFLAGS += -DCONFIG_SPL_BUILD
+ifeq ($(CONFIG_TPL_BUILD),y)
+KBUILD_CPPFLAGS += -DCONFIG_TPL_BUILD
+endif
+
 ifeq ($(CONFIG_TPL_BUILD),y)
-export CONFIG_TPL_BUILD
 SPL_BIN := u-boot-tpl
 else
 SPL_BIN := u-boot-spl