From 100c09a53b8806b2281a93ad21744d26f68bcc6b Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Tue, 8 Jun 2010 13:56:19 +0200 Subject: [PATCH] linux: adjust kernel config according to the Buildroot configuration We only adjust the configuration or ARM EABI and IPv6. The (more complicated) initramfs case is handled in a separate commit. The user is expected to take care of all other configuration details (like having Netfilter enabled to make iptables work, etc.) Signed-off-by: Thomas Petazzoni --- linux/linux.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/linux/linux.mk b/linux/linux.mk index 8b83e30661..71d9616034 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -84,6 +84,16 @@ ifeq ($(BR2_LINUX_KERNEL_USE_DEFCONFIG),y) $(TARGET_MAKE_ENV) $(MAKE1) $(LINUX26_MAKE_FLAGS) -C $(@D) $(call qstrip,$(BR2_LINUX_KERNEL_DEFCONFIG))_defconfig else ifeq ($(BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG),y) cp $(BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE) $(@D)/.config +endif +ifeq ($(BR2_ARM_EABI),y) + $(call KCONFIG_ENABLE_OPT,CONFIG_AEABI,$(@D)/.config) +else + $(call KCONFIG_DISABLE_OPT,CONFIG_AEABI,$(@D)/.config) +endif +ifeq ($(BR2_INET_IPV6),y) + $(call KCONFIG_ENABLE_OPT,CONFIG_IPV6,$(@D)/.config) +else + $(call KCONFIG_DISABLE_OPT,CONFIG_IPV6,$(@D)/.config) endif $(TARGET_MAKE_ENV) $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(@D) oldconfig $(Q)touch $@ -- 2.30.2