xen/arm: Configure early printk via Kconfig
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 31 Mar 2020 10:30:46 +0000 (11:30 +0100)
committerJulien Grall <jgrall@amazon.com>
Wed, 1 Apr 2020 09:49:33 +0000 (10:49 +0100)
commitf41eb7ba3e5070b4a7a4f54cac236bf9ff93d798
tree366e664dd3d07efd4392325b3c287287f9e4d065
parent370f44fa73004e9e19cff9b1e65ee7ea61b55700
xen/arm: Configure early printk via Kconfig

At the moment, early printk can only be configured on the make command
line. It is not very handy because a user has to remove the option
everytime it is using another command other than compiling the
hypervisor.

Furthermore, early printk is one of the few odds one that are not
using Kconfig.

So this is about time to move it to Kconfig.

The new kconfigs options allow a user to eather select a UART driver
to use at boot time, and set the parameters, or it is still possible
to select a platform which will set the parameters.

If CONFIG_EARLY_PRINTK is present in the environment or on the make
command line, make will return an error.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Tested-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Julien Grall <jgrall@amazon.com>
docs/misc/arm/early-printk.txt
xen/Kconfig.debug
xen/arch/arm/Kconfig.debug [new file with mode: 0644]
xen/arch/arm/Makefile
xen/arch/arm/Rules.mk
xen/arch/arm/arm32/Makefile
xen/arch/arm/arm64/Makefile
xen/arch/x86/Kconfig.debug [new file with mode: 0644]