Skip to content

Commit 2d4db6a

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 2cfa940 commit 2d4db6a

File tree

15 files changed

+23
-6
lines changed

15 files changed

+23
-6
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/cryptsetup2

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

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

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/gpg2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ gpg2_hash := 61e83278fb5fa7336658a8b73ab26f379d41275bb1c7c6e694dd9f9a6e8e76ec
1111
# be generated with the correct paths, but then re-write them when
1212
# we use the install target so that they will be copied to the correct
1313
# location.
14-
gpg2_configure := ./configure \
14+
gpg2_configure := \
15+
CFLAGS="-Os" \
16+
./configure \
1517
$(CROSS_TOOLS) \
1618
CPPFLAGS="-I$(INSTALL)/include/libusb-1.0" \
1719
--host x86_64-linux-musl \

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="/" \

0 commit comments

Comments
 (0)