u-boot-brain/lib/efi
Alexander Graf 0186644646 efi.h: Do not use config options
Currently efi.h determines a few bits of its environment according to
config options. This falls apart with the efi stub support which may
result in efi.h getting pulled into the stub as well as real U-Boot
code. In that case, one may be 32bit while the other one is 64bit.

This patch changes the conditionals to use compiler provided defines
instead. That way we always adhere to the build environment we're in
and the definitions adjust automatically.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: added some comments to describe the __x86_64__ check]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2018-06-24 08:56:04 +08:00
..
efi_app.c x86: use EFI calling convention for efi_main on x86_64 2018-06-17 21:16:04 +08:00
efi_info.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
efi_stub.c efi: stub: Pass EFI GOP information to U-Boot payload 2018-06-17 21:16:04 +08:00
efi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig efi: Add support for loading U-Boot through an EFI stub 2015-08-05 08:44:06 -06:00
Makefile efi.h: Do not use config options 2018-06-24 08:56:04 +08:00