kbuild: Use Kbuild.include
[oweals/u-boot.git] / spl / Makefile
index 5339338b2b6a3638b78c14cc4c3c1f6c21639804..f273015168e11765297b1b6f2f367eff00295521 100644 (file)
@@ -14,6 +14,8 @@
 # Based on top-level Makefile.
 #
 
+include $(srctree)/scripts/Kbuild.include
+
 CONFIG_SPL_BUILD := y
 export CONFIG_SPL_BUILD
 
@@ -127,8 +129,6 @@ ifeq ($(wildcard $(LDSCRIPT)),)
 $(error could not find linker script)
 endif
 
-build := -f $(TOPDIR)/scripts/Makefile.build -C
-
 # Special flags for CPP when processing the linker script.
 # Pass the version down so we can handle backwards compatibility
 # on the fly.