Commit 9ae55ccf601de7a5b75eb418f3fc3d5eca92c106
1 parent
fea63e2a44
Exists in
master
and in
55 other branches
Blackfin: enable -O2 in lib_generic/ for ADI/Bluetechnix boards
Building the compression code in lib_generic/ with -O2 rather than -Os gives a nice speed boost without too much code size increase. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Showing 15 changed files with 45 additions and 0 deletions Side-by-side Diff
- board/bf518f-ezbrd/config.mk
- board/bf526-ezbrd/config.mk
- board/bf527-ezkit/config.mk
- board/bf533-ezkit/config.mk
- board/bf533-stamp/config.mk
- board/bf537-stamp/config.mk
- board/bf538f-ezkit/config.mk
- board/bf548-ezkit/config.mk
- board/bf561-ezkit/config.mk
- board/cm-bf527/config.mk
- board/cm-bf533/config.mk
- board/cm-bf537e/config.mk
- board/cm-bf548/config.mk
- board/cm-bf561/config.mk
- board/tcm-bf537/config.mk
board/bf518f-ezbrd/config.mk
... | ... | @@ -26,6 +26,9 @@ |
26 | 26 | # This is not actually used for Blackfin boards so do not change it |
27 | 27 | #TEXT_BASE = do-not-use-me |
28 | 28 | |
29 | +CFLAGS_lib_generic += -O2 | |
30 | +CFLAGS_lzma += -O2 | |
31 | + | |
29 | 32 | # Set some default LDR flags based on boot mode. |
30 | 33 | LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE)) |
board/bf526-ezbrd/config.mk
... | ... | @@ -26,6 +26,9 @@ |
26 | 26 | # This is not actually used for Blackfin boards so do not change it |
27 | 27 | #TEXT_BASE = do-not-use-me |
28 | 28 | |
29 | +CFLAGS_lib_generic += -O2 | |
30 | +CFLAGS_lzma += -O2 | |
31 | + | |
29 | 32 | # Set some default LDR flags based on boot mode. |
30 | 33 | LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE)) |
board/bf527-ezkit/config.mk
... | ... | @@ -26,6 +26,9 @@ |
26 | 26 | # This is not actually used for Blackfin boards so do not change it |
27 | 27 | #TEXT_BASE = do-not-use-me |
28 | 28 | |
29 | +CFLAGS_lib_generic += -O2 | |
30 | +CFLAGS_lzma += -O2 | |
31 | + | |
29 | 32 | # Set some default LDR flags based on boot mode. |
30 | 33 | LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE)) |
board/bf533-ezkit/config.mk
... | ... | @@ -26,6 +26,9 @@ |
26 | 26 | # This is not actually used for Blackfin boards so do not change it |
27 | 27 | #TEXT_BASE = do-not-use-me |
28 | 28 | |
29 | +CFLAGS_lib_generic += -O2 | |
30 | +CFLAGS_lzma += -O2 | |
31 | + | |
29 | 32 | # Set some default LDR flags based on boot mode. |
30 | 33 | LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8 |
31 | 34 | LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE)) |
board/bf533-stamp/config.mk
... | ... | @@ -26,6 +26,9 @@ |
26 | 26 | # This is not actually used for Blackfin boards so do not change it |
27 | 27 | #TEXT_BASE = do-not-use-me |
28 | 28 | |
29 | +CFLAGS_lib_generic += -O2 | |
30 | +CFLAGS_lzma += -O2 | |
31 | + | |
29 | 32 | # Set some default LDR flags based on boot mode. |
30 | 33 | LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8 |
31 | 34 | LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE)) |
board/bf537-stamp/config.mk
... | ... | @@ -26,6 +26,9 @@ |
26 | 26 | # This is not actually used for Blackfin boards so do not change it |
27 | 27 | #TEXT_BASE = do-not-use-me |
28 | 28 | |
29 | +CFLAGS_lib_generic += -O2 | |
30 | +CFLAGS_lzma += -O2 | |
31 | + | |
29 | 32 | # Set some default LDR flags based on boot mode. |
30 | 33 | LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8 |
31 | 34 | LDR_FLAGS-BFIN_BOOT_UART := --port g --gpio 6 |
board/bf538f-ezkit/config.mk
... | ... | @@ -26,6 +26,9 @@ |
26 | 26 | # This is not actually used for Blackfin boards so do not change it |
27 | 27 | #TEXT_BASE = do-not-use-me |
28 | 28 | |
29 | +CFLAGS_lib_generic += -O2 | |
30 | +CFLAGS_lzma += -O2 | |
31 | + | |
29 | 32 | # Set some default LDR flags based on boot mode. |
30 | 33 | LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8 |
31 | 34 | LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE)) |
board/bf548-ezkit/config.mk
... | ... | @@ -26,6 +26,9 @@ |
26 | 26 | # This is not actually used for Blackfin boards so do not change it |
27 | 27 | #TEXT_BASE = do-not-use-me |
28 | 28 | |
29 | +CFLAGS_lib_generic += -O2 | |
30 | +CFLAGS_lzma += -O2 | |
31 | + | |
29 | 32 | # Set some default LDR flags based on boot mode. |
30 | 33 | LDR_FLAGS-BFIN_BOOT_PARA := --dma 6 |
31 | 34 | LDR_FLAGS-BFIN_BOOT_FIFO := --dma 1 |
board/bf561-ezkit/config.mk
... | ... | @@ -26,6 +26,9 @@ |
26 | 26 | # This is not actually used for Blackfin boards so do not change it |
27 | 27 | #TEXT_BASE = do-not-use-me |
28 | 28 | |
29 | +CFLAGS_lib_generic += -O2 | |
30 | +CFLAGS_lzma += -O2 | |
31 | + | |
29 | 32 | # Set some default LDR flags based on boot mode. |
30 | 33 | LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 |
31 | 34 | LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE)) |
board/cm-bf527/config.mk
... | ... | @@ -26,6 +26,9 @@ |
26 | 26 | # This is not actually used for Blackfin boards so do not change it |
27 | 27 | #TEXT_BASE = do-not-use-me |
28 | 28 | |
29 | +CFLAGS_lib_generic += -O2 | |
30 | +CFLAGS_lzma += -O2 | |
31 | + | |
29 | 32 | # Set some default LDR flags based on boot mode. |
30 | 33 | LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE)) |
board/cm-bf533/config.mk
... | ... | @@ -26,6 +26,9 @@ |
26 | 26 | # This is not actually used for Blackfin boards so do not change it |
27 | 27 | #TEXT_BASE = do-not-use-me |
28 | 28 | |
29 | +CFLAGS_lib_generic += -O2 | |
30 | +CFLAGS_lzma += -O2 | |
31 | + | |
29 | 32 | # Set some default LDR flags based on boot mode. |
30 | 33 | LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8 |
31 | 34 | LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE)) |
board/cm-bf537e/config.mk
... | ... | @@ -26,6 +26,9 @@ |
26 | 26 | # This is not actually used for Blackfin boards so do not change it |
27 | 27 | #TEXT_BASE = do-not-use-me |
28 | 28 | |
29 | +CFLAGS_lib_generic += -O2 | |
30 | +CFLAGS_lzma += -O2 | |
31 | + | |
29 | 32 | # Set some default LDR flags based on boot mode. |
30 | 33 | LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8 |
31 | 34 | LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE)) |
board/cm-bf548/config.mk
... | ... | @@ -26,6 +26,9 @@ |
26 | 26 | # This is not actually used for Blackfin boards so do not change it |
27 | 27 | #TEXT_BASE = do-not-use-me |
28 | 28 | |
29 | +CFLAGS_lib_generic += -O2 | |
30 | +CFLAGS_lzma += -O2 | |
31 | + | |
29 | 32 | # Set some default LDR flags based on boot mode. |
30 | 33 | LDR_FLAGS-BFIN_BOOT_PARA := --dma 6 |
31 | 34 | LDR_FLAGS-BFIN_BOOT_FIFO := --dma 1 |
board/cm-bf561/config.mk
... | ... | @@ -26,6 +26,9 @@ |
26 | 26 | # This is not actually used for Blackfin boards so do not change it |
27 | 27 | #TEXT_BASE = do-not-use-me |
28 | 28 | |
29 | +CFLAGS_lib_generic += -O2 | |
30 | +CFLAGS_lzma += -O2 | |
31 | + | |
29 | 32 | # Set some default LDR flags based on boot mode. |
30 | 33 | LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 |
31 | 34 | LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE)) |
board/tcm-bf537/config.mk
... | ... | @@ -26,6 +26,9 @@ |
26 | 26 | # This is not actually used for Blackfin boards so do not change it |
27 | 27 | #TEXT_BASE = do-not-use-me |
28 | 28 | |
29 | +CFLAGS_lib_generic += -O2 | |
30 | +CFLAGS_lzma += -O2 | |
31 | + | |
29 | 32 | # Set some default LDR flags based on boot mode. |
30 | 33 | LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8 |
31 | 34 | LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE)) |