build: Move KDEFINE to a common place(tools/Config.mk)

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2020-05-02 04:29:47 +08:00 committed by patacongo
parent 4b1dab84d1
commit a2f657e4cb
6 changed files with 5 additions and 28 deletions

View File

@ -35,12 +35,6 @@
-include $(TOPDIR)/Make.defs
# CFLAGS
ifneq ($(CONFIG_BUILD_FLAT),y)
KDEFINE = ${shell $(DEFINE) "$(CC)" __KERNEL__}
endif
# Sources and paths
ASRCS =

View File

@ -35,12 +35,6 @@
-include $(TOPDIR)/Make.defs
# CFLAGS
ifneq ($(CONFIG_BUILD_FLAT),y)
KDEFINE = ${shell $(DEFINE) "$(CC)" __KERNEL__}
endif
# Sources and paths
ASRCS =

View File

@ -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 =

View File

@ -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

View File

@ -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)

View File

@ -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)