diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-01-10 18:06:08 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-01-22 23:09:12 +0100 |
commit | 256060e4257a2c664d94324a39816f12d14fd4b3 (patch) | |
tree | 02b7f1eea5f5bb5228582610886595ef48e660cc /examples/api | |
parent | 3c950b31782db4c8643cdbc449d023ef37b8cb23 (diff) | |
download | u-boot-256060e4257a2c664d94324a39816f12d14fd4b3.zip u-boot-256060e4257a2c664d94324a39816f12d14fd4b3.tar.gz u-boot-256060e4257a2c664d94324a39816f12d14fd4b3.tar.bz2 |
vsprintf.c: add EFI device path printing
For debugging efi_loader we need the capability to print EFI
device paths. With this patch we can write:
debug("device path: %pD", dp);
A possible output would be
device path: /MemoryMapped(0x0,0x3ff93a82,0x3ff93a82)
This enhancement is not available when building without EFI support
and neither in the SPL nor in the API example.
A test is provided. It can be executed in the sandbox with command
ut_print.
The development for EFI support in the sandbox is currently in
branch u-boot-dm/efi-working. The branch currently lacks
commit 6ea8b580f06b ("efi_loader: correct DeviceNodeToText
for media types"). Ater rebasing the aforementioned branch on
U-Boot v2018.01 the test is executed successfully.
Without EFI support in the sandbox the test is simply skipped.
Suggested-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'examples/api')
-rw-r--r-- | examples/api/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/api/Makefile b/examples/api/Makefile index 8995272..9068727 100644 --- a/examples/api/Makefile +++ b/examples/api/Makefile @@ -4,6 +4,9 @@ # SPDX-License-Identifier: GPL-2.0+ # +# Provide symbol API_BUILD to signal that the API example is being built. +KBUILD_CPPFLAGS += -DAPI_BUILD + ifeq ($(ARCH),powerpc) LOAD_ADDR = 0x40000 endif |