Skip to contentSkip to conversation

tests/tcg/xtensa: add linker.ld to CLEANFILES

PATCH In review Max Filippov 3 participants 5 messages Mar 14, 2023 – Mar 15, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/tcg/xtensa: add linker.ld to CLEANFILES

Linker script for xtensa tests must be preprocessed for a specific target, remove it as a part of make clean.

---
 tests/tcg/xtensa/Makefile.softmmu-target | 1 +
 1 file changed, 1 insertion(+)
tests/tcg/xtensa/Makefile.softmmu-target +1 -0
index 973e55298ee4..948c0e6506bd 100644
@@ -26,6 +26,7 @@ ASFLAGS = -Wa,--no-absolute-literals
 LDFLAGS = -Tlinker.ld -nostartfiles -nostdlib
 
 CRT        = crt.o vectors.o
+CLEANFILES += linker.ld
 
 linker.ld: linker.ld.S
 	$(CC) $(XTENSA_INC) -E -P $< -o $@
Signature · 1 line
2.30.2
#1 lore raw
Quoted 7 lines · Max Filippov

Linker script for xtensa tests must be preprocessed for a specific target, remove it as a part of make clean.

---
 tests/tcg/xtensa/Makefile.softmmu-target | 1 +

 1 file changed, 1 insertion(+)

Wilfred Mallawa <[email protected]>

Quoted 14 lines
tests/tcg/xtensa/Makefile.softmmu-target +0 -0
index 973e55298ee4..948c0e6506bd 100644
@@ -26,6 +26,7 @@ ASFLAGS = -Wa,--no-absolute-literals

 LDFLAGS = -Tlinker.ld -nostartfiles -nostdlib

 CRT        = crt.o vectors.o
+CLEANFILES += linker.ld

 linker.ld: linker.ld.S
        $(CC) $(XTENSA_INC) -E -P $< -o $@

#2 lore raw
Quoted 11 lines · Wilfred Mallawa
Quoted 7 lines · Max Filippov

Linker script for xtensa tests must be preprocessed for a specific target, remove it as a part of make clean.

---
 tests/tcg/xtensa/Makefile.softmmu-target | 1 +
 1 file changed, 1 insertion(+)

Wilfred Mallawa <[email protected]>

The tag is missing, I assume you meant Reviewed-by.

Signature · 2 lines
Thanks.
-- Max
#3 lore raw
Quoted 8 lines · Max Filippov
Quoted 6 lines · Wilfred Mallawa
Quoted 4 lines · Max Filippov

Linker script for xtensa tests must be preprocessed for a specific
target, remove it as a part of make clean.

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

---
 tests/tcg/xtensa/Makefile.softmmu-target | 1 +

 1 file changed, 1 insertion(+)

Wilfred Mallawa <[email protected]>

The tag is missing, I assume you meant Reviewed-by.

Ah crap, sorry! yes I did.

Wilfred

Quoted 1 line
Reviewed-by on v1 1/1
#4 lore raw
In reply to Max Filippov
Quoted 3 lines · Max Filippov

Linker script for xtensa tests must be preprocessed for a specific target, remove it as a part of make clean.

Fixes be5cac175a ("tests/tcg/xtensa: enable system tests")
Quoted 17 lines
---
  tests/tcg/xtensa/Makefile.softmmu-target | 1 +
  1 file changed, 1 insertion(+)
tests/tcg/xtensa/Makefile.softmmu-target +1 -0
index 973e55298ee4..948c0e6506bd 100644
@@ -26,6 +26,7 @@ ASFLAGS = -Wa,--no-absolute-literals
  LDFLAGS = -Tlinker.ld -nostartfiles -nostdlib
 
  CRT        = crt.o vectors.o
+CLEANFILES += linker.ld
 
  linker.ld: linker.ld.S
  	$(CC) $(XTENSA_INC) -E -P $< -o $@