diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2022-06-15 10:41:37 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2022-06-19 23:23:18 +0200 |
commit | 1d42af720c6b6dcfcdd0b89bce386fca1607dcb3 (patch) | |
tree | 9f8048b45b47879acf37844e2a3c235bd11c031b /include | |
parent | 77692d6112074f969170ec3c9b353df6565bc1c3 (diff) | |
download | upstream-1d42af720c6b6dcfcdd0b89bce386fca1607dcb3.tar.gz upstream-1d42af720c6b6dcfcdd0b89bce386fca1607dcb3.tar.bz2 upstream-1d42af720c6b6dcfcdd0b89bce386fca1607dcb3.zip |
kernel: use KCFLAGS for passing EXTRA_OPTIMIZATION flags
This uses kernel's generic variable and doesn't require patching it with
a custom Makefile change. It's expected *not* to change any behaviour.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'include')
-rw-r--r-- | include/kernel.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/kernel.mk b/include/kernel.mk index 01b737f132..ffc9ea5260 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -101,7 +101,7 @@ endif KERNEL_MAKE = $(MAKE) $(KERNEL_MAKEOPTS) KERNEL_MAKE_FLAGS = \ - KCFLAGS="$(call iremap,$(BUILD_DIR),$(notdir $(BUILD_DIR)))" \ + KCFLAGS="$(call iremap,$(BUILD_DIR),$(notdir $(BUILD_DIR))) $(call qstrip,$(CONFIG_EXTRA_OPTIMIZATION))" \ HOSTCFLAGS="$(HOST_CFLAGS) -Wall -Wmissing-prototypes -Wstrict-prototypes" \ CROSS_COMPILE="$(KERNEL_CROSS)" \ ARCH="$(LINUX_KARCH)" \ |