summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-02-04 17:24:18 +0900
committerTom Rini <trini@ti.com>2014-02-19 11:07:50 -0500
commitbf4b3de1013c1643ffb8f071292c0f0eabb265c3 (patch)
tree6076ce8b6f342fedcd3c64c26a63d7055f579188 /Makefile
parentceec4c8746567a0be70147f2c6f25e767347b0a0 (diff)
downloadu-boot-imx-bf4b3de1013c1643ffb8f071292c0f0eabb265c3.zip
u-boot-imx-bf4b3de1013c1643ffb8f071292c0f0eabb265c3.tar.gz
u-boot-imx-bf4b3de1013c1643ffb8f071292c0f0eabb265c3.tar.bz2
kbuild: Use Kbuild.include
This commit adjusts some files to use Kbuild.include. - Use cc-option defined in Kbuild.include (Delete cc-option in config.mk) - Use cc-version defined in (Delete cc-version in config.mk) - Move binutils-version and dtc-version to Kbuild.include by analogy to cc-version This commit also adds srctree (same as SRCTREE) to use Kbuild scripts. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0c1eef3..e4045bc 100644
--- a/Makefile
+++ b/Makefile
@@ -102,9 +102,10 @@ OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
SPLTREE := $(OBJTREE)/spl
TPLTREE := $(OBJTREE)/tpl
SRCTREE := $(CURDIR)
+srctree := $(SRCTREE)
TOPDIR := $(SRCTREE)
LNDIR := $(OBJTREE)
-export TOPDIR SRCTREE OBJTREE SPLTREE TPLTREE
+export TOPDIR SRCTREE srctree OBJTREE SPLTREE TPLTREE
MKCONFIG := $(SRCTREE)/mkconfig
export MKCONFIG
@@ -126,8 +127,6 @@ unexport CDPATH
#########################################################################
-build := -f $(TOPDIR)/scripts/Makefile.build -C
-
# The "tools" are needed early, so put this first
# Don't include stuff already done in $(LIBS)
# The "examples" conditionally depend on U-Boot (say, when USE_PRIVATE_LIBGCC
@@ -198,6 +197,10 @@ HOSTCFLAGS += $(call os_x_before, 10, 4, "-traditional-cpp")
HOSTLDFLAGS += $(call os_x_before, 10, 5, "-multiply_defined suppress")
endif
+# We need some generic definitions (do not try to remake the file).
+$(srctree)/scripts/Kbuild.include: ;
+include $(srctree)/scripts/Kbuild.include
+
# Make variables (CC, etc...)
AS = $(CROSS_COMPILE)as