mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-04 18:41:03 +00:00
5abd9137d5
At present we use a CONFIG option in efi.h to determine whether we are building the EFI stub or not. This means that the same header cannot be used for EFI_LOADER support. The CONFIG option will be enabled for the whole build, even when not building the stub. Use a different define instead, set up just for the files that make up the stub. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
17 lines
477 B
Makefile
17 lines
477 B
Makefile
#
|
|
# (C) Copyright 2015 Google, Inc
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
|
|
obj-$(CONFIG_EFI_APP) += efi_app.o efi.o
|
|
obj-$(CONFIG_EFI_STUB) += efi_info.o
|
|
|
|
CFLAGS_REMOVE_efi_stub.o := -mregparm=3 \
|
|
$(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
|
|
CFLAGS_efi_stub.o := -fpic -fshort-wchar -DEFI_STUB
|
|
CFLAGS_REMOVE_efi.o := -mregparm=3 \
|
|
$(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
|
|
CFLAGS_efi.o := -fpic -fshort-wchar -DEFI_STUB
|
|
|
|
extra-$(CONFIG_EFI_STUB) += efi_stub.o efi.o
|