config BR2_KERNEL_HEADERS_AS_KERNEL
bool "Same as kernel being built"
depends on BR2_LINUX_KERNEL
+ select BR2_KERNEL_HEADERS_LATEST if BR2_LINUX_KERNEL_LATEST_VERSION
config BR2_KERNEL_HEADERS_4_4
bool "Linux 4.4.x kernel headers"
config BR2_KERNEL_HEADERS_5_4
bool "Linux 5.4.x kernel headers"
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
+ select BR2_KERNEL_HEADERS_LATEST
config BR2_KERNEL_HEADERS_VERSION
bool "Manually specified Linux version"
endchoice
+# Select this for the latest kernel headers version (for license hashes)
+config BR2_KERNEL_HEADERS_LATEST
+ bool
+
config BR2_DEFAULT_KERNEL_VERSION
string "linux version"
depends on BR2_KERNEL_HEADERS_VERSION
LINUX_HEADERS_DL_SUBDIR = linux
LINUX_HEADERS_LICENSE = GPL-2.0
-LINUX_HEADERS_LICENSE_FILES = COPYING
+ifeq ($(BR2_KERNEL_HEADERS_LATEST),y)
+LINUX_HEADERS_LICENSE_FILES = \
+ COPYING \
+ LICENSES/preferred/GPL-2.0 \
+ LICENSES/exceptions/Linux-syscall-note
+endif
LINUX_HEADERS_INSTALL_STAGING = YES