[efi] Prevent EFI code from being linked in to non-EFI builds
authorMichael Brown <mcb30@ipxe.org>
Fri, 19 May 2017 11:21:18 +0000 (12:21 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 19 May 2017 11:21:18 +0000 (12:21 +0100)
commitde37652044d51a73e8c65353e8b74a3544c54183
tree4787c3b202ea6bf2bdaf690a7e2657823c9f7c8b
parent7457bfc5b29cee677ab9a49efcea4a476a648a1a
[efi] Prevent EFI code from being linked in to non-EFI builds

Ensure that efi_systab is an undefined symbol in non-EFI builds.  In
particular, this prevents users from incorrectly enabling IMAGE_EFI in
a BIOS build of iPXE.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/interface/efi/efi_init.c