powerpc: Support CMDLINE_EXTEND
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Thu, 1 Aug 2019 22:50:06 +0000 (10:50 +1200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 7 Nov 2019 10:15:27 +0000 (21:15 +1100)
commitd79fbb3a32f05a7e1cc0294b86dacdb9cc3ad7f5
treec8b097b8c72948ae563bb04a7771b17f70ceed3f
parent6266a4dadb1d0976490fdf5af4f7941e36f64e80
powerpc: Support CMDLINE_EXTEND

Bring powerpc in line with other architectures that support extending or
overriding the bootloader provided command line.

The current behaviour is most like CMDLINE_FROM_BOOTLOADER where the
bootloader command line is preferred but the kernel config can provide a
fallback so CMDLINE_FROM_BOOTLOADER is the default. CMDLINE_EXTEND can
be used to append the CMDLINE from the kernel config to the one provided
by the bootloader.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190801225006.21952-1-chris.packham@alliedtelesis.co.nz
arch/powerpc/Kconfig
arch/powerpc/kernel/prom_init.c