Clean up architecture-specific Kconfigs
It's an unfortunate side effect of our different-archs-per-stage
mechanism that all src/arch/*/Kconfig files are always parsed with no
if blocks to exclude them if they're not relevant. This makes it very
easy to accidentally rely on a Kconfig default set by a totally
different and not applying architecture.
This patch moves a few Kconfigs from ARM and X86 that leaked out like
this into a common Kconfig file for clarity. It also gives ARM64 its
own BOOTBLOCK_CUSTOM mechanism so that it doesn't leech off the ARM one
(currently not used by any board).
In the future, we should maybe prefix all options in the arch/*/Kconfig
files with the architecture name (such as X86_BOOTBLOCK_NORMAL and
ARM_LPAE are already doing), to make it more apparent when they are used
in the wrong place.
TEST=None (tested together with dependent changes)
Signed-off-by: Patrick Georgi <firstname.lastname@example.org>
Original-Signed-off-by: Julius Werner <email@example.com>
Original-Reviewed-by: Aaron Durbin <firstname.lastname@example.org>
Reviewed-by: Aaron Durbin <email@example.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <firstname.lastname@example.org>
5 files changed