mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@26c91a9
This commit is contained in:
+89
-87
@@ -6,7 +6,12 @@
|
||||
|
||||
LINUX_VERSION = $(call qstrip,$(BR2_LINUX_KERNEL_VERSION))
|
||||
LINUX_LICENSE = GPL-2.0
|
||||
LINUX_LICENSE_FILES = COPYING
|
||||
ifeq ($(BR2_LINUX_KERNEL_LATEST_VERSION),y)
|
||||
LINUX_LICENSE_FILES = \
|
||||
COPYING \
|
||||
LICENSES/preferred/GPL-2.0 \
|
||||
LICENSES/exceptions/Linux-syscall-note
|
||||
endif
|
||||
|
||||
define LINUX_HELP_CMDS
|
||||
@echo ' linux-menuconfig - Run Linux kernel menuconfig'
|
||||
@@ -29,8 +34,9 @@ LINUX_SITE_METHOD = hg
|
||||
else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_SVN),y)
|
||||
LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
|
||||
LINUX_SITE_METHOD = svn
|
||||
else ifeq ($(BR2_LINUX_KERNEL_LATEST_CIP_VERSION),y)
|
||||
LINUX_SITE = git://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip.git
|
||||
else ifeq ($(BR2_LINUX_KERNEL_LATEST_CIP_VERSION)$(BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION),y)
|
||||
LINUX_SOURCE = linux-cip-$(LINUX_VERSION).tar.gz
|
||||
LINUX_SITE = https://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip.git/snapshot
|
||||
else ifneq ($(findstring -rc,$(LINUX_VERSION)),)
|
||||
# Since 4.12-rc1, -rc kernels are generated from cgit. This also works for
|
||||
# older -rc kernels.
|
||||
@@ -59,8 +65,12 @@ BR_NO_CHECK_HASH_FOR += $(notdir $(LINUX_PATCHES))
|
||||
# be directories in the patch list (unlike for other packages).
|
||||
LINUX_PATCH = $(filter ftp://% http://% https://%,$(LINUX_PATCHES))
|
||||
|
||||
# while the kernel is built for the target, the build may need various
|
||||
# host libraries depending on config (and version), so use
|
||||
# HOST_MAKE_ENV here. In particular, this ensures that our
|
||||
# host-pkgconf will look for host libraries and not target ones.
|
||||
LINUX_MAKE_ENV = \
|
||||
$(TARGET_MAKE_ENV) \
|
||||
$(HOST_MAKE_ENV) \
|
||||
BR_BINARIES_DIR=$(BINARIES_DIR)
|
||||
|
||||
LINUX_INSTALL_IMAGES = YES
|
||||
@@ -88,12 +98,15 @@ else ifeq ($(BR2_LINUX_KERNEL_LZO),y)
|
||||
LINUX_DEPENDENCIES += host-lzop
|
||||
else ifeq ($(BR2_LINUX_KERNEL_XZ),y)
|
||||
LINUX_DEPENDENCIES += host-xz
|
||||
else ifeq ($(BR2_LINUX_KERNEL_ZSTD),y)
|
||||
LINUX_DEPENDENCIES += host-zstd
|
||||
endif
|
||||
LINUX_COMPRESSION_OPT_$(BR2_LINUX_KERNEL_GZIP) += CONFIG_KERNEL_GZIP
|
||||
LINUX_COMPRESSION_OPT_$(BR2_LINUX_KERNEL_LZ4) += CONFIG_KERNEL_LZ4
|
||||
LINUX_COMPRESSION_OPT_$(BR2_LINUX_KERNEL_LZMA) += CONFIG_KERNEL_LZMA
|
||||
LINUX_COMPRESSION_OPT_$(BR2_LINUX_KERNEL_LZO) += CONFIG_KERNEL_LZO
|
||||
LINUX_COMPRESSION_OPT_$(BR2_LINUX_KERNEL_XZ) += CONFIG_KERNEL_XZ
|
||||
LINUX_COMPRESSION_OPT_$(BR2_LINUX_KERNEL_ZSTD) += CONFIG_KERNEL_ZSTD
|
||||
|
||||
ifeq ($(BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL),y)
|
||||
LINUX_DEPENDENCIES += host-openssl
|
||||
@@ -101,12 +114,6 @@ endif
|
||||
|
||||
ifeq ($(BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF),y)
|
||||
LINUX_DEPENDENCIES += host-elfutils host-pkgconf
|
||||
LINUX_MAKE_ENV += \
|
||||
PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
|
||||
PKG_CONFIG_SYSROOT_DIR="/" \
|
||||
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
|
||||
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \
|
||||
PKG_CONFIG_LIBDIR="$(HOST_DIR)/lib/pkgconfig:$(HOST_DIR)/share/pkgconfig"
|
||||
endif
|
||||
|
||||
# If host-uboot-tools is selected by the user, assume it is needed to
|
||||
@@ -123,6 +130,8 @@ LINUX_POST_EXTRACT_HOOKS += LINUX_XTENSA_OVERLAY_EXTRACT
|
||||
LINUX_EXTRA_DOWNLOADS += $(ARCH_XTENSA_OVERLAY_URL)
|
||||
endif
|
||||
|
||||
# We don't want to run depmod after installing the kernel. It's done in a
|
||||
# target-finalize hook, to encompass modules installed by packages.
|
||||
LINUX_MAKE_FLAGS = \
|
||||
HOSTCC="$(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS)" \
|
||||
ARCH=$(KERNEL_ARCH) \
|
||||
@@ -154,7 +163,8 @@ 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`
|
||||
# Filter out 'w' from MAKEFLAGS, to workaround a bug in make 4.1 (#13141)
|
||||
LINUX_VERSION_PROBED = `MAKEFLAGS='$(filter-out w,$(MAKEFLAGS))' $(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) --no-print-directory -s kernelrelease 2>/dev/null`
|
||||
|
||||
LINUX_DTS_NAME += $(call qstrip,$(BR2_LINUX_KERNEL_INTREE_DTS_NAME))
|
||||
|
||||
@@ -298,28 +308,40 @@ LINUX_NEEDS_MODULES ?= $(BR2_LINUX_NEEDS_MODULES)
|
||||
# option will be thrown away and ignored if it doesn't exist.
|
||||
ifeq ($(BR2_ENDIAN),"BIG")
|
||||
define LINUX_FIXUP_CONFIG_ENDIANNESS
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_CPU_BIG_ENDIAN,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_CPU_BIG_ENDIAN)
|
||||
endef
|
||||
else
|
||||
define LINUX_FIXUP_CONFIG_ENDIANNESS
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_CPU_LITTLE_ENDIAN,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_CPU_LITTLE_ENDIAN)
|
||||
endef
|
||||
endif
|
||||
|
||||
define LINUX_KCONFIG_FIXUP_CMDS
|
||||
$(if $(LINUX_NEEDS_MODULES),
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_MODULES,$(@D)/.config))
|
||||
$(call KCONFIG_ENABLE_OPT,$(strip $(LINUX_COMPRESSION_OPT_y)),$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_MODULES))
|
||||
$(call KCONFIG_ENABLE_OPT,$(strip $(LINUX_COMPRESSION_OPT_y)))
|
||||
$(foreach opt, $(LINUX_COMPRESSION_OPT_),
|
||||
$(call KCONFIG_DISABLE_OPT,$(opt),$(@D)/.config)
|
||||
$(call KCONFIG_DISABLE_OPT,$(opt))
|
||||
)
|
||||
$(LINUX_FIXUP_CONFIG_ENDIANNESS)
|
||||
$(if $(BR2_arm)$(BR2_armeb),
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_AEABI,$(@D)/.config))
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_AEABI))
|
||||
$(if $(BR2_powerpc)$(BR2_powerpc64)$(BR2_powerpc64le),
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_PPC_DISABLE_WERROR,$(@D)/.config))
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_PPC_DISABLE_WERROR))
|
||||
$(if $(BR2_ARC_PAGE_SIZE_4K),
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_ARC_PAGE_SIZE_4K)
|
||||
$(call KCONFIG_DISABLE_OPT,CONFIG_ARC_PAGE_SIZE_8K)
|
||||
$(call KCONFIG_DISABLE_OPT,CONFIG_ARC_PAGE_SIZE_16K))
|
||||
$(if $(BR2_ARC_PAGE_SIZE_8K),
|
||||
$(call KCONFIG_DISABLE_OPT,CONFIG_ARC_PAGE_SIZE_4K)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_ARC_PAGE_SIZE_8K)
|
||||
$(call KCONFIG_DISABLE_OPT,CONFIG_ARC_PAGE_SIZE_16K))
|
||||
$(if $(BR2_ARC_PAGE_SIZE_16K),
|
||||
$(call KCONFIG_DISABLE_OPT,CONFIG_ARC_PAGE_SIZE_4K)
|
||||
$(call KCONFIG_DISABLE_OPT,CONFIG_ARC_PAGE_SIZE_8K)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_ARC_PAGE_SIZE_16K))
|
||||
$(if $(BR2_TARGET_ROOTFS_CPIO),
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_BLK_DEV_INITRD,$(@D)/.config))
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_BLK_DEV_INITRD))
|
||||
# As the kernel gets compiled before root filesystems are
|
||||
# built, we create a fake cpio file. It'll be
|
||||
# replaced later by the real cpio archive, and the kernel will be
|
||||
@@ -327,68 +349,24 @@ define LINUX_KCONFIG_FIXUP_CMDS
|
||||
$(if $(BR2_TARGET_ROOTFS_INITRAMFS),
|
||||
mkdir -p $(BINARIES_DIR)
|
||||
touch $(BINARIES_DIR)/rootfs.cpio
|
||||
$(call KCONFIG_SET_OPT,CONFIG_INITRAMFS_SOURCE,"$${BR_BINARIES_DIR}/rootfs.cpio",$(@D)/.config)
|
||||
$(call KCONFIG_SET_OPT,CONFIG_INITRAMFS_ROOT_UID,0,$(@D)/.config)
|
||||
$(call KCONFIG_SET_OPT,CONFIG_INITRAMFS_ROOT_GID,0,$(@D)/.config))
|
||||
$(call KCONFIG_SET_OPT,CONFIG_INITRAMFS_SOURCE,"$${BR_BINARIES_DIR}/rootfs.cpio")
|
||||
$(call KCONFIG_SET_OPT,CONFIG_INITRAMFS_ROOT_UID,0)
|
||||
$(call KCONFIG_SET_OPT,CONFIG_INITRAMFS_ROOT_GID,0))
|
||||
$(if $(BR2_ROOTFS_DEVICE_CREATION_STATIC),,
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS_MOUNT,$(@D)/.config))
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS_MOUNT))
|
||||
$(if $(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV),
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_INOTIFY_USER,$(@D)/.config))
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_INOTIFY_USER))
|
||||
$(if $(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV),
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_NET,$(@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_INTEL_MICROCODE),
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_MICROCODE,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_MICROCODE_INTEL,$(@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)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_PERF_EVENTS,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_FUNCTION_TRACER,$(@D)/.config))
|
||||
$(if $(BR2_PACKAGE_LINUX_TOOLS_PERF),
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_PERF_EVENTS,$(@D)/.config))
|
||||
$(if $(BR2_PACKAGE_PCM_TOOLS),
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_X86_MSR,$(@D)/.config))
|
||||
$(if $(BR2_PACKAGE_SYSTEMD),
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_CGROUPS,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_INOTIFY_USER,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_FHANDLE,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_AUTOFS4_FS,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_TMPFS_POSIX_ACL,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_TMPFS_XATTR,$(@D)/.config))
|
||||
$(if $(BR2_PACKAGE_SMACK),
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_SECURITY,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_SECURITY_SMACK,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_SECURITY_NETWORK,$(@D)/.config))
|
||||
$(if $(BR2_PACKAGE_SUNXI_MALI_MAINLINE_DRIVER),
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_CMA,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_DMA_CMA,$(@D)/.config))
|
||||
$(if $(BR2_PACKAGE_IPTABLES),
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_IP_NF_IPTABLES,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_IP_NF_FILTER,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER_XTABLES,$(@D)/.config))
|
||||
$(if $(BR2_PACKAGE_XTABLES_ADDONS),
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER_ADVANCED,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK_MARK,$(@D)/.config))
|
||||
$(if $(BR2_PACKAGE_WIREGUARD),
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_INET,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_NET,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_NET_FOU,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO,$(@D)/.config)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_CRYPTO_MANAGER,$(@D)/.config))
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_NET))
|
||||
$(if $(BR2_LINUX_KERNEL_APPENDED_DTB),
|
||||
$(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))
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_ARM_APPENDED_DTB))
|
||||
$(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))
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_FB)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_LOGO)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_LOGO_LINUX_CLUT224))
|
||||
$(call KCONFIG_DISABLE_OPT,CONFIG_GCC_PLUGINS)
|
||||
$(PACKAGES_LINUX_CONFIG_FIXUPS)
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_LINUX_KERNEL_DTS_SUPPORT),y)
|
||||
@@ -404,10 +382,11 @@ endef
|
||||
ifeq ($(BR2_LINUX_KERNEL_APPENDED_DTB),)
|
||||
define LINUX_INSTALL_DTB
|
||||
# dtbs moved from arch/<ARCH>/boot to arch/<ARCH>/boot/dts since 3.8-rc1
|
||||
cp $(addprefix \
|
||||
$(LINUX_ARCH_PATH)/boot/$(if $(wildcard \
|
||||
$(addprefix $(LINUX_ARCH_PATH)/boot/dts/,$(LINUX_DTBS))),dts/),$(LINUX_DTBS)) \
|
||||
$(1)
|
||||
$(foreach dtb,$(LINUX_DTBS), \
|
||||
install -D \
|
||||
$(or $(wildcard $(LINUX_ARCH_PATH)/boot/dts/$(dtb)),$(LINUX_ARCH_PATH)/boot/$(dtb)) \
|
||||
$(1)/$(if $(BR2_LINUX_KERNEL_DTB_KEEP_DIRNAME),$(dtb),$(notdir $(dtb)))
|
||||
)
|
||||
endef
|
||||
endif # BR2_LINUX_KERNEL_APPENDED_DTB
|
||||
endif # BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT
|
||||
@@ -448,7 +427,10 @@ endif
|
||||
# '$(LINUX_TARGET_NAME)' targets separately because calling them in
|
||||
# the same $(MAKE) invocation has shown to cause parallel build
|
||||
# issues.
|
||||
# The call to disable gcc-plugins is a stop-gap measure:
|
||||
# http://lists.busybox.net/pipermail/buildroot/2020-May/282727.html
|
||||
define LINUX_BUILD_CMDS
|
||||
$(call KCONFIG_DISABLE_OPT,CONFIG_GCC_PLUGINS)
|
||||
$(foreach dts,$(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_DTS_PATH)), \
|
||||
cp -f $(dts) $(LINUX_ARCH_PATH)/boot/dts/
|
||||
)
|
||||
@@ -469,7 +451,7 @@ else
|
||||
# Otherwise, just install the unique image generated by the kernel
|
||||
# build process.
|
||||
define LINUX_INSTALL_IMAGE
|
||||
$(INSTALL) -m 0644 -D $(LINUX_IMAGE_PATH) $(1)/$(LINUX_IMAGE_NAME)
|
||||
$(INSTALL) -m 0644 -D $(LINUX_IMAGE_PATH) $(1)/$(notdir $(LINUX_IMAGE_NAME))
|
||||
endef
|
||||
endif
|
||||
|
||||
@@ -509,16 +491,36 @@ define LINUX_INSTALL_TARGET_CMDS
|
||||
$(LINUX_INSTALL_HOST_TOOLS)
|
||||
endef
|
||||
|
||||
# Run depmod in a target-finalize hook, to encompass modules installed by
|
||||
# packages.
|
||||
define LINUX_RUN_DEPMOD
|
||||
if test -d $(TARGET_DIR)/lib/modules/$(LINUX_VERSION_PROBED) \
|
||||
&& grep -q "CONFIG_MODULES=y" $(LINUX_DIR)/.config; then \
|
||||
$(HOST_DIR)/sbin/depmod -a -b $(TARGET_DIR) $(LINUX_VERSION_PROBED); \
|
||||
fi
|
||||
endef
|
||||
LINUX_TARGET_FINALIZE_HOOKS += LINUX_RUN_DEPMOD
|
||||
|
||||
# Include all our extensions.
|
||||
#
|
||||
# Note: our package infrastructure uses the full-path of the last-scanned
|
||||
# Makefile to determine what package we're currently defining, using the
|
||||
# last directory component in the path. As such, including other Makefile,
|
||||
# like below, before we call one of the *-package macro is usally not
|
||||
# working.
|
||||
# However, since the files we include here are in the same directory as
|
||||
# the current Makefile, we are OK. But this is a hard requirement: files
|
||||
# included here *must* be in the same directory!
|
||||
# last directory component in the path. Additionally, the full path of
|
||||
# the package directory is also stored in _PKGDIR (e.g. to find patches)
|
||||
#
|
||||
# As such, including other Makefiles, like below, before we call one of
|
||||
# the *-package macros usually doesn't work.
|
||||
#
|
||||
# However, by including the in-tree extensions after the ones from the
|
||||
# br2-external trees, we're back to the situation where the last Makefile
|
||||
# scanned *is* included from the correct directory.
|
||||
#
|
||||
# NOTE: this is very fragile, and extra care must be taken to ensure that
|
||||
# we always end up with an in-tree included file. That's mostly OK, because
|
||||
# we do have in-tree linux-extensions.
|
||||
#
|
||||
include $(sort $(wildcard $(foreach ext,$(BR2_EXTERNAL_DIRS), \
|
||||
$(ext)/linux/linux-ext-*.mk)))
|
||||
include $(sort $(wildcard linux/linux-ext-*.mk))
|
||||
|
||||
LINUX_PATCH_DEPENDENCIES += $(foreach ext,$(LINUX_EXTENSIONS),\
|
||||
|
||||
Reference in New Issue
Block a user