mirror of
https://xff.cz/git/u-boot/
synced 2025-08-31 08:12:06 +02:00
Makefile: move some flags to spl/Makefile
Some flags are used for SPL (and TPL) build only. This commit moves them from config.mk to spl/Makefile. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
This commit is contained in:
committed by
Tom Rini
parent
ced0715d4a
commit
e0d5d9f888
19
config.mk
19
config.mk
@@ -95,20 +95,6 @@ RELFLAGS= $(PLATFORM_RELFLAGS)
|
||||
OBJCFLAGS += --gap-fill=0xff
|
||||
|
||||
CPPFLAGS = $(KBUILD_CPPFLAGS) $(RELFLAGS)
|
||||
|
||||
# Enable garbage collection of un-used sections for SPL
|
||||
ifeq ($(CONFIG_SPL_BUILD),y)
|
||||
CPPFLAGS += -ffunction-sections -fdata-sections
|
||||
LDFLAGS_FINAL += --gc-sections
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_SPL_BUILD),y)
|
||||
CPPFLAGS += -DCONFIG_SPL_BUILD
|
||||
ifeq ($(CONFIG_TPL_BUILD),y)
|
||||
CPPFLAGS += -DCONFIG_TPL_BUILD
|
||||
endif
|
||||
endif
|
||||
|
||||
CPPFLAGS += $(UBOOTINCLUDE)
|
||||
CPPFLAGS += $(NOSTDINC_FLAGS) -pipe $(PLATFORM_CPPFLAGS)
|
||||
|
||||
@@ -129,11 +115,6 @@ AFLAGS := $(KBUILD_AFLAGS) $(CPPFLAGS)
|
||||
LDFLAGS += $(PLATFORM_LDFLAGS)
|
||||
LDFLAGS_FINAL += -Bstatic
|
||||
|
||||
LDFLAGS_$(SPL_BIN) += -T $(obj)u-boot-spl.lds $(LDFLAGS_FINAL)
|
||||
ifneq ($(CONFIG_SPL_TEXT_BASE),)
|
||||
LDFLAGS_$(SPL_BIN) += -Ttext $(CONFIG_SPL_TEXT_BASE)
|
||||
endif
|
||||
|
||||
#########################################################################
|
||||
|
||||
export PLATFORM_CPPFLAGS PLATFORM_RELFLAGS CPPFLAGS CFLAGS AFLAGS
|
||||
|
Reference in New Issue
Block a user