mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-16 01:38:22 +00:00
95b62b2e28
Today we can compile a self-contained hello world efi test binary that allows us to quickly verify whether the EFI loader framwork works. We can use that binary outside of the self-contained test case though, by providing it to a to-be-tested system via tftp. This patch separates compilation of the helloworld.efi file from including it in the u-boot binary for "bootefi hello". It also modifies the efi_loader test case to enable travis to pick up the compiled file. Because we're now no longer bloating the resulting u-boot binary, we can enable compilation always, giving us good travis test coverage. Signed-off-by: Alexander Graf <agraf@suse.de> Reviewed-by: Tom Rini <trini@konsulko.com>
69 lines
1.8 KiB
Makefile
69 lines
1.8 KiB
Makefile
#
|
|
# (C) Copyright 2002-2006
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
|
|
obj-y += bios.o
|
|
obj-y += bios_asm.o
|
|
obj-y += bios_interrupts.o
|
|
obj-$(CONFIG_CMD_BOOTM) += bootm.o
|
|
obj-y += cmd_boot.o
|
|
obj-$(CONFIG_SEABIOS) += coreboot_table.o
|
|
obj-$(CONFIG_EFI) += efi/
|
|
obj-y += e820.o
|
|
obj-y += gcc.o
|
|
obj-y += init_helpers.o
|
|
obj-y += interrupts.o
|
|
obj-y += lpc-uclass.o
|
|
obj-y += mpspec.o
|
|
obj-$(CONFIG_ENABLE_MRC_CACHE) += mrccache.o
|
|
obj-y += cmd_mtrr.o
|
|
obj-y += northbridge-uclass.o
|
|
obj-$(CONFIG_I8259_PIC) += i8259.o
|
|
obj-$(CONFIG_I8254_TIMER) += i8254.o
|
|
obj-y += pinctrl_ich6.o
|
|
obj-y += pirq_routing.o
|
|
obj-y += relocate.o
|
|
obj-y += physmem.o
|
|
obj-$(CONFIG_X86_RAMTEST) += ramtest.o
|
|
obj-y += sections.o
|
|
obj-y += sfi.o
|
|
obj-y += string.o
|
|
ifndef CONFIG_QEMU
|
|
obj-$(CONFIG_GENERATE_ACPI_TABLE) += acpi_table.o
|
|
endif
|
|
obj-y += tables.o
|
|
obj-$(CONFIG_CMD_ZBOOT) += zimage.o
|
|
obj-$(CONFIG_HAVE_FSP) += fsp/
|
|
|
|
extra-$(CONFIG_USE_PRIVATE_LIBGCC) += lib.a
|
|
|
|
NORMAL_LIBGCC = $(shell $(CC) $(PLATFORM_CPPFLAGS) -print-libgcc-file-name)
|
|
OBJCOPYFLAGS := --prefix-symbols=__normal_
|
|
$(obj)/lib.a: $(NORMAL_LIBGCC) FORCE
|
|
$(call if_changed,objcopy)
|
|
|
|
obj-$(CONFIG_EFI_APP) += crt0_ia32_efi.o reloc_ia32_efi.o
|
|
|
|
ifneq ($(CONFIG_EFI_STUB),)
|
|
|
|
CFLAGS_REMOVE_reloc_ia32_efi.o += -mregparm=3
|
|
CFLAGS_reloc_ia32_efi.o += -fpic -fshort-wchar
|
|
|
|
# When building for 64-bit we must remove the i386-specific flags
|
|
CFLAGS_REMOVE_reloc_x86_64_efi.o += -mregparm=3 -march=i386 -m32
|
|
CFLAGS_reloc_x86_64_efi.o += -fpic -fshort-wchar
|
|
|
|
AFLAGS_REMOVE_crt0_x86_64_efi.o += -mregparm=3 -march=i386 -m32
|
|
AFLAGS_crt0_x86_64_efi.o += -fpic -fshort-wchar
|
|
|
|
extra-$(CONFIG_EFI_STUB_32BIT) += crt0_ia32_efi.o reloc_ia32_efi.o
|
|
extra-$(CONFIG_EFI_STUB_64BIT) += crt0_x86_64_efi.o reloc_x86_64_efi.o
|
|
|
|
endif
|
|
|
|
ifneq ($(CONFIG_EFI_STUB)$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),)
|
|
extra-y += $(EFI_CRT0) $(EFI_RELOC)
|
|
endif
|