From patchwork Tue Oct 28 13:31: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: 39661 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6571224026 for ; Tue, 28 Oct 2014 13:32:31 +0000 (UTC) Received: by mail-lb0-f199.google.com with SMTP id n15sf458261lbi.2 for ; Tue, 28 Oct 2014 06:32:29 -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=LjjXqpHVD+X5Y6TFq7BHtkYVYipn8PxHd/elWUN491j2kluJ0WdJwbD6Gw9Q+FjrFL enectLrXcDz07YlMPS1pntBAnWniEHytu/i1dWTGsKQ8JWVHUOXmcMfHz8b+ANv3d2MJ N6Xy3V4nrHl7Uz8odhCAr52u5nF8h1cIWKTbaz1hkn2Yfgy6/w92pwi1CjzdBd9joF4b TasJIi4Kj02eZjbz/EZt+FO3QzDBDvj1PVvKWYR6y+pKtxFWfvxvaC436Q30YPGuN094 HnJ0ahfPVhUnNVFWmLGuE8fAZJz/ehXRkV69UlLvecwrK1WQ5m/PDL28qT/Mm/e5+U5V rGAg== X-Gm-Message-State: ALoCoQnFYhvFaGiicP8ZDQMH+QBxfo3YPiOWA2CoI69h54ftYg7XkKQX/uNPVWPyYNCMgT8weLy+ X-Received: by 10.112.254.226 with SMTP id al2mr638066lbd.1.1414503149875; Tue, 28 Oct 2014 06:32:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.133 with SMTP id m5ls56845laf.102.gmail; Tue, 28 Oct 2014 06:32:29 -0700 (PDT) X-Received: by 10.152.20.199 with SMTP id p7mr4073098lae.49.1414503149670; Tue, 28 Oct 2014 06:32:29 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id gd7si2559655lbc.83.2014.10.28.06.32.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Oct 2014 06:32:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id ge10so611978lab.36 for ; Tue, 28 Oct 2014 06:32:29 -0700 (PDT) X-Received: by 10.152.116.102 with SMTP id jv6mr4137845lab.40.1414503149500; Tue, 28 Oct 2014 06:32:29 -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 c5csp480703lbz; Tue, 28 Oct 2014 06:32:28 -0700 (PDT) X-Received: by 10.68.180.130 with SMTP id do2mr3689432pbc.28.1414503146881; Tue, 28 Oct 2014 06:32:26 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id iu5si1255827pbc.243.2014.10.28.06.32.26 for ; Tue, 28 Oct 2014 06:32:26 -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 S1753892AbaJ1NcU (ORCPT + 26 others); 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 Received: by mail-pa0-f46.google.com with SMTP id lf10so748495pab.5 for ; Tue, 28 Oct 2014 06:32:15 -0700 (PDT) X-Received: by 10.70.103.15 with SMTP id fs15mr3433722pdb.129.1414503135809; Tue, 28 Oct 2014 06:32:15 -0700 (PDT) Received: from localhost.localdomain ([218.17.215.175]) by mx.google.com with ESMTPSA id nq2sm1712627pdb.74.2014.10.28.06.32.13 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Oct 2014 06:32:15 -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 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 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.215.49 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