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:
@@ -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