mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-28 01:51:33 +00:00
Makefile: Make EFI build quiet
Make building EFI example less noisy. Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
f1ca1fdebf
commit
f19f131503
1 changed files with 11 additions and 5 deletions
|
@ -363,19 +363,25 @@ cmd_S_efi= \
|
||||||
$(obj)/%_efi.S: $(obj)/%.efi
|
$(obj)/%_efi.S: $(obj)/%.efi
|
||||||
$(call cmd,S_efi)
|
$(call cmd,S_efi)
|
||||||
|
|
||||||
$(obj)/%.efi: $(obj)/%.so
|
quiet_cmd_efi_objcopy = OBJCOPY $@
|
||||||
$(OBJCOPY) -j .header -j .text -j .sdata -j .data -j .dynamic \
|
cmd_efi_objcopy = $(OBJCOPY) -j .header -j .text -j .sdata -j .data -j \
|
||||||
-j .dynsym -j .rel* -j .rela* -j .reloc \
|
.dynamic -j .dynsym -j .rel* -j .rela* -j .reloc \
|
||||||
$(if $(EFI_TARGET),$(EFI_TARGET),-O binary) $^ $@
|
$(if $(EFI_TARGET),$(EFI_TARGET),-O binary) $^ $@
|
||||||
|
|
||||||
|
$(obj)/%.efi: $(obj)/%.so
|
||||||
|
$(call cmd,efi_objcopy)
|
||||||
|
|
||||||
|
quiet_cmd_efi_ld = LD $@
|
||||||
|
cmd_efi_ld = $(LD) -nostdlib -znocombreloc -T $(EFI_LDS_PATH) -shared \
|
||||||
|
-Bsymbolic $^ -o $@
|
||||||
|
|
||||||
EFI_LDS_PATH = $(srctree)/arch/$(ARCH)/lib/$(EFI_LDS)
|
EFI_LDS_PATH = $(srctree)/arch/$(ARCH)/lib/$(EFI_LDS)
|
||||||
|
|
||||||
$(obj)/helloworld.so: $(EFI_LDS_PATH)
|
$(obj)/helloworld.so: $(EFI_LDS_PATH)
|
||||||
|
|
||||||
$(obj)/helloworld.so: $(obj)/helloworld.o arch/$(ARCH)/lib/$(EFI_CRT0) \
|
$(obj)/helloworld.so: $(obj)/helloworld.o arch/$(ARCH)/lib/$(EFI_CRT0) \
|
||||||
arch/$(ARCH)/lib/$(EFI_RELOC)
|
arch/$(ARCH)/lib/$(EFI_RELOC)
|
||||||
$(LD) -nostdlib -znocombreloc -T $(EFI_LDS_PATH) -shared -Bsymbolic \
|
$(call cmd,efi_ld)
|
||||||
$^ -o $@
|
|
||||||
|
|
||||||
# ACPI
|
# ACPI
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Reference in a new issue