aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/config-4.14
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2019-05-12 18:49:24 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2019-08-17 00:18:29 +0200
commit6db454e9b69fbf80b8f7bfb1f718a0ab340873fd (patch)
tree86acfd2b19a977c00df5d49ce4497f85a1abd1d1 /target/linux/generic/config-4.14
parente79f192c0ab50e3a889cdea7b32dbaa394a529ab (diff)
downloadupstream-6db454e9b69fbf80b8f7bfb1f718a0ab340873fd.tar.gz
upstream-6db454e9b69fbf80b8f7bfb1f718a0ab340873fd.tar.bz2
upstream-6db454e9b69fbf80b8f7bfb1f718a0ab340873fd.zip
kernel: Activate CONFIG_OPTIMIZE_INLINING
This will reduce the size of the kernel if CONFIG_CC_OPTIMIZE_FOR_SIZE is set like for all targets with small_flash feature flag. I haven't seen any changes for an ARM64 target which optimizes the kernel for speed instead. On the ath79/tiny target the uncompressed kernel size was reduced by 3.2% and the compressed kernel size by 2.1% kernel size with CONFIG_OPTIMIZE_INLINING=n 4346412 build_dir/target-mips_24kc_musl/linux-ath79_tiny/vmlinux 1391169 build_dir/target-mips_24kc_musl/linux-ath79_tiny/tplink_tl-wr941-v4-kernel.bin Kernel size with CONFIG_OPTIMIZE_INLINING=y 4212396 build_dir/target-mips_24kc_musl/linux-ath79_tiny/vmlinux 1362051 build_dir/target-mips_24kc_musl/linux-ath79_tiny/tplink_tl-wr941-v4-kernel.bin This change is currently pending for kernel 5.2 and already in linux-next, this updates our patch to match the upstream version. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> (cherry picked from commit 6dac1c0a9b94b62b6412b74a8997f728570f36be)
Diffstat (limited to 'target/linux/generic/config-4.14')
-rw-r--r--target/linux/generic/config-4.142
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/config-4.14 b/target/linux/generic/config-4.14
index 1e8497b503..8aaa54b8ff 100644
--- a/target/linux/generic/config-4.14
+++ b/target/linux/generic/config-4.14
@@ -3382,7 +3382,7 @@ CONFIG_NMI_LOG_BUF_SHIFT=13
# CONFIG_OPROFILE is not set
# CONFIG_OPROFILE_EVENT_MULTIPLEX is not set
# CONFIG_OPT3001 is not set
-# CONFIG_OPTIMIZE_INLINING is not set
+CONFIG_OPTIMIZE_INLINING=y
# CONFIG_ORANGEFS_FS is not set
# CONFIG_ORION_WATCHDOG is not set
# CONFIG_OSF_PARTITION is not set