Skip to content

Commit

Permalink
kernel: drop patch adding hardcoded kernel compilation flags
Browse files Browse the repository at this point in the history
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: 4e0c54b ("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/20190409093046.13401-1-zajec5@gmail.com/
Cc: Felix Fietkau <nbd@nbd.name>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Cc: Rui Salvaterra <rsalvaterra@gmail.com>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
  • Loading branch information
Rafał Miłecki committed Jun 20, 2022
1 parent 907d7d7 commit 22168ae
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 50 deletions.
25 changes: 0 additions & 25 deletions target/linux/generic/pending-5.10/201-extra_optimization.patch

This file was deleted.

25 changes: 0 additions & 25 deletions target/linux/generic/pending-5.15/201-extra_optimization.patch

This file was deleted.

0 comments on commit 22168ae

Please sign in to comment.