common.mk: Fix places using build/ instead of configurable BUILD_DIR
This commit is contained in:
parent
2696e80471
commit
71a2eb7b85
1 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,7 @@ CXXFLAGS ?= $(C_CXX_FLAGS) -fno-exceptions -fno-rtti $(EXTRA_CXXFLAGS)
|
||||||
# these aren't technically preprocesor args, but used by all 3 of C, C++, assembler
|
# these aren't technically preprocesor args, but used by all 3 of C, C++, assembler
|
||||||
CPPFLAGS += -mlongcalls -mtext-section-literals
|
CPPFLAGS += -mlongcalls -mtext-section-literals
|
||||||
|
|
||||||
LDFLAGS = -nostdlib -Wl,--no-check-sections -L$(BUILD_DIR)sdklib -L$(ROOT)lib -u $(ENTRY_SYMBOL) -Wl,-static -Wl,-Map=build/${PROGRAM}.map $(EXTRA_LDFLAGS)
|
LDFLAGS = -nostdlib -Wl,--no-check-sections -L$(BUILD_DIR)sdklib -L$(ROOT)lib -u $(ENTRY_SYMBOL) -Wl,-static -Wl,-Map=$(BUILD_DIR)$(PROGRAM).map $(EXTRA_LDFLAGS)
|
||||||
|
|
||||||
ifeq ($(SPLIT_SECTIONS),1)
|
ifeq ($(SPLIT_SECTIONS),1)
|
||||||
C_CXX_FLAGS += -ffunction-sections -fdata-sections
|
C_CXX_FLAGS += -ffunction-sections -fdata-sections
|
||||||
|
@ -293,7 +293,7 @@ endef
|
||||||
# - prefix all defined symbols with 'sdk_'
|
# - prefix all defined symbols with 'sdk_'
|
||||||
# - weaken all global symbols so they can be overriden from the open SDK side
|
# - weaken all global symbols so they can be overriden from the open SDK side
|
||||||
#
|
#
|
||||||
# SDK binary libraries are preprocessed into build/sdklib
|
# SDK binary libraries are preprocessed into $(BUILD_DIR)/sdklib
|
||||||
SDK_PROCESSED_LIBS = $(addsuffix .a,$(addprefix $(BUILD_DIR)sdklib/lib,$(SDK_LIBS)))
|
SDK_PROCESSED_LIBS = $(addsuffix .a,$(addprefix $(BUILD_DIR)sdklib/lib,$(SDK_LIBS)))
|
||||||
|
|
||||||
# Make rules for preprocessing each SDK library
|
# Make rules for preprocessing each SDK library
|
||||||
|
|
Loading…
Reference in a new issue