Allow building for non-CrOS environments
There's some code that is architecture specific, but looking at
it, it's code for Chrome OS devices that just happens to be
split along ISA lines.
When building on systems that we don't ship crossystems integration for,
these parts are replaced by stubs that always return error conditions,
which allows building on unsupported ISA (such as POWER).
The issue was reported at https://ticket.coreboot.org/issues/145
where a coreboot user wanted to build a vboot-enabled coreboot
configuration (which builds futility for the signing part) on a
POWER host system, which failed because we lack an implementation
of the crossystem interfaces for POWER.
TEST=Built upstream coreboot with a vboot-enabled target inside
qemu-user-ppc64. Doing so works with these patches applied
while it failed without them.
Signed-off-by: Patrick Georgi <firstname.lastname@example.org>
Commit-Queue: Patrick Georgi <email@example.com>
Tested-by: Patrick Georgi <firstname.lastname@example.org>
Reviewed-by: Joel Kitching <email@example.com>
Reviewed-by: Julius Werner <firstname.lastname@example.org>
2 files changed