efi_selftest: check for RISC-V boot-hartid in FDT
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 17 Sep 2020 05:33:29 +0000 (07:33 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 18 Sep 2020 20:23:58 +0000 (22:23 +0200)
commit52a8481827511a0837b4944d1184214ac924a123
treee7ef6e75c4ffcbb5dbef9d6ddc164f1afb93453f
parent18161a8a4eb622eae367f688058007d6a565b210
efi_selftest: check for RISC-V boot-hartid in FDT

On RISC-V check that the /chosen node has a boot-hartid property.

To run the test configure with CONFIG_CMD_BOOTEFI_SELFTEST=y and issue

    setenv efi_selftest device tree
    setenv serial# myserial
    bootefi selftest

If the test succeeds, it reports the boot-hartid, e.g.

    boot-hartid: 1

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