efi_loader: Use compiler constants for image loader
authorAlexander Graf <agraf@suse.de>
Mon, 18 Jun 2018 15:22:57 +0000 (17:22 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 25 Jul 2018 12:57:43 +0000 (14:57 +0200)
commitb59f69712b6af5e2b95e154a873f59948a754cc9
tree39e881c3b7478eb6319ab069823e65c6c62d3537
parentc726913a98dfefca013d061aee0d88b27606c77c
efi_loader: Use compiler constants for image loader

The EFI image loader tries to determine which target architecture we're
working with to only load PE binaries that match.

So far this has worked based on CONFIG defines, because the target CPU
was always indicated by a config define. With sandbox however, this is
not longer true as all sandbox targets only encompass a single CONFIG
option and so we need to use compiler defines to determine the CPU
architecture.

Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_image_loader.c