On 22 June 2018 at 02:38, Bin Meng <[email protected]> wrote: > From: Alexander Graf <[email protected]> > > 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 <[email protected]> > Reviewed-by: Bin Meng <[email protected]> > Tested-by: Bin Meng <[email protected]> > [bmeng: added some comments to describe the __x86_64__ check] > Signed-off-by: Bin Meng <[email protected]> > > --- > > include/efi.h | 24 +++++++++++------------- > lib/efi/Makefile | 4 ++-- > 2 files changed, 13 insertions(+), 15 deletions(-)
Reviewed-by: Simon Glass <[email protected]> _______________________________________________ U-Boot mailing list [email protected] https://lists.denx.de/listinfo/u-boot

