]> git.sur5r.net Git - u-boot/commit
efi_selftest: check installation of the device tree
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 3 Mar 2018 14:29:04 +0000 (15:29 +0100)
committerAlexander Graf <agraf@suse.de>
Wed, 4 Apr 2018 09:00:06 +0000 (11:00 +0200)
commit06c3d5b989d15a86e2b0a5d49e0bcda365d35baa
treefe6501279dcb370436e05c64aa658d47357bb2cb
parentbc4f9133edb4baf5f68689a03137bb2c336e2026
efi_selftest: check installation of the device tree

The unit test checks if a device tree is installed. It requires that the
'compatible' property of the root node exists. If available it prints the
'serial-number' property.

The serial-number property is derived from the environment variable
'serial#'. This can be used to check if the image_setup_libfdt() function
is executed.

A Python test is supplied. It sets a value for serial# and checks that the
selftest shows this as serial-number.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_selftest/Makefile
lib/efi_selftest/efi_selftest_fdt.c [new file with mode: 0644]
test/py/tests/test_efi_selftest.py