mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-16 05:42:56 +00:00
fix iar with make
This commit is contained in:
parent
38a582634e
commit
946d3fdd4f
@ -43,6 +43,6 @@ CFLAGS_GCC += -Wno-error=redundant-decls
|
|||||||
CFLAGS_GCC += -Wno-error=cast-qual
|
CFLAGS_GCC += -Wno-error=cast-qual
|
||||||
|
|
||||||
# FreeRTOS (lto + Os) linker issue
|
# FreeRTOS (lto + Os) linker issue
|
||||||
LDFLAGS += -Wl,--undefined=vTaskSwitchContext
|
LDFLAGS_GCC += -Wl,--undefined=vTaskSwitchContext
|
||||||
|
|
||||||
include ../../rules.mk
|
include ../../rules.mk
|
||||||
|
@ -42,6 +42,6 @@ CFLAGS_GCC += -Wno-error=redundant-decls
|
|||||||
CFLAGS_GCC += -Wno-error=cast-qual
|
CFLAGS_GCC += -Wno-error=cast-qual
|
||||||
|
|
||||||
# FreeRTOS (lto + Os) linker issue
|
# FreeRTOS (lto + Os) linker issue
|
||||||
LDFLAGS += -Wl,--undefined=vTaskSwitchContext
|
LDFLAGS_GCC += -Wl,--undefined=vTaskSwitchContext
|
||||||
|
|
||||||
include ../../rules.mk
|
include ../../rules.mk
|
||||||
|
@ -21,7 +21,7 @@ ifneq ($(CFLAGS_SKIP),)
|
|||||||
CFLAGS := $(filter-out $(CFLAGS_SKIP),$(CFLAGS))
|
CFLAGS := $(filter-out $(CFLAGS_SKIP),$(CFLAGS))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LDFLAGS += $(CFLAGS)
|
LDFLAGS += $(CFLAGS) $(LDFLAGS_GCC)
|
||||||
|
|
||||||
ifdef LD_FILE
|
ifdef LD_FILE
|
||||||
LDFLAGS += -Wl,-T,$(TOP)/$(LD_FILE)
|
LDFLAGS += -Wl,-T,$(TOP)/$(LD_FILE)
|
||||||
|
@ -8,4 +8,4 @@ SIZE = size
|
|||||||
CFLAGS += -e --debug --silent
|
CFLAGS += -e --debug --silent
|
||||||
|
|
||||||
# silent mode
|
# silent mode
|
||||||
ASFLAGS += -S
|
ASFLAGS += -S $(addprefix -I,$(INC))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user