|
@@ -102,9 +102,10 @@ OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
|
|
SPLTREE := $(OBJTREE)/spl
|
|
SPLTREE := $(OBJTREE)/spl
|
|
TPLTREE := $(OBJTREE)/tpl
|
|
TPLTREE := $(OBJTREE)/tpl
|
|
SRCTREE := $(CURDIR)
|
|
SRCTREE := $(CURDIR)
|
|
|
|
+srctree := $(SRCTREE)
|
|
TOPDIR := $(SRCTREE)
|
|
TOPDIR := $(SRCTREE)
|
|
LNDIR := $(OBJTREE)
|
|
LNDIR := $(OBJTREE)
|
|
-export TOPDIR SRCTREE OBJTREE SPLTREE TPLTREE
|
|
|
|
|
|
+export TOPDIR SRCTREE srctree OBJTREE SPLTREE TPLTREE
|
|
|
|
|
|
MKCONFIG := $(SRCTREE)/mkconfig
|
|
MKCONFIG := $(SRCTREE)/mkconfig
|
|
export 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
|
|
# The "tools" are needed early, so put this first
|
|
# Don't include stuff already done in $(LIBS)
|
|
# Don't include stuff already done in $(LIBS)
|
|
# The "examples" conditionally depend on U-Boot (say, when USE_PRIVATE_LIBGCC
|
|
# 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")
|
|
HOSTLDFLAGS += $(call os_x_before, 10, 5, "-multiply_defined suppress")
|
|
endif
|
|
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...)
|
|
# Make variables (CC, etc...)
|
|
|
|
|
|
AS = $(CROSS_COMPILE)as
|
|
AS = $(CROSS_COMPILE)as
|