mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-03 01:31:07 +00:00
mtd: Activate LTO compile option
This decreases the size of the mtd application by 25% on MIPS BE. old: 20,597 /sbin/mtd new: 16,421 /sbin/mtd Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
6596c95eca
commit
1eb34b7287
@ -36,7 +36,8 @@ endef
|
|||||||
target=$(firstword $(subst -, ,$(BOARD)))
|
target=$(firstword $(subst -, ,$(BOARD)))
|
||||||
|
|
||||||
MAKE_FLAGS += TARGET="$(target)"
|
MAKE_FLAGS += TARGET="$(target)"
|
||||||
TARGET_CFLAGS := $(TARGET_CFLAGS) -Dtarget_$(target)=1 -Wall
|
TARGET_CFLAGS += -Dtarget_$(target)=1 -Wall -flto
|
||||||
|
TARGET_LDFLAGS += -flto=jobserver
|
||||||
|
|
||||||
ifdef CONFIG_MTD_REDBOOT_PARTS
|
ifdef CONFIG_MTD_REDBOOT_PARTS
|
||||||
MAKE_FLAGS += FIS_SUPPORT=1
|
MAKE_FLAGS += FIS_SUPPORT=1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user