Openwrt/target/linux
Mathias Kresin cf7154db07 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>
2018-07-12 18:15:32 +02:00
..
adm5120 kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
adm8668
apm821xx
ar7
ar71xx ar71xx: move boards to tiny subtarget 2018-07-12 18:15:19 +02:00
arc770 arc: Update variables substitutions in u-boot env files 2018-07-12 10:24:31 +02:00
archs38 arc: Update variables substitutions in u-boot env files 2018-07-12 10:24:31 +02:00
armvirt
at91 kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
ath25
ath79 kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
au1000 kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
bcm53xx
brcm47xx kernel: bump 4.14 to 4.14.54 2018-07-11 16:02:24 +02:00
brcm63xx
brcm2708
cns3xxx
gemini
generic kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
imx6
ipq40xx
ipq806x
ixp4xx
kirkwood
lantiq kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
layerscape kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
malta
mcs814x kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
mediatek kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
mpc85xx
mvebu
mxs
octeon
octeontx
omap
omap24xx
orion
oxnas
pistachio
ppc40x kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
ppc44x kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
ramips kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
rb532 kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
sunxi
uml
x86
xburst
zynq
Makefile