All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/1] efi_loader: always rebuild efi_crt0.o
@ 2019-07-22  6:05 Heinrich Schuchardt
  2019-07-22  6:26 ` Bin Meng
  0 siblings, 1 reply; 3+ messages in thread
From: Heinrich Schuchardt @ 2019-07-22  6:05 UTC (permalink / raw)
  To: u-boot

When changing the architecture without calling 'make clean' a subsequent
make fails with
lib/efi_loader/efi_crt0.o: file not recognized: File format not recognized

Force efi_crt0.o to be always rebuild.

Reported-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 scripts/Makefile.lib | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index de67677f61..2f5e28cac3 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -383,7 +383,7 @@ cmd_efi_ld = $(LD) -nostdlib -znocombreloc -T $(EFI_LDS_PATH) -shared \

 EFI_LDS_PATH = $(srctree)/arch/$(ARCH)/lib/$(EFI_LDS)

-$(obj)/efi_crt0.o: $(srctree)/arch/$(ARCH)/lib/$(EFI_CRT0:.o=.S)
+$(obj)/efi_crt0.o: $(srctree)/arch/$(ARCH)/lib/$(EFI_CRT0:.o=.S) FORCE
 	$(call if_changed_dep,as_o_S)

 $(obj)/efi_reloc.o: $(srctree)/arch/$(ARCH)/lib/$(EFI_RELOC:.o=.c) $(recordmcount_source) FORCE
--
2.20.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH 1/1] efi_loader: always rebuild efi_crt0.o
  2019-07-22  6:05 [U-Boot] [PATCH 1/1] efi_loader: always rebuild efi_crt0.o Heinrich Schuchardt
@ 2019-07-22  6:26 ` Bin Meng
  2019-07-22  9:23   ` Kever Yang
  0 siblings, 1 reply; 3+ messages in thread
From: Bin Meng @ 2019-07-22  6:26 UTC (permalink / raw)
  To: u-boot

On Mon, Jul 22, 2019 at 2:06 PM Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>
> When changing the architecture without calling 'make clean' a subsequent
> make fails with
> lib/efi_loader/efi_crt0.o: file not recognized: File format not recognized
>
> Force efi_crt0.o to be always rebuild.
>
> Reported-by: Kever Yang <kever.yang@rock-chips.com>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  scripts/Makefile.lib | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH 1/1] efi_loader: always rebuild efi_crt0.o
  2019-07-22  6:26 ` Bin Meng
@ 2019-07-22  9:23   ` Kever Yang
  0 siblings, 0 replies; 3+ messages in thread
From: Kever Yang @ 2019-07-22  9:23 UTC (permalink / raw)
  To: u-boot


On 2019/7/22 下午2:26, Bin Meng wrote:
> On Mon, Jul 22, 2019 at 2:06 PM Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>> When changing the architecture without calling 'make clean' a subsequent
>> make fails with
>> lib/efi_loader/efi_crt0.o: file not recognized: File format not recognized
>>
>> Force efi_crt0.o to be always rebuild.
>>
>> Reported-by: Kever Yang <kever.yang@rock-chips.com>
>> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>


Tested-by: Kever Yang <kever.yang@rock-chips.com>


Thanks,
- Kever
>> ---
>>   scripts/Makefile.lib | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-22  9:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-22  6:05 [U-Boot] [PATCH 1/1] efi_loader: always rebuild efi_crt0.o Heinrich Schuchardt
2019-07-22  6:26 ` Bin Meng
2019-07-22  9:23   ` Kever Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.