Skip to content

Commit 86d120e

Browse files
committed
WiP: Pass all modules from O2 to Os to optimize for space.
Adresses @easrentai suggestion to pass modules optimization here: #590 (comment)
1 parent 3b99caa commit 86d120e

File tree

13 files changed

+17
-4
lines changed

13 files changed

+17
-4
lines changed

modules/busybox

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ busybox_config := config/busybox.config
1313
busybox_output := busybox
1414
busybox_target := \
1515
$(CROSS_TOOLS) \
16+
CFLAGS="-Os" \
1617
$(MAKE_JOBS) \
1718

1819
# Install symlinks when the busybox program is installed

modules/cairo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cairo_hash := 8c90f00c500b2299c0a323dd9beead2a00353752b2092ead558139bd67f7bf16
88

99
cairo_configure := \
1010
$(CROSS_TOOLS) \
11-
CFLAGS="-DCAIRO_NO_MUTEX=1 -O3" \
11+
CFLAGS="-DCAIRO_NO_MUTEX=1 -Os" \
1212
./configure \
1313
--host i386-elf-linux \
1414
--prefix="/" \

modules/cryptsetup

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ cryptsetup_hash := af2b04e8475cf40b8d9ffd97a1acfa73aa787c890430afd89804fb544d6ad
1010

1111
# Use an empty prefix so that the executables will not include the
1212
# build path.
13-
cryptsetup_configure := ./configure \
13+
cryptsetup_configure := \
1414
$(CROSS_TOOLS) \
15+
CFLAGS="-Os" \
16+
./configure \
1517
--host i386-elf-linux \
1618
--prefix "/" \
1719
--disable-gcrypt-pbkdf2 \

modules/flashrom

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ flashrom_url := https://github.com/flashrom/flashrom/archive/$(flashrom_version)
99
flashrom_hash := 4873ad50f500629c244fc3fbee64b56403a82307d7f555dfa235336a200c336c
1010

1111
flashrom_target := \
12+
CFLAGS="-Os" \
1213
$(MAKE_JOBS) \
1314
$(CROSS_TOOLS) \
1415
WARNERROR=no \

modules/gpg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ gpg_hash := 6b47a3100c857dcab3c60e6152e56a997f2c7862c1b8b2b25adf3884a1ae2276
1919
#
2020
gpg_configure := ./configure \
2121
$(CROSS_TOOLS) \
22+
CFLAGS="-Os" \
2223
--build i386-elf-linux \
2324
--host x86_64-linux-musl \
2425
--with-libusb="$(INSTALL)" \

modules/libgcrypt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ libgcrypt_hash := 0cba2700617b99fc33864a0c16b1fa7fdf9781d9ed3509f5d767178e5fd7b9
77

88
libgcrypt_configure := ./configure \
99
$(CROSS_TOOLS) \
10+
CFLAGS="-Os" \
1011
--host=x86_64-linux-musl \
1112
--prefix "/" \
1213
--disable-static \

modules/libgpg-error

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ libgpg-error_tar := libgpg-error-$(libgpg-error_version).tar.bz2
55
libgpg-error_url := https://gnupg.org/ftp/gcrypt/libgpg-error/$(libgpg-error_tar)
66
libgpg-error_hash := b32d6ff72a73cf79797f7f2d039e95e9c6f92f0c1450215410840ab62aea9763
77

8-
libgpg-error_configure := ./configure \
8+
libgpg-error_configure := \
99
$(CROSS_TOOLS) \
10+
CFLAGS="-Os" \
11+
./configure \
1012
--prefix "/" \
1113
--host=x86_64-linux-musl \
1214
--disable-static \

modules/libpng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ libpng_hash := 574623a4901a9969080ab4a2df9437026c8a87150dfd5c235e28c94b212964a7
88

99
libpng_configure := \
1010
$(CROSS_TOOLS) \
11+
CFLAGS="-Os" \
1112
./configure \
1213
--host i386-elf-linux \
1314
--prefix="/" \

modules/lvm2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ lvm2_hash := 23a3d1cddd41b3ef51812ebf83e9fa491f502fe74130d4263be327a91914660d
1010
# so we force it via the configure cache.
1111
lvm2_configure := \
1212
$(CROSS_TOOLS) \
13+
CFLAGS="-Os" \
1314
PKG_CONFIG=/bin/false \
1415
MODPROBE_CMD=/bin/false \
1516
ac_cv_func_malloc_0_nonnull=yes \

modules/pixman

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pixman_hash := 21b6b249b51c6800dc9553b65106e1e37d0e25df942c90531d4c3997aa20a88e
88

99
pixman_configure := \
1010
$(CROSS_TOOLS) \
11+
CFLAGS="-Os" \
1112
./configure \
1213
--host i386-elf-linux \
1314
--prefix="/" \

0 commit comments

Comments
 (0)