mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-02 13:24:12 +01:00
[sam] adding -fdata-sections to makefiles
This commit is contained in:
parent
ea5d32c861
commit
be1ded6c86
@ -50,7 +50,7 @@ CFLAGS += -Wcast-align
|
|||||||
#CFLAGS += -Wmissing-noreturn
|
#CFLAGS += -Wmissing-noreturn
|
||||||
#CFLAGS += -Wconversion
|
#CFLAGS += -Wconversion
|
||||||
|
|
||||||
CFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -nostdlib -std=c99
|
CFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -fdata-sections -nostdlib -std=c99
|
||||||
CFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP) -D$(VARIANT)
|
CFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP) -D$(VARIANT)
|
||||||
|
|
||||||
# To reduce application size use only integer printf function.
|
# To reduce application size use only integer printf function.
|
||||||
@ -71,7 +71,7 @@ CPPFLAGS += -Wpacked -Wredundant-decls -Winline -Wlong-long
|
|||||||
#CPPFLAGS += -Wconversion
|
#CPPFLAGS += -Wconversion
|
||||||
|
|
||||||
#-fno-rtti -fno-exceptions
|
#-fno-rtti -fno-exceptions
|
||||||
CPPFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -std=c++98
|
CPPFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -fdata-sections -std=c++98
|
||||||
CPPFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP)
|
CPPFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP)
|
||||||
|
|
||||||
# To reduce application size use only integer printf function.
|
# To reduce application size use only integer printf function.
|
||||||
|
@ -52,7 +52,7 @@ CFLAGS += -Wcast-align
|
|||||||
# To reduce application size use only integer printf function.
|
# To reduce application size use only integer printf function.
|
||||||
CFLAGS += -Dprintf=iprintf
|
CFLAGS += -Dprintf=iprintf
|
||||||
|
|
||||||
CFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -std=c99
|
CFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -fdata-sections -std=c99
|
||||||
CFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP)
|
CFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP)
|
||||||
|
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ CFLAGS += -Wcast-align
|
|||||||
#CFLAGS += -Wmissing-noreturn
|
#CFLAGS += -Wmissing-noreturn
|
||||||
#CFLAGS += -Wconversion
|
#CFLAGS += -Wconversion
|
||||||
|
|
||||||
CFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -nostdlib -std=c99
|
CFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -fdata-sections -nostdlib -std=c99
|
||||||
CFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP) -D$(VARIANT)
|
CFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP) -D$(VARIANT)
|
||||||
|
|
||||||
# To reduce application size use only integer printf function.
|
# To reduce application size use only integer printf function.
|
||||||
@ -70,7 +70,7 @@ CPPFLAGS += -Wpacked -Wredundant-decls -Winline -Wlong-long
|
|||||||
#CPPFLAGS += -Wmissing-noreturn
|
#CPPFLAGS += -Wmissing-noreturn
|
||||||
#CPPFLAGS += -Wconversion
|
#CPPFLAGS += -Wconversion
|
||||||
|
|
||||||
CPPFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -fno-rtti -fno-exceptions -std=c++98
|
CPPFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -std=c++98
|
||||||
CPPFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP)
|
CPPFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP)
|
||||||
|
|
||||||
# To reduce application size use only integer printf function.
|
# To reduce application size use only integer printf function.
|
||||||
|
@ -50,7 +50,7 @@ CFLAGS += -Wcast-align
|
|||||||
#CFLAGS += -Wmissing-noreturn
|
#CFLAGS += -Wmissing-noreturn
|
||||||
#CFLAGS += -Wconversion
|
#CFLAGS += -Wconversion
|
||||||
|
|
||||||
CFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -nostdlib -std=c99
|
CFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -fdata-sections -nostdlib -std=c99
|
||||||
CFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP) -D$(VARIANT)
|
CFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP) -D$(VARIANT)
|
||||||
|
|
||||||
# To reduce application size use only integer printf function.
|
# To reduce application size use only integer printf function.
|
||||||
@ -70,7 +70,7 @@ CPPFLAGS += -Wpacked -Wredundant-decls -Winline -Wlong-long
|
|||||||
#CPPFLAGS += -Wmissing-noreturn
|
#CPPFLAGS += -Wmissing-noreturn
|
||||||
#CPPFLAGS += -Wconversion
|
#CPPFLAGS += -Wconversion
|
||||||
|
|
||||||
CPPFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -fno-rtti -fno-exceptions -std=c++98
|
CPPFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -std=c++98
|
||||||
CPPFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP)
|
CPPFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP)
|
||||||
|
|
||||||
# To reduce application size use only integer printf function.
|
# To reduce application size use only integer printf function.
|
||||||
|
@ -50,7 +50,7 @@ CFLAGS += -Wcast-align
|
|||||||
#CFLAGS += -Wmissing-noreturn
|
#CFLAGS += -Wmissing-noreturn
|
||||||
#CFLAGS += -Wconversion
|
#CFLAGS += -Wconversion
|
||||||
|
|
||||||
CFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -nostdlib -std=c99
|
CFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -fdata-sections -nostdlib -std=c99
|
||||||
CFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP) -D$(VARIANT)
|
CFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP) -D$(VARIANT)
|
||||||
|
|
||||||
# To reduce application size use only integer printf function.
|
# To reduce application size use only integer printf function.
|
||||||
@ -70,7 +70,7 @@ CPPFLAGS += -Wpacked -Wredundant-decls -Winline -Wlong-long
|
|||||||
#CPPFLAGS += -Wmissing-noreturn
|
#CPPFLAGS += -Wmissing-noreturn
|
||||||
#CPPFLAGS += -Wconversion
|
#CPPFLAGS += -Wconversion
|
||||||
|
|
||||||
CPPFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -fno-rtti -fno-exceptions -std=c++98
|
CPPFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -std=c++98
|
||||||
CPPFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP)
|
CPPFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP)
|
||||||
|
|
||||||
# To reduce application size use only integer printf function.
|
# To reduce application size use only integer printf function.
|
||||||
|
@ -50,7 +50,7 @@ CFLAGS += -Wcast-align
|
|||||||
#CFLAGS += -Wmissing-noreturn
|
#CFLAGS += -Wmissing-noreturn
|
||||||
#CFLAGS += -Wconversion
|
#CFLAGS += -Wconversion
|
||||||
|
|
||||||
CFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -nostdlib -std=c99
|
CFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -fdata-sections -nostdlib -std=c99
|
||||||
CFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP) -D$(VARIANT)
|
CFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP) -D$(VARIANT)
|
||||||
|
|
||||||
# To reduce application size use only integer printf function.
|
# To reduce application size use only integer printf function.
|
||||||
@ -70,7 +70,7 @@ CPPFLAGS += -Wpacked -Wredundant-decls -Winline -Wlong-long
|
|||||||
#CPPFLAGS += -Wmissing-noreturn
|
#CPPFLAGS += -Wmissing-noreturn
|
||||||
#CPPFLAGS += -Wconversion
|
#CPPFLAGS += -Wconversion
|
||||||
|
|
||||||
CPPFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -fno-rtti -fno-exceptions -std=c++98
|
CPPFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -std=c++98
|
||||||
CPPFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP)
|
CPPFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP)
|
||||||
|
|
||||||
# To reduce application size use only integer printf function.
|
# To reduce application size use only integer printf function.
|
||||||
|
@ -50,7 +50,7 @@ CFLAGS += -Wcast-align
|
|||||||
#CFLAGS += -Wmissing-noreturn
|
#CFLAGS += -Wmissing-noreturn
|
||||||
#CFLAGS += -Wconversion
|
#CFLAGS += -Wconversion
|
||||||
|
|
||||||
CFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -nostdlib -std=c99
|
CFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -fdata-sections -nostdlib -std=c99
|
||||||
CFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP) -D$(VARIANT)
|
CFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP) -D$(VARIANT)
|
||||||
|
|
||||||
# To reduce application size use only integer printf function.
|
# To reduce application size use only integer printf function.
|
||||||
@ -70,7 +70,7 @@ CPPFLAGS += -Wpacked -Wredundant-decls -Winline -Wlong-long
|
|||||||
#CPPFLAGS += -Wmissing-noreturn
|
#CPPFLAGS += -Wmissing-noreturn
|
||||||
#CPPFLAGS += -Wconversion
|
#CPPFLAGS += -Wconversion
|
||||||
|
|
||||||
CPPFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -fno-rtti -fno-exceptions -std=c++98
|
CPPFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -std=c++98
|
||||||
CPPFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP)
|
CPPFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP)
|
||||||
|
|
||||||
# To reduce application size use only integer printf function.
|
# To reduce application size use only integer printf function.
|
||||||
|
@ -49,7 +49,7 @@ CFLAGS += -Wcast-align
|
|||||||
#CFLAGS += -Wmissing-noreturn
|
#CFLAGS += -Wmissing-noreturn
|
||||||
#CFLAGS += -Wconversion
|
#CFLAGS += -Wconversion
|
||||||
|
|
||||||
CFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -nostdlib
|
CFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -fdata-sections -nostdlib
|
||||||
CFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP) -D$(VARIANT)
|
CFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP) -D$(VARIANT)
|
||||||
|
|
||||||
# To reduce application size use only integer printf function.
|
# To reduce application size use only integer printf function.
|
||||||
@ -69,7 +69,7 @@ CPPFLAGS += -Wpacked -Wredundant-decls -Winline -Wlong-long
|
|||||||
#CPPFLAGS += -Wmissing-noreturn
|
#CPPFLAGS += -Wmissing-noreturn
|
||||||
#CPPFLAGS += -Wconversion
|
#CPPFLAGS += -Wconversion
|
||||||
|
|
||||||
CPPFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -fno-rtti -fno-exceptions
|
CPPFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m3 -mthumb -mlong-calls -ffunction-sections -fno-rtti -fdata-sections -fno-exceptions
|
||||||
CPPFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP)
|
CPPFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP)
|
||||||
|
|
||||||
# To reduce application size use only integer printf function.
|
# To reduce application size use only integer printf function.
|
||||||
|
Loading…
Reference in New Issue
Block a user