Skip to content

Commit

Permalink
include: Do not alter KERNELRELEASE for external/git kernels
Browse files Browse the repository at this point in the history
In case we use external and/or git cloned kernels, let the kernel
determine the appropriate KERNELRELEASE. We cannot used
LINUX_UNAME_VERSION because that one gets determined at a later time,
when the kernel is already built proper.

Signed-off-by: Florian Fainelli <[email protected]>
  • Loading branch information
ffainelli authored and blogic committed May 25, 2017
1 parent d0a6340 commit b6746a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/kernel-defaults.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@ KERNEL_MAKEOPTS := -C $(LINUX_DIR) \
CONFIG_SHELL="$(BASH)" \
$(if $(findstring c,$(OPENWRT_VERBOSE)),V=1,V='') \
$(if $(PKG_BUILD_ID),LDFLAGS_MODULE=--build-id=0x$(PKG_BUILD_ID)) \
KERNELRELEASE=$(LINUX_VERSION) \
cmd_syscalls=


ifeq ($(call qstrip,$(CONFIG_EXTERNAL_KERNEL_TREE))$(call qstrip,$(CONFIG_KERNEL_GIT_CLONE_URI)),)
KERNEL_MAKEOPTS += \
KERNELRELEASE=$(LINUX_VERSION)
endif

ifdef CONFIG_STRIP_KERNEL_EXPORTS
KERNEL_MAKEOPTS += \
EXTRA_LDSFLAGS="-I$(KERNEL_BUILD_DIR) -include symtab.h"
Expand Down

0 comments on commit b6746a6

Please sign in to comment.