Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9137797ybi; Tue, 23 Jul 2019 22:35:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxce7AHh00qw4niX9K8hYrC8/OGZXyJCLnGvY9IO8c6oNCWFNHyDwvz4C7tvoTPaGKr2g5p X-Received: by 2002:a62:e716:: with SMTP id s22mr9431744pfh.250.1563946540711; Tue, 23 Jul 2019 22:35:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563946540; cv=none; d=google.com; s=arc-20160816; b=vZc2vmrgfC+z0k5c4IOCpj9DRoGOFtl0uzITmAtu7gEW/2q2EFyK3p8HyyekOZknwR rDIvCLPVwarxPPm+sPuiNN66vOrmVWWJs3iCuS+hzdRZAgkACrWJsovoZkmQOstHjuRS e6V+zaxmSe1Bo+K0lIfhXFcG5tkWcfwTtr9kGmcSRa5MBGLWGRyV0oSz5GutM+OBmX3f /l9O/hst9UYXg6e1RurWD/DGWt8W/zayUUoZ1ffuOaDci3by/sa+jzdPpeFGWIQ6Ui/s lgoQD5z0sjZBbEPCWdsQg8y4i1zg0j3lTzqG3gCWASdVlxFHxHdI/Ug6qsm3sTnj6FQ+ zGOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=71Rx6cCCs7qwdXOcWJ2dX8HzbvMLtmT5IE+C0SKNRpM=; b=h9Un5pfgn7+dISC42SkAZXJ0tjJ1tY3q30EUMdzCeWZ6ndjbG6vOSVF6vIhOP8s7se e3HpeJw/BEoMpj9iCR/dMMeBM9Tepjei2ymt2XO3xrWzg5bnrF9wYoXw9GlrVKjNjaO7 cS2cBbBg0XL5N1uVDjYKTCgUvwpzJHxXUmriQFte26INemk6AktJ9xIPfME9++FQRtrq bCqFawj1B90Tg7ujUtvvHbJFo0RY7IHWMi9WJBzFPZsfLJI6j+AQQo9ra8tjZ8cvWUIi H68Ldv6yrDvKGZME2Jwm9i/J1Ea+KLvVeioznl2qClkEKRRoE8omD+boICUznHlN4rwe 6tMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=I55v5zkK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s64si15120122pgs.464.2019.07.23.22.35.25; Tue, 23 Jul 2019 22:35:40 -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=@alliedtelesis.co.nz header.s=mail181024 header.b=I55v5zkK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726184AbfGXFdO (ORCPT + 99 others); Wed, 24 Jul 2019 01:33:14 -0400 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:58878 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725970AbfGXFdO (ORCPT ); Wed, 24 Jul 2019 01:33:14 -0400 Received: from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id E69EB886BF; Wed, 24 Jul 2019 17:33:09 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1563946389; bh=71Rx6cCCs7qwdXOcWJ2dX8HzbvMLtmT5IE+C0SKNRpM=; h=From:To:Cc:Subject:Date; b=I55v5zkKt8WmSCKGYp7dbfii+9DNNJ86YwZb+AaKe4W2vfEvmJCaIG04aYXMCQ6Bg bXOADORYfzY+5EmwrIpVVyDLo847rlXNwYp0BxoNkwYI6g1aA+CjNmc3CJd7cVlDPg XyDth2LADhGxgVH+/HVmBf9J6rC6d+bqg1s/47C9dQ422N5Qx8H7lQKhg7US/ax3Fv JCyTrGoYLEUeMb3/LxXEHE/R1cxFQIm3V5lvj0vG2KPgJvUbug94i/T2iKQLTPzm5F aYeebnyHLK5PbzTzdb/Ok5GRYIfJHwjb8UN6fGBcu4xHDN/kSss0fi44qW+Z6x6AOk N/xUQd27v0WLA== Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7,5,8,10121) id ; Wed, 24 Jul 2019 17:33:09 +1200 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by smtp (Postfix) with ESMTP id 76A6713EECE; Wed, 24 Jul 2019 17:33:07 +1200 (NZST) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 605181E04FD; Wed, 24 Jul 2019 17:33:05 +1200 (NZST) From: Chris Packham To: benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Chris Packham Subject: [PATCH] powerpc: Support CMDLINE_EXTEND Date: Wed, 24 Jul 2019 17:33:03 +1200 Message-Id: <20190724053303.24317-1-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable x-atlnz-ls: pat Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Device tree aware platforms can make use of CMDLINE_EXTEND to extend the kernel command line provided by the bootloader. This is particularly useful to set parameters for built-in modules that would otherwise be done at module insertion. Add support for this in the powerpc architecture. Signed-off-by: Chris Packham --- arch/powerpc/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index d8dcd8820369..cd9b3974aa36 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -851,6 +851,11 @@ config CMDLINE some command-line options at build time by entering them here. In most cases you will need to specify the root device here. =20 +choice + prompt "Kernel command line type" if CMDLINE !=3D "" + default CMDLINE_FORCE + depends on CMDLINE_BOOL + config CMDLINE_FORCE bool "Always use the default kernel command string" depends on CMDLINE_BOOL @@ -860,6 +865,13 @@ config CMDLINE_FORCE This is useful if you cannot or don't want to change the command-line options your boot loader passes to the kernel. =20 +config CMDLINE_EXTEND + bool "Extend bootloader kernel arguments" + help + The command-line arguments provided by the boot loader will be + appended to the default kernel command string. +endchoice + config EXTRA_TARGETS string "Additional default image types" help --=20 2.22.0