blob: bb7b95beeed16f75ea47fed76d48daf93a3db21c [file] [log] [blame]
Simon Glassb997abd2015-08-04 12:33:53 -06001#
2# (C) Copyright 2002-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# SPDX-License-Identifier: GPL-2.0+
6#
7
8obj-$(CONFIG_EFI_APP) += crt0-efi-ia32.o reloc_ia32.o
9
10ifneq ($(CONFIG_EFI_STUB),)
11
12CFLAGS_REMOVE_reloc_ia32.o += -mregparm=3
13CFLAGS_reloc_ia32.o += -fpic -fshort-wchar
14
15# When building for 64-bit we must remove the i386-specific flags
16CFLAGS_REMOVE_reloc_x86_64.o += -mregparm=3 -march=i386 -m32
17CFLAGS_reloc_x86_64.o += -fpic -fshort-wchar
18
19AFLAGS_REMOVE_crt0-efi-x86_64.o += -mregparm=3 -march=i386 -m32
20AFLAGS_crt0-efi-x86_64.o += -fpic -fshort-wchar
21
22extra-$(CONFIG_EFI_STUB_32BIT) += crt0-efi-ia32.o reloc_ia32.o
23extra-$(CONFIG_EFI_STUB_64BIT) += crt0-efi-x86_64.o reloc_x86_64.o
24endif