efi_selftest: allow building relocation code on x86_64
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 18 May 2018 17:12:19 +0000 (19:12 +0200)
committerAlexander Graf <agraf@suse.de>
Sun, 3 Jun 2018 13:27:20 +0000 (15:27 +0200)
commit508d8567046fe3c0d1354fc3a7a6f81d9661a661
tree282def10a0e21e4cc02ccc8a50e27740d6c0fd55
parenta4aa7bef3c66e473ab4671b0edef1bb66488a032
efi_selftest: allow building relocation code on x86_64

Variables EFI_RELOC and EFI_CRT0 have to be defined to build the
EFI unit tests. This patch ensures this for the x86 architecure.

If we compile with EFI_STUB, the bitness depends on CONFIG_EFI_STUB_64BIT.
Otherwise the bitness depends on CONFIG_X86_64.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/x86/config.mk