From patchwork Tue Oct 21 14:11:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xia Kaixu X-Patchwork-Id: 39153 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A35D7202DB for ; Tue, 21 Oct 2014 14:13:23 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id p9sf853078lbv.0 for ; Tue, 21 Oct 2014 07:13:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=PXumORG+u1UuAJK+/mh12JieKGLjlXe6TD1XuezRNFg=; b=FS2meAS2EQLM0J+rkhBK1xf5DeiiwNo4YxOwfUDx/pUh3LqpnwHKtmQCVBh7BhIF8W LDLlFqvk86VqbdbDC+Q3lxcdpHrW5zt2P/abr4vo3pKrc4Xwq448WmeebT5neV0lDtqp Wb9yjHhDKZSTIzoki6JT1GHdtaGOyHyVt3wshCjIqqV0GAOcW1oe+MmY2FMRT7ken892 ps23RZK/vlrPy3VvT0JKDwUU1OeNwAUGBIcslsGBZQLHXDOY7eh3tp16dSAtux7o3D7N g/+6iWj4KoEPb5EotTC9vLp1zLflEs88sOG+JYeG++cjZ4sbec3jyZfIQNjA52icK3fn Hb7g== X-Gm-Message-State: ALoCoQnteYV1B5aXerWSubYhMLPlbfa2d/pImiXpzAreZNzeE5U28kLHa8FSxaBPfRKYmBWJNYSu X-Received: by 10.152.3.168 with SMTP id d8mr5226718lad.0.1413900796498; Tue, 21 Oct 2014 07:13:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.72 with SMTP id q8ls54323laq.98.gmail; Tue, 21 Oct 2014 07:13:16 -0700 (PDT) X-Received: by 10.112.201.138 with SMTP id ka10mr35279237lbc.20.1413900796322; Tue, 21 Oct 2014 07:13:16 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id v2si19082390lav.132.2014.10.21.07.13.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Oct 2014 07:13:16 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by mail-lb0-f176.google.com with SMTP id p9so1083494lbv.21 for ; Tue, 21 Oct 2014 07:13:16 -0700 (PDT) X-Received: by 10.112.97.135 with SMTP id ea7mr35311601lbb.46.1413900796154; Tue, 21 Oct 2014 07:13:16 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp505885lbz; Tue, 21 Oct 2014 07:13:09 -0700 (PDT) X-Received: by 10.66.157.161 with SMTP id wn1mr180808pab.40.1413900788472; Tue, 21 Oct 2014 07:13:08 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xg7si11296905pbc.90.2014.10.21.07.13.07 for ; Tue, 21 Oct 2014 07:13:08 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932873AbaJUOMt (ORCPT + 27 others); Tue, 21 Oct 2014 10:12:49 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:44177 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932442AbaJUOMq (ORCPT ); Tue, 21 Oct 2014 10:12:46 -0400 Received: by mail-pd0-f172.google.com with SMTP id ft15so1445731pdb.3 for ; Tue, 21 Oct 2014 07:12:46 -0700 (PDT) X-Received: by 10.66.244.12 with SMTP id xc12mr2775611pac.156.1413900766129; Tue, 21 Oct 2014 07:12:46 -0700 (PDT) Received: from localhost.localdomain ([218.17.215.175]) by mx.google.com with ESMTPSA id c2sm12065981pdf.52.2014.10.21.07.12.43 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Oct 2014 07:12:45 -0700 (PDT) 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 1/4] ARM: introduce a CONFIG_ARCH_MULTIPLATFORM_STRICT Kconfig option Date: Tue, 21 Oct 2014 22:11:31 +0800 Message-Id: <1413900694-29571-2-git-send-email-kaixu.xia@linaro.org> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1413900694-29571-1-git-send-email-kaixu.xia@linaro.org> References: <1413900694-29571-1-git-send-email-kaixu.xia@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: kaixu.xia@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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