[U-Boot] cmd/bootefi.c:285:3: error: ‘loaded_image_info’ undeclared

Heinrich Schuchardt xypron.glpk at gmx.de
Wed Sep 20 18:42:42 UTC 2017


Hello Rob, hello Alex,

when I try to compile efi-next I get

  CC      cmd/bootefi.o
cmd/bootefi.c: In function ‘do_bootefi’:
cmd/bootefi.c:285:3: error: ‘loaded_image_info’ undeclared (first use in
this function)
   loaded_image_info.device_handle = bootefi_device_path;
   ^~~~~~~~~~~~~~~~~
cmd/bootefi.c:285:3: note: each undeclared identifier is reported only
once for each function it appears in
scripts/Makefile.build:280: recipe for target 'cmd/bootefi.o' failed
make[3]: *** [cmd/bootefi.o] Error 1
Makefile:1279: recipe for target 'cmd' failed

when compiling with CONFIG_CMD_BOOTEFI_SELFTEST=y.

I guess we should enable this option in qemu-x86_defconfig to make such
errors visible in Travis CI.

This seems to be the problematic patch:
ad503ffe9c6: efi_loader: refactor boot device and loaded_image handling

Best regards

Heinrich


More information about the U-Boot mailing list