Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753890AbaJ1NcU (ORCPT ); Tue, 28 Oct 2014 09:32:20 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:37495 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753687AbaJ1NcQ (ORCPT ); Tue, 28 Oct 2014 09:32:16 -0400 From: Xia Kaixu To: rmk+kernel@arm.linux.org.uk, arm@kernel.org Cc: kaixu.xia@linaro.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/5] ARM: introduce a CONFIG_ARCH_MULTIPLATFORM_STRICT Kconfig option Date: Tue, 28 Oct 2014 21:31:31 +0800 Message-Id: <1414503095-25986-2-git-send-email-kaixu.xia@linaro.org> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1414503095-25986-1-git-send-email-kaixu.xia@linaro.org> References: <1414503095-25986-1-git-send-email-kaixu.xia@linaro.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The current allmodconfig kernel boot fails on OMAP4460. There are several configuration options that can only work on a subset of the available machines, and enabling them will break other machines that may be enabled in a multiplatform kernel. Now we introduce a CONFIG_ARCH_MULTIPLATFORM_STRICT Kconfig option that prevent those other options from getting enabled and get a strict multiplatform kernel. Signed-off-by: Xia Kaixu --- arch/arm/Kconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 89c4b5c..50762cc 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -840,6 +840,20 @@ config ARCH_MULTI_CPU_AUTO endmenu +config ARCH_MULTIPLATFORM_STRICT + bool "Only allow options that do not break other platforms" + depends on ARCH_MULTIPLATFORM + default y + help + There are several configuration options that can only work + on a subset of the available machines, and enabling them + will break running the kernel on other machines that may be + enabled in a multiplatform kernel. + + Enabling ARCH_MULTIPLATFORM_STRICT will prevent those other + options from getting enabled, so the kernel should always + run on any hardware that is part of the configuration. + config ARCH_VIRT bool "Dummy Virtual Machine" if ARCH_MULTI_V7 select ARM_AMBA -- 2.1.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/