Bump buildroot to 2019.02
This commit is contained in:
@@ -6,7 +6,9 @@ config BR2_PACKAGE_HOST_LINUX_HEADERS
|
||||
choice
|
||||
prompt "Kernel Headers"
|
||||
default BR2_KERNEL_HEADERS_AS_KERNEL if BR2_LINUX_KERNEL
|
||||
default BR2_KERNEL_HEADERS_4_15
|
||||
# We are intentionally staying at 4.19 for the next Buildroot
|
||||
# LTS release (2019.02)
|
||||
default BR2_KERNEL_HEADERS_4_19
|
||||
help
|
||||
Select the kernel version to get headers from.
|
||||
|
||||
@@ -26,46 +28,28 @@ config BR2_KERNEL_HEADERS_AS_KERNEL
|
||||
bool "Same as kernel being built"
|
||||
depends on BR2_LINUX_KERNEL
|
||||
|
||||
config BR2_KERNEL_HEADERS_3_2
|
||||
bool "Linux 3.2.x kernel headers"
|
||||
depends on !BR2_aarch64 && !BR2_arc && !BR2_nios2
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
|
||||
|
||||
config BR2_KERNEL_HEADERS_4_1
|
||||
bool "Linux 4.1.x kernel headers"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
|
||||
|
||||
config BR2_KERNEL_HEADERS_4_4
|
||||
bool "Linux 4.4.x kernel headers"
|
||||
depends on !BR2_riscv
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
|
||||
|
||||
config BR2_KERNEL_HEADERS_4_9
|
||||
bool "Linux 4.9.x kernel headers"
|
||||
depends on !BR2_riscv
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_9
|
||||
|
||||
config BR2_KERNEL_HEADERS_4_10
|
||||
bool "Linux 4.10.x kernel headers"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
|
||||
|
||||
config BR2_KERNEL_HEADERS_4_11
|
||||
bool "Linux 4.11.x kernel headers"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
|
||||
|
||||
config BR2_KERNEL_HEADERS_4_12
|
||||
bool "Linux 4.12.x kernel headers"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
|
||||
|
||||
config BR2_KERNEL_HEADERS_4_13
|
||||
bool "Linux 4.13.x kernel headers"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13
|
||||
|
||||
config BR2_KERNEL_HEADERS_4_14
|
||||
bool "Linux 4.14.x kernel headers"
|
||||
depends on !BR2_riscv
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14
|
||||
|
||||
config BR2_KERNEL_HEADERS_4_15
|
||||
bool "Linux 4.15.x kernel headers"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15
|
||||
config BR2_KERNEL_HEADERS_4_19
|
||||
bool "Linux 4.19.x kernel headers"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19
|
||||
|
||||
config BR2_KERNEL_HEADERS_4_20
|
||||
bool "Linux 4.20.x kernel headers"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20
|
||||
|
||||
config BR2_KERNEL_HEADERS_VERSION
|
||||
bool "Manually specified Linux version"
|
||||
@@ -78,6 +62,23 @@ config BR2_KERNEL_HEADERS_VERSION
|
||||
URL at kernel.org. Instead, select "Custom tarball" and
|
||||
specify the right URL directly.
|
||||
|
||||
config BR2_KERNEL_HEADERS_CUSTOM_TARBALL
|
||||
bool "Custom tarball"
|
||||
help
|
||||
This option allows you to specify a URL pointing to a kernel
|
||||
source tarball. This URL can use any protocol recognized by
|
||||
Buildroot, like http://, ftp://, file:// or scp://.
|
||||
|
||||
When pointing to a local tarball using file://, you may want
|
||||
to use a make variable like $(TOPDIR) to reference the root of
|
||||
the Buildroot tree.
|
||||
|
||||
config BR2_KERNEL_HEADERS_CUSTOM_GIT
|
||||
bool "Custom Git repository"
|
||||
help
|
||||
This option allows Buildroot to get the Linux kernel source
|
||||
code from a Git repository.
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_DEFAULT_KERNEL_VERSION
|
||||
@@ -87,9 +88,27 @@ config BR2_DEFAULT_KERNEL_VERSION
|
||||
Specify the version you want to use.
|
||||
E.G.: 3.6.10
|
||||
|
||||
config BR2_KERNEL_HEADERS_CUSTOM_TARBALL_LOCATION
|
||||
string "URL of custom kernel tarball"
|
||||
depends on BR2_KERNEL_HEADERS_CUSTOM_TARBALL
|
||||
|
||||
if BR2_KERNEL_HEADERS_CUSTOM_GIT
|
||||
|
||||
config BR2_KERNEL_HEADERS_CUSTOM_REPO_URL
|
||||
string "URL of custom repository"
|
||||
|
||||
config BR2_KERNEL_HEADERS_CUSTOM_REPO_VERSION
|
||||
string "Custom repository version"
|
||||
help
|
||||
Revision to use in the typical format used by
|
||||
Git/Mercurial/Subversion E.G. a sha id, a tag, branch, ..
|
||||
|
||||
endif
|
||||
|
||||
choice
|
||||
bool "Custom kernel headers series"
|
||||
depends on BR2_KERNEL_HEADERS_VERSION || BR2_KERNEL_HEADERS_AS_KERNEL
|
||||
depends on BR2_KERNEL_HEADERS_VERSION || BR2_KERNEL_HEADERS_AS_KERNEL || \
|
||||
BR2_KERNEL_HEADERS_CUSTOM_TARBALL || BR2_KERNEL_HEADERS_CUSTOM_GIT
|
||||
help
|
||||
Specify the kernel headers series you manually selected,
|
||||
above.
|
||||
@@ -97,6 +116,26 @@ choice
|
||||
This is used to hide/show some packages that have strict
|
||||
requirements on the version of kernel headers.
|
||||
|
||||
config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_20
|
||||
bool "4.20.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20
|
||||
|
||||
config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19
|
||||
bool "4.19.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19
|
||||
|
||||
config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_18
|
||||
bool "4.18.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_18
|
||||
|
||||
config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_17
|
||||
bool "4.17.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_17
|
||||
|
||||
config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_16
|
||||
bool "4.16.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_16
|
||||
|
||||
config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_15
|
||||
bool "4.15.x"
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15
|
||||
@@ -248,14 +287,12 @@ endchoice
|
||||
|
||||
config BR2_DEFAULT_KERNEL_HEADERS
|
||||
string
|
||||
default "3.2.102" if BR2_KERNEL_HEADERS_3_2
|
||||
default "4.1.52" if BR2_KERNEL_HEADERS_4_1
|
||||
default "4.4.164" if BR2_KERNEL_HEADERS_4_4
|
||||
default "4.9.140" if BR2_KERNEL_HEADERS_4_9
|
||||
default "4.10.17" if BR2_KERNEL_HEADERS_4_10
|
||||
default "4.11.12" if BR2_KERNEL_HEADERS_4_11
|
||||
default "4.12.14" if BR2_KERNEL_HEADERS_4_12
|
||||
default "4.13.16" if BR2_KERNEL_HEADERS_4_13
|
||||
default "4.14.83" if BR2_KERNEL_HEADERS_4_14
|
||||
default "4.15.18" if BR2_KERNEL_HEADERS_4_15
|
||||
default "4.4.176" if BR2_KERNEL_HEADERS_4_4
|
||||
default "4.9.160" if BR2_KERNEL_HEADERS_4_9
|
||||
default "4.14.103" if BR2_KERNEL_HEADERS_4_14
|
||||
default "4.19.25" if BR2_KERNEL_HEADERS_4_19
|
||||
default "4.20.12" if BR2_KERNEL_HEADERS_4_20
|
||||
default BR2_DEFAULT_KERNEL_VERSION if BR2_KERNEL_HEADERS_VERSION
|
||||
default "custom" if BR2_KERNEL_HEADERS_CUSTOM_TARBALL
|
||||
default BR2_KERNEL_HEADERS_CUSTOM_REPO_VERSION \
|
||||
if BR2_KERNEL_HEADERS_CUSTOM_GIT
|
||||
|
||||
1
bsp/buildroot/package/linux-headers/linux-headers.hash
Symbolic link
1
bsp/buildroot/package/linux-headers/linux-headers.hash
Symbolic link
@@ -0,0 +1 @@
|
||||
../../linux/linux.hash
|
||||
@@ -7,27 +7,48 @@
|
||||
# This package is used to provide Linux kernel headers for the
|
||||
# internal toolchain backend.
|
||||
|
||||
# Set variables depending on whether we are using headers from a kernel
|
||||
# build or a standalone header package.
|
||||
ifeq ($(BR2_KERNEL_HEADERS_AS_KERNEL),y)
|
||||
|
||||
LINUX_HEADERS_CUSTOM_TARBALL = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_TARBALL))
|
||||
LINUX_HEADERS_CUSTOM_GIT = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_GIT))
|
||||
LINUX_HEADERS_CUSTOM_HG = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_HG))
|
||||
LINUX_HEADERS_CUSTOM_SVN = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_SVN))
|
||||
LINUX_HEADERS_VERSION = $(call qstrip,$(BR2_LINUX_KERNEL_VERSION))
|
||||
LINUX_HEADERS_CUSTOM_TARBALL_LOCATION = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION))
|
||||
LINUX_HEADERS_REPO_URL = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
|
||||
else # ! BR2_KERNEL_HEADERS_AS_KERNEL
|
||||
LINUX_HEADERS_CUSTOM_TARBALL = $(call qstrip,$(BR2_KERNEL_HEADERS_CUSTOM_TARBALL))
|
||||
LINUX_HEADERS_CUSTOM_GIT = $(call qstrip,$(BR2_KERNEL_HEADERS_CUSTOM_GIT))
|
||||
LINUX_HEADERS_CUSTOM_HG =
|
||||
LINUX_HEADERS_CUSTOM_SVN =
|
||||
LINUX_HEADERS_VERSION = $(call qstrip,$(BR2_DEFAULT_KERNEL_HEADERS))
|
||||
LINUX_HEADERS_CUSTOM_TARBALL_LOCATION = $(call qstrip,$(BR2_KERNEL_HEADERS_CUSTOM_TARBALL_LOCATION))
|
||||
LINUX_HEADERS_REPO_URL = $(call qstrip,$(BR2_KERNEL_HEADERS_CUSTOM_REPO_URL))
|
||||
endif # BR2_KERNEL_HEADERS_AS_KERNEL
|
||||
|
||||
# Compute LINUX_HEADERS_SOURCE and LINUX_HEADERS_SITE from the configuration
|
||||
ifeq ($(BR2_LINUX_KERNEL_CUSTOM_TARBALL),y)
|
||||
LINUX_HEADERS_TARBALL = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION))
|
||||
LINUX_HEADERS_SITE = $(patsubst %/,%,$(dir $(LINUX_HEADERS_TARBALL)))
|
||||
LINUX_HEADERS_SOURCE = $(notdir $(LINUX_HEADERS_TARBALL))
|
||||
else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_GIT),y)
|
||||
LINUX_HEADERS_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
|
||||
LINUX_HEADERS_SITE_METHOD = git
|
||||
# use same git tarball as linux kernel
|
||||
LINUX_HEADERS_SOURCE = linux-$(LINUX_HEADERS_VERSION).tar.gz
|
||||
else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_HG),y)
|
||||
LINUX_HEADERS_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
|
||||
LINUX_HEADERS_SITE_METHOD = hg
|
||||
# use same hg tarball as linux kernel
|
||||
# Configure tarball filenames.
|
||||
ifeq ($(LINUX_HEADERS_CUSTOM_TARBALL),y)
|
||||
LINUX_HEADERS_SOURCE = $(notdir $(LINUX_HEADERS_CUSTOM_TARBALL_LOCATION))
|
||||
else ifeq ($(LINUX_HEADERS_CUSTOM_GIT)$(LINUX_HEADERS_CUSTOM_HG)$(LINUX_HEADERS_CUSTOM_SVN),y)
|
||||
LINUX_HEADERS_SOURCE = linux-$(LINUX_HEADERS_VERSION).tar.gz
|
||||
else
|
||||
LINUX_HEADERS_SOURCE = linux-$(LINUX_HEADERS_VERSION).tar.xz
|
||||
endif
|
||||
|
||||
# Configure the various kernel source locations.
|
||||
ifeq ($(LINUX_HEADERS_CUSTOM_TARBALL),y)
|
||||
LINUX_HEADERS_SITE = $(patsubst %/,%,$(dir $(LINUX_HEADERS_CUSTOM_TARBALL_LOCATION)))
|
||||
else ifeq ($(LINUX_HEADERS_CUSTOM_GIT),y)
|
||||
LINUX_HEADERS_SITE = $(LINUX_HEADERS_REPO_URL)
|
||||
LINUX_HEADERS_SITE_METHOD = git
|
||||
else ifeq ($(LINUX_HEADERS_CUSTOM_HG),y)
|
||||
LINUX_HEADERS_SITE = $(LINUX_HEADERS_REPO_URL)
|
||||
LINUX_HEADERS_SITE_METHOD = hg
|
||||
else ifeq ($(LINUX_HEADERS_CUSTOM_SVN),y)
|
||||
LINUX_HEADERS_SITE = $(LINUX_HEADERS_REPO_URL)
|
||||
LINUX_HEADERS_SITE_METHOD = svn
|
||||
else
|
||||
# In X.Y.Z, get X and Y. We replace dots and dashes by spaces in order
|
||||
# to use the $(word) function. We support versions such as 4.0, 3.1,
|
||||
# 2.6.32, 2.6.32-rc1, 3.0-rc6, etc.
|
||||
@@ -37,13 +58,16 @@ else ifeq ($(findstring x3.,x$(LINUX_HEADERS_VERSION)),x3.)
|
||||
LINUX_HEADERS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v3.x
|
||||
else ifeq ($(findstring x4.,x$(LINUX_HEADERS_VERSION)),x4.)
|
||||
LINUX_HEADERS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v4.x
|
||||
endif
|
||||
endif # x2.6
|
||||
# release candidates are in testing/ subdir
|
||||
ifneq ($(findstring -rc,$(LINUX_HEADERS_VERSION)),)
|
||||
LINUX_HEADERS_SITE := $(LINUX_HEADERS_SITE)/testing
|
||||
endif # -rc
|
||||
endif
|
||||
endif # LINUX_HEADERS_CUSTOM_TARBALL
|
||||
|
||||
# Apply any necessary patches if we are using the headers from a kernel
|
||||
# build.
|
||||
ifeq ($(BR2_KERNEL_HEADERS_AS_KERNEL),y)
|
||||
LINUX_HEADERS_PATCHES = $(call qstrip,$(BR2_LINUX_KERNEL_PATCH))
|
||||
|
||||
# We rely on the generic package infrastructure to download and apply
|
||||
@@ -63,24 +87,15 @@ define LINUX_HEADERS_APPLY_LOCAL_PATCHES
|
||||
endef
|
||||
|
||||
LINUX_HEADERS_POST_PATCH_HOOKS += LINUX_HEADERS_APPLY_LOCAL_PATCHES
|
||||
endif # BR2_KERNEL_HEADERS_AS_KERNEL
|
||||
|
||||
else # ! BR2_KERNEL_HEADERS_AS_KERNEL
|
||||
|
||||
LINUX_HEADERS_VERSION = $(call qstrip,$(BR2_DEFAULT_KERNEL_HEADERS))
|
||||
ifeq ($(findstring x2.6.,x$(LINUX_HEADERS_VERSION)),x2.6.)
|
||||
LINUX_HEADERS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v2.6
|
||||
else ifeq ($(findstring x3.,x$(LINUX_HEADERS_VERSION)),x3.)
|
||||
LINUX_HEADERS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v3.x
|
||||
else ifeq ($(findstring x4.,x$(LINUX_HEADERS_VERSION)),x4.)
|
||||
LINUX_HEADERS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v4.x
|
||||
endif
|
||||
LINUX_HEADERS_SOURCE = linux-$(LINUX_HEADERS_VERSION).tar.xz
|
||||
|
||||
ifeq ($(BR2_KERNEL_HEADERS_VERSION),y)
|
||||
# Skip hash checking for custom kernel headers.
|
||||
ifeq ($(BR2_KERNEL_HEADERS_VERSION)$(BR2_KERNEL_HEADERS_CUSTOM_TARBALL)$(BR2_KERNEL_HEADERS_CUSTOM_GIT),y)
|
||||
BR_NO_CHECK_HASH_FOR += $(LINUX_HEADERS_SOURCE)
|
||||
endif
|
||||
|
||||
endif # ! BR2_KERNEL_HEADERS_AS_KERNEL
|
||||
# linux-headers really is the same as the linux package
|
||||
LINUX_HEADERS_DL_SUBDIR = linux
|
||||
|
||||
LINUX_HEADERS_LICENSE = GPL-2.0
|
||||
LINUX_HEADERS_LICENSE_FILES = COPYING
|
||||
@@ -122,7 +137,7 @@ define LINUX_HEADERS_INSTALL_STAGING_CMDS
|
||||
headers_install)
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_KERNEL_HEADERS_VERSION)$(BR2_KERNEL_HEADERS_AS_KERNEL),y)
|
||||
ifeq ($(BR2_KERNEL_HEADERS_VERSION)$(BR2_KERNEL_HEADERS_AS_KERNEL)$(BR2_KERNEL_HEADERS_CUSTOM_TARBALL)$(BR2_KERNEL_HEADERS_CUSTOM_GIT),y)
|
||||
define LINUX_HEADERS_CHECK_VERSION
|
||||
$(call check_kernel_headers_version,\
|
||||
$(STAGING_DIR),\
|
||||
|
||||
Reference in New Issue
Block a user