Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1115265yba; Tue, 2 Apr 2019 02:36:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYBQEJPKqxoybWGyATETc5XTHT6YKR350WVh3jhvCCvPOCQZlKUDlfpU5LBGChhnIAaSex X-Received: by 2002:a62:3047:: with SMTP id w68mr67296087pfw.17.1554197780634; Tue, 02 Apr 2019 02:36:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554197780; cv=none; d=google.com; s=arc-20160816; b=BK4/Ct8qAH/mVaH1DcdklbjuMgxCa/Q9rpuwUJ9Mq/gnRzdRwCmA8RpZ+N00shFnlZ mG1ENZuP+8ZDbjTyJaLXJkqSHImQZhghDZ5Aod4enO/FmTUhSmrEFDzxLtUOPnsHQwXG 7sLN4Ae+fu6QfqiK28Ia2gJPlSOG/lbfmxMatyrTswBsobjY7aPGdZyeoLW5+RhdJTIc awPLQwEwUUsKqA81CbDpegiPT9z9iZ6v+lUb78dl2qyKu6BgsIQOxxpS93/uzStGCgKT ya665GSm3KAvw5IIvL+N07bW+6rrIS9xcDfk3eVoY9K2AZOWQCZqb5pPdT/OzVn8xgcH RdMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:references :in-reply-to:message-id:dkim-signature; bh=kLX2I0bRypEeKm6JXRzLKlSiNH8i9nUP6jbvUb7JV9Y=; b=q3QcYs8X6iTm8s9VjLfPvqlxtQjoAXDzpe+VcOAgs1zlUklclDtvOCqIua3rJ+oRTF rHj+Rgw/lgu4zqODLOcWmQ8q5uK+LLyUtlMgZZfCuSkx4IlLXjYLudLRW/Dfpmr3JOaC sn6vqzHSGgls6orK1dlHpdiaayZSqt2jghervMfA6Q5rCVm2fMP1cwFGVUNk7U5FEWmM Utvo/gAfLRn7swRpog8iPxL+y6r4yCEdLudeAmSfjA+ogsWu/0eMYM93R6QXtEkn5XDC Gc0Ff7vhPM4hptN155Sz++ZnxgX5Y086FPsR+gvszROdu2RfUaHuBMG/dlOXefJQJgG9 sp7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=FhyoffU6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si10745856pfn.57.2019.04.02.02.36.04; Tue, 02 Apr 2019 02:36:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=FhyoffU6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729956AbfDBJIu (ORCPT + 99 others); Tue, 2 Apr 2019 05:08:50 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:4355 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729928AbfDBJIq (ORCPT ); Tue, 2 Apr 2019 05:08:46 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 44YNfz3Fk5z9v0cr; Tue, 2 Apr 2019 11:08:43 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=FhyoffU6; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id X6e_VXkP4j2W; Tue, 2 Apr 2019 11:08:43 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 44YNfz25Ykz9v0ZY; Tue, 2 Apr 2019 11:08:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1554196123; bh=kLX2I0bRypEeKm6JXRzLKlSiNH8i9nUP6jbvUb7JV9Y=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=FhyoffU6gdiKpXlndXQ5vCXpL/vmOJRojL1zIr3uHydJDlTp0YDc+i7je41S1r0pv 5vNZwBBlWoihBHWnuBMLUepTs47F4iJjB0BytPw3k7hlzltKki4Av4H4E82PT9wC1r VlNNGpMiRBKoh4CschiEzB7Q+DyF4Ev6oOz0l0J4= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 6444D8B8C4; Tue, 2 Apr 2019 11:08:44 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id zYunzrzskjnz; Tue, 2 Apr 2019 11:08:44 +0200 (CEST) Received: from po16846vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 30D358B8C3; Tue, 2 Apr 2019 11:08:44 +0200 (CEST) Received: by po16846vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 0FDDB661D9; Tue, 2 Apr 2019 09:08:44 +0000 (UTC) Message-Id: <61573f2503d4018b763102d719e3d27794bccfb9.1554195798.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH 9/9] powerpc: use generic CMDLINE manipulations To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , danielwa@cisco.com Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arch@vger.kernel.org Date: Tue, 2 Apr 2019 09:08:44 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch moves powerpc to the centraly defined CMDLINE options. Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig | 48 +++--------------------------------------------- 1 file changed, 3 insertions(+), 45 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 22d6a48bd2ca..6a71d7c514cc 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -182,6 +182,7 @@ config PPC select HAVE_CBPF_JIT if !PPC64 select HAVE_STACKPROTECTOR if PPC64 && $(cc-option,-mstack-protector-guard=tls -mstack-protector-guard-reg=r13) select HAVE_STACKPROTECTOR if PPC32 && $(cc-option,-mstack-protector-guard=tls -mstack-protector-guard-reg=r2) + select HAVE_CMDLINE select HAVE_CONTEXT_TRACKING if PPC64 select HAVE_DEBUG_KMEMLEAK select HAVE_DEBUG_STACKOVERFLOW @@ -828,52 +829,9 @@ config PPC_DENORMALISATION Add support for handling denormalisation of single precision values. Useful for bare metal only. If unsure say Y here. -config CMDLINE_BOOL - bool "Default bootloader kernel arguments" - -config CMDLINE - string "Initial kernel command string" - depends on CMDLINE_BOOL +config DEFAULT_CMDLINE + string default "console=ttyS0,9600 console=tty0 root=/dev/sda2" - help - On some platforms, there is currently no way for the boot loader to - pass arguments to the kernel. For these platforms, you can supply - some command-line options at build time by entering them here. In - most cases you will need to specify the root device here. - -choice - prompt "Kernel command line type" if CMDLINE != "" - default CMDLINE_FROM_BOOTLOADER - help - Selects the way you want to use the default kernel arguments. - -config CMDLINE_FROM_BOOTLOADER - bool "Use bootloader kernel arguments if available" - help - Uses the command-line options passed by the boot loader. If - the boot loader doesn't provide any, the default kernel command - string provided in CMDLINE will be used. - -config CMDLINE_EXTEND - bool "Extend bootloader kernel arguments" - help - The default kernel command string will be appended to the - command-line arguments provided during boot. - -config CMDLINE_PREPEND - bool "Prepend bootloader kernel arguments" - help - The default kernel command string will be prepend to the - command-line arguments provided during boot. - -config CMDLINE_FORCE - bool "Always use the default kernel command string" - help - Always use the default kernel command string, even if the boot - loader passes other arguments to the kernel. - This is useful if you cannot or don't want to change the - command-line options your boot loader passes to the kernel. -endchoice config EXTRA_TARGETS string "Additional default image types" -- 2.13.3