aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-03-16 09:33:18 +0100
committerFelix Fietkau <nbd@nbd.name>2017-03-16 19:14:09 +0100
commit1f12a3daaaa8f3525741bef2bc2be7c5c6c77b50 (patch)
treeb8bf87ceec6f21d0c2cf51fac29def48cdbd8c0f /include
parenta9c96ef0ac7ac99e4928f5312f3d0d1252c98328 (diff)
downloadupstream-1f12a3daaaa8f3525741bef2bc2be7c5c6c77b50.tar.gz
upstream-1f12a3daaaa8f3525741bef2bc2be7c5c6c77b50.tar.bz2
upstream-1f12a3daaaa8f3525741bef2bc2be7c5c6c77b50.zip
kernel: speed up build system by getting rid of redundant work
KERNELRELEASE contains a $(shell) call which is evaluated over and over again. The call to checksyscalls.sh is unnecessary for LEDE and also takes a few seconds to complete. Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include')
-rw-r--r--include/kernel-defaults.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk
index 10bd67a571..1c3b428b16 100644
--- a/include/kernel-defaults.mk
+++ b/include/kernel-defaults.mk
@@ -23,7 +23,9 @@ KERNEL_MAKEOPTS := -C $(LINUX_DIR) \
HOST_LOADLIBES="-L$(STAGING_DIR_HOST)/lib" \
CONFIG_SHELL="$(BASH)" \
$(if $(findstring c,$(OPENWRT_VERBOSE)),V=1,V='') \
- $(if $(PKG_BUILD_ID),LDFLAGS_MODULE=--build-id=0x$(PKG_BUILD_ID))
+ $(if $(PKG_BUILD_ID),LDFLAGS_MODULE=--build-id=0x$(PKG_BUILD_ID)) \
+ KERNELRELEASE=$(LINUX_VERSION) \
+ cmd_syscalls=
ifdef CONFIG_STRIP_KERNEL_EXPORTS
KERNEL_MAKEOPTS += \