kernel: drop patch adding hardcoded kernel compilation flags
authorRafał Miłecki <[email protected]>
Wed, 15 Jun 2022 10:36:37 +0000 (12:36 +0200)
committerRafał Miłecki <[email protected]>
Mon, 20 Jun 2022 20:17:38 +0000 (22:17 +0200)
commit22168ae68101b95d03741b0e9e8ad20b8a5ae5b7
treecb9d9e915e0ae75ca148b49af818d49bba6d01fa
parent907d7d747243044f86588f0d82993e8c106cb02c
kernel: drop patch adding hardcoded kernel compilation flags

1. KCFLAGS should be used for custom flags
2. Optimization flags are arch / SoC specific
3. -fno-reorder-blocks may *worsen* network performace on some SoCs
4. Usage of flags was *reversed* since 5.4 and noone reported that

If we really need custom flags then CONFIG_KERNEL_CFLAGS should get
default value adjusted properly (per target).

Ref: 4e0c54bc5bc8 ("kernel: add support for kernel 5.4")
Link: http://lists.openwrt.org/pipermail/openwrt-devel/2022-June/038853.html
Link: https://patchwork.ozlabs.org/project/openwrt/patch/[email protected]/
Cc: Felix Fietkau <[email protected]>
Cc: Hauke Mehrtens <[email protected]>
Cc: Rui Salvaterra <[email protected]>
Signed-off-by: Rafał Miłecki <[email protected]>
Acked-by: Hauke Mehrtens <[email protected]>
target/linux/generic/pending-5.10/201-extra_optimization.patch [deleted file]
target/linux/generic/pending-5.15/201-extra_optimization.patch [deleted file]