build: Move KDEFINE to a common place(tools/Config.mk)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
4b1dab84d1
commit
a2f657e4cb
|
@ -35,12 +35,6 @@
|
|||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
|
||||
# CFLAGS
|
||||
|
||||
ifneq ($(CONFIG_BUILD_FLAT),y)
|
||||
KDEFINE = ${shell $(DEFINE) "$(CC)" __KERNEL__}
|
||||
endif
|
||||
|
||||
# Sources and paths
|
||||
|
||||
ASRCS =
|
||||
|
|
|
@ -35,12 +35,6 @@
|
|||
|
||||
-include $(TOPDIR)/Make.defs
|
||||
|
||||
# CFLAGS
|
||||
|
||||
ifneq ($(CONFIG_BUILD_FLAT),y)
|
||||
KDEFINE = ${shell $(DEFINE) "$(CC)" __KERNEL__}
|
||||
endif
|
||||
|
||||
# Sources and paths
|
||||
|
||||
ASRCS =
|
||||
|
|
|
@ -38,12 +38,6 @@
|
|||
# REVISIT: Backslash causes problems in $(COBJS) target
|
||||
DELIM := $(strip /)
|
||||
|
||||
# CFLAGS
|
||||
|
||||
ifneq ($(CONFIG_BUILD_FLAT),y)
|
||||
KDEFINE = ${shell $(DEFINE) "$(CC)" __KERNEL__}
|
||||
endif
|
||||
|
||||
# Sources and paths
|
||||
|
||||
ASRCS =
|
||||
|
|
|
@ -60,6 +60,11 @@ CONFIG_ARCH_BOARD := $(patsubst "%",%,$(strip $(CONFIG_ARCH_BOARD)))
|
|||
OBJEXT ?= .o
|
||||
LIBEXT ?= .a
|
||||
|
||||
# This define is passed as EXTRAFLAGS for kernel-mode builds. It is also passed
|
||||
# during PASS1 (but not PASS2) context and depend targets.
|
||||
|
||||
KDEFINE = ${shell $(DEFINE) "$(CC)" __KERNEL__}
|
||||
|
||||
# DELIM - Path segment delimiter character
|
||||
#
|
||||
# Depends on this settings defined in board-specific defconfig file installed
|
||||
|
|
|
@ -81,11 +81,6 @@ DIRLINK = $(TOPDIR)/tools/link.sh
|
|||
DIRUNLINK = $(TOPDIR)/tools/unlink.sh
|
||||
endif
|
||||
|
||||
# This define is passed as EXTRAFLAGS for kernel-mode builds. It is also passed
|
||||
# during PASS1 (but not PASS2) context and depend targets.
|
||||
|
||||
KDEFINE = ${shell $(DEFINE) "$(CC)" __KERNEL__}
|
||||
|
||||
# Process architecture and board-specific directories
|
||||
|
||||
ARCH_DIR = arch/$(CONFIG_ARCH)
|
||||
|
|
|
@ -63,11 +63,6 @@ else
|
|||
export Q := @
|
||||
endif
|
||||
|
||||
# This define is passed as EXTRAFLAGS for kernel-mode builds. It is also passed
|
||||
# during PASS1 (but not PASS2) context and depend targets.
|
||||
|
||||
KDEFINE = ${shell $(DEFINE) "$(CC)" __KERNEL__}
|
||||
|
||||
# Process architecture and board-specific directories
|
||||
|
||||
ARCH_DIR = arch\$(CONFIG_ARCH)
|
||||
|
|
Loading…
Reference in New Issue