2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2015-07-31 15:31:36 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2015 Google, Inc
|
|
|
|
|
2023-12-19 14:27:19 +00:00
|
|
|
obj-$(CONFIG_EFI_APP) += efi_app.o efi.o efi_app_init.o
|
2015-08-04 18:33:58 +00:00
|
|
|
obj-$(CONFIG_EFI_STUB) += efi_info.o
|
2015-08-04 18:33:52 +00:00
|
|
|
|
|
|
|
CFLAGS_REMOVE_efi_stub.o := -mregparm=3 \
|
|
|
|
$(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
|
2018-06-22 08:38:26 +00:00
|
|
|
CFLAGS_efi_stub.o := -fpic -fshort-wchar \
|
2018-06-10 13:25:03 +00:00
|
|
|
$(if $(CONFIG_EFI_STUB_64BIT),-m64)
|
2015-08-04 18:33:52 +00:00
|
|
|
CFLAGS_REMOVE_efi.o := -mregparm=3 \
|
|
|
|
$(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
|
2018-06-22 08:38:26 +00:00
|
|
|
CFLAGS_efi.o := -fpic -fshort-wchar \
|
2018-06-10 13:25:03 +00:00
|
|
|
$(if $(CONFIG_EFI_STUB_64BIT),-m64)
|
2015-08-04 18:33:52 +00:00
|
|
|
|
|
|
|
extra-$(CONFIG_EFI_STUB) += efi_stub.o efi.o
|