Skip to content

Commit bbc2517

Browse files
author
Rebecca Cran
committed
meta-ampere/meta-adlink-comhpcalt: Build bash with size optimization
Add bash_%.bbappend file to set CFLAGS to optimize for size, enable LTO and remove unused sections. Signed-off-by: Rebecca Cran <[email protected]>
1 parent 8216034 commit bbc2517

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
2+
3+
CFLAGS += "-Os -flto -ffunction-sections -fdata-sections -Wl,--gc-sections"

0 commit comments

Comments
 (0)