kernel: only optimized for size if small_flash
Add a new config option to allow to select the default compile
optimization level for the kernel.
Select the optimization for size by default if the small_flash feature is
set. Otherwise "Optimize for performance" is set.
Add the small_flash feature flag to all (sub)targets which had the
optimization for size in their default kernel config.
Remove CC_OPTIMIZE_FOR_* symbols from all kernel configs to apply the new
setting.
Exceptions to the above are:
- lantiq, where the optimization for size is only required for the
xway_legacy subtarget but was set for the whole target
- mediatek, ramips/mt7620 & ramips/mt76x8 where boards should have
plenty of space and an optimization for size doesn't make much sense
- rb532, which has 128MByte flash
Signed-off-by:
Mathias Kresin <dev@kresin.me>
Showing
- config/Config-kernel.in 22 additions, 0 deletionsconfig/Config-kernel.in
- target/linux/adm5120/Makefile 1 addition, 1 deletiontarget/linux/adm5120/Makefile
- target/linux/adm5120/config-3.18 0 additions, 1 deletiontarget/linux/adm5120/config-3.18
- target/linux/at91/config-4.9 0 additions, 2 deletionstarget/linux/at91/config-4.9
- target/linux/ath79/tiny/config-default 0 additions, 2 deletionstarget/linux/ath79/tiny/config-default
- target/linux/au1000/Makefile 1 addition, 1 deletiontarget/linux/au1000/Makefile
- target/linux/au1000/config-3.18 0 additions, 1 deletiontarget/linux/au1000/config-3.18
- target/linux/generic/config-3.18 0 additions, 1 deletiontarget/linux/generic/config-3.18
- target/linux/generic/config-4.14 0 additions, 2 deletionstarget/linux/generic/config-4.14
- target/linux/generic/config-4.9 0 additions, 2 deletionstarget/linux/generic/config-4.9
- target/linux/lantiq/config-4.14 0 additions, 2 deletionstarget/linux/lantiq/config-4.14
- target/linux/layerscape/armv8_32b/config-4.9 0 additions, 2 deletionstarget/linux/layerscape/armv8_32b/config-4.9
- target/linux/layerscape/armv8_64b/config-4.9 0 additions, 2 deletionstarget/linux/layerscape/armv8_64b/config-4.9
- target/linux/mcs814x/Makefile 1 addition, 1 deletiontarget/linux/mcs814x/Makefile
- target/linux/mcs814x/config-3.18 0 additions, 1 deletiontarget/linux/mcs814x/config-3.18
- target/linux/mediatek/mt7622/config-4.14 0 additions, 2 deletionstarget/linux/mediatek/mt7622/config-4.14
- target/linux/ppc40x/Makefile 1 addition, 1 deletiontarget/linux/ppc40x/Makefile
- target/linux/ppc40x/config-3.18 0 additions, 1 deletiontarget/linux/ppc40x/config-3.18
- target/linux/ppc44x/Makefile 1 addition, 1 deletiontarget/linux/ppc44x/Makefile
- target/linux/ppc44x/config-3.18 0 additions, 1 deletiontarget/linux/ppc44x/config-3.18
Loading
Please register or sign in to comment