efi_loader: need either ACPI table or device tree
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 20 Apr 2019 11:33:55 +0000 (13:33 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 22 Apr 2019 22:37:28 +0000 (00:37 +0200)
commit6182495e101f2d3da29e632632c3d6e5035fef8b
treeef24fd660216fb273e507a10cffee3bc7682237d
parent68066d5bcdd0b427ac75cf04a1f67cfede05ec4f
efi_loader: need either ACPI table or device tree

The EBBR specification prescribes that we should have either an ACPI table
or a device tree but not both. Let us enforce this condition in the
`bootefi` command.

If the bootefi command is called without a device tree parameter use a
previously device tree or fall back to the internal device tree.

The fdt unit test should not be run on boards with an ACPI table.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
cmd/bootefi.c
lib/efi_selftest/Makefile