Buildroot 2018-11 (#258)
* Update to buildroot 2018.11 * containerd update * runc update * runc docker engine * runc docker proxy * update rpi firmware * update network manager * update dhcpd * update wait on network * update rpi wifi * revert glibc
This commit is contained in:
@@ -30,10 +30,10 @@ choice
|
||||
prompt "Kernel version"
|
||||
|
||||
config BR2_LINUX_KERNEL_LATEST_VERSION
|
||||
bool "Latest version (4.16)"
|
||||
bool "Latest version (4.18)"
|
||||
|
||||
config BR2_LINUX_KERNEL_LATEST_CIP_VERSION
|
||||
bool "Latest CIP SLTS version (v4.4.130-cip23)"
|
||||
bool "Latest CIP SLTS version (v4.4.138-cip25)"
|
||||
help
|
||||
CIP launched in the spring of 2016 to address the needs of
|
||||
organizations in industries such as power generation and
|
||||
@@ -120,8 +120,8 @@ endif
|
||||
|
||||
config BR2_LINUX_KERNEL_VERSION
|
||||
string
|
||||
default "4.16.13" if BR2_LINUX_KERNEL_LATEST_VERSION
|
||||
default "v4.4.130-cip23" if BR2_LINUX_KERNEL_LATEST_CIP_VERSION
|
||||
default "4.18.18" if BR2_LINUX_KERNEL_LATEST_VERSION
|
||||
default "v4.4.138-cip25" if BR2_LINUX_KERNEL_LATEST_CIP_VERSION
|
||||
default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE \
|
||||
if BR2_LINUX_KERNEL_CUSTOM_VERSION
|
||||
default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL
|
||||
@@ -188,6 +188,14 @@ config BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES
|
||||
A space-separated list of kernel configuration fragment files,
|
||||
that will be merged to the main kernel configuration file.
|
||||
|
||||
config BR2_LINUX_KERNEL_CUSTOM_LOGO_PATH
|
||||
string "Custom boot logo file path"
|
||||
help
|
||||
Use a custom Linux framebuffer boot logo.
|
||||
Custom logo should be in PNG or JPEG format, it will be
|
||||
converted to the linux kernel format (224 colors only)
|
||||
and copied over the original logo file.
|
||||
|
||||
#
|
||||
# Binary format
|
||||
#
|
||||
|
||||
9
buildroot/linux/linux.hash
Normal file
9
buildroot/linux/linux.hash
Normal file
@@ -0,0 +1,9 @@
|
||||
# From https://www.kernel.org/pub/linux/kernel/v4.x/sha256sums.asc
|
||||
sha256 34b361f815ad501268b6289dbb9b835dca1b1b470ad51cb8bc0f7c105588033d linux-4.18.18.tar.xz
|
||||
sha256 41026d713ba4f7a5e9d514b876ce4ed28a1d993c0c58b42b2a2597d6a0e83021 linux-4.16.18.tar.xz
|
||||
sha256 9ddc7bc11cbea6475ac5abf18e01a143d7d506bece591e0dcb15c9452d3ed7d2 linux-4.14.80.tar.xz
|
||||
sha256 d39531e2df13cec1f998a5273d86f10db977409a778c0c7e56ef3d50c7262ec8 linux-4.9.136.tar.xz
|
||||
sha256 61b3d63a960a55046a7324d5724c262831952b223fe9ca02be0607f26d8f2ef4 linux-4.4.163.tar.xz
|
||||
sha256 6ad9389e55e0ea57768eae173747058a4487fa3630e10a7999cfec9f945e559c linux-4.1.52.tar.xz
|
||||
# From https://www.kernel.org/pub/linux/kernel/v3.x/sha256sums.asc
|
||||
sha256 ad96d797571496c969aa71bf5d08e9d2a8c84458090d29a120f1b2981185a99e linux-3.2.102.tar.xz
|
||||
@@ -62,7 +62,19 @@ LINUX_PATCHES = $(call qstrip,$(BR2_LINUX_KERNEL_PATCH))
|
||||
LINUX_PATCH = $(filter ftp://% http://% https://%,$(LINUX_PATCHES))
|
||||
|
||||
LINUX_INSTALL_IMAGES = YES
|
||||
LINUX_DEPENDENCIES += host-bison host-flex host-kmod
|
||||
LINUX_DEPENDENCIES = host-kmod
|
||||
|
||||
# Starting with 4.16, the generated kconfig paser code is no longer
|
||||
# shipped with the kernel sources, so we need flex and bison, but
|
||||
# only if the host does not have them.
|
||||
LINUX_KCONFIG_DEPENDENCIES = \
|
||||
$(BR2_BISON_HOST_DEPENDENCY) \
|
||||
$(BR2_FLEX_HOST_DEPENDENCY)
|
||||
|
||||
# Starting with 4.18, the kconfig in the kernel calls the
|
||||
# cross-compiler to check its capabilities. So we need the
|
||||
# toolchain before we can call the configurators.
|
||||
LINUX_KCONFIG_DEPENDENCIES += toolchain
|
||||
|
||||
# host tools needed for kernel compression
|
||||
ifeq ($(BR2_LINUX_KERNEL_LZ4),y)
|
||||
@@ -121,6 +133,16 @@ LINUX_MAKE_ENV += \
|
||||
KBUILD_BUILD_TIMESTAMP="$(shell LC_ALL=C date -d @$(SOURCE_DATE_EPOCH))"
|
||||
endif
|
||||
|
||||
# gcc-8 started warning about function aliases that have a
|
||||
# non-matching prototype. This seems rather useful in general, but it
|
||||
# causes tons of warnings in the Linux kernel, where we rely on
|
||||
# abusing those aliases for system call entry points, in order to
|
||||
# sanitize the arguments passed from user space in registers.
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82435
|
||||
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_8),y)
|
||||
LINUX_MAKE_ENV += KCFLAGS=-Wno-attribute-alias
|
||||
endif
|
||||
|
||||
# Get the real Linux version, which tells us where kernel modules are
|
||||
# going to be installed in the target filesystem.
|
||||
LINUX_VERSION_PROBED = `$(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) --no-print-directory -s kernelrelease 2>/dev/null`
|
||||
@@ -226,6 +248,17 @@ define LINUX_TRY_PATCH_TIMECONST
|
||||
endef
|
||||
LINUX_POST_PATCH_HOOKS += LINUX_TRY_PATCH_TIMECONST
|
||||
|
||||
LINUX_KERNEL_CUSTOM_LOGO_PATH = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_LOGO_PATH))
|
||||
ifneq ($(LINUX_KERNEL_CUSTOM_LOGO_PATH),)
|
||||
LINUX_DEPENDENCIES += host-imagemagick
|
||||
define LINUX_KERNEL_CUSTOM_LOGO_CONVERT
|
||||
$(HOST_DIR)/bin/convert $(LINUX_KERNEL_CUSTOM_LOGO_PATH) \
|
||||
-dither None -colors 224 -compress none \
|
||||
$(LINUX_DIR)/drivers/video/logo/logo_linux_clut224.ppm
|
||||
endef
|
||||
LINUX_PRE_BUILD_HOOKS += LINUX_KERNEL_CUSTOM_LOGO_CONVERT
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_LINUX_KERNEL_USE_DEFCONFIG),y)
|
||||
LINUX_KCONFIG_DEFCONFIG = $(call qstrip,$(BR2_LINUX_KERNEL_DEFCONFIG))_defconfig
|
||||
else ifeq ($(BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG),y)
|
||||
@@ -287,6 +320,9 @@ define LINUX_KCONFIG_FIXUP_CMDS
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS_MOUNT,$(@D)/.config))
|
||||
$(if $(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV),
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_INOTIFY_USER,$(@D)/.config))
|
||||
$(if $(BR2_PACKAGE_AUDIT),
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_NET,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_AUDIT,$(@D)/.config))
|
||||
$(if $(BR2_PACKAGE_KTAP),
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_DEBUG_FS,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_ENABLE_DEFAULT_TRACERS,$(@D)/.config)
|
||||
@@ -327,9 +363,18 @@ define LINUX_KCONFIG_FIXUP_CMDS
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_ARM_APPENDED_DTB,$(@D)/.config))
|
||||
$(if $(BR2_PACKAGE_KERNEL_MODULE_IMX_GPU_VIV),
|
||||
$(call KCONFIG_DISABLE_OPT,CONFIG_MXC_GPU_VIV,$(@D)/.config))
|
||||
$(if $(LINUX_KERNEL_CUSTOM_LOGO_PATH),
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_FB,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_LOGO,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_LOGO_LINUX_CLUT224,$(@D)/.config))
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_LINUX_KERNEL_DTS_SUPPORT),y)
|
||||
# Starting with 4.17, the generated dtc parser code is no longer
|
||||
# shipped with the kernel sources, so we need flex and bison. For
|
||||
# reproducibility, we use our owns rather than the host ones.
|
||||
LINUX_DEPENDENCIES += host-bison host-flex
|
||||
|
||||
ifeq ($(BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT),)
|
||||
define LINUX_BUILD_DTB
|
||||
$(LINUX_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) $(LINUX_DTBS)
|
||||
@@ -379,9 +424,9 @@ endif
|
||||
# Compilation. We make sure the kernel gets rebuilt when the
|
||||
# configuration has changed.
|
||||
define LINUX_BUILD_CMDS
|
||||
@for dts in $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_DTS_PATH)); do \
|
||||
cp -f $${dts} $(LINUX_ARCH_PATH)/boot/dts/ ; \
|
||||
done
|
||||
$(foreach dts,$(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_DTS_PATH)), \
|
||||
cp -f $(dts) $(LINUX_ARCH_PATH)/boot/dts/
|
||||
)
|
||||
$(LINUX_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) $(LINUX_TARGET_NAME)
|
||||
@if grep -q "CONFIG_MODULES=y" $(@D)/.config; then \
|
||||
$(LINUX_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) modules ; \
|
||||
|
||||
Reference in New Issue
Block a user