Skip to contentSkip to conversation

non-x86: sync tidying logic at end of linking

PATCH In review Jan Beulich 4 participants 4 messages Jun 16 – Jul 21 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 non-x86: sync tidying logic at end of linking

Mirror what 761bb575ce97 ("x86: fix build race when generating temporary object files") did there to other ports: These ..*.cmd files aren't useful to have/keep.

xen/arch/arm/Makefile +1 -1
@@ -117,7 +117,7 @@ $(TARGET)-syms: $(objtree)/prelink.o $(o
 	$(NM) -pa --format=sysv $@ \
 		| $(objtree)/tools/symbols --all-symbols --xensyms --sysv --sort \
 		> [email protected]
-	rm -f $(@D)/.$(@F).[0-9]*
+	rm -f $(dot-target).[0-9]* $(@D)/..$(@F).[0-9]*
 
 .PHONY: include
 include:
xen/arch/ppc/Makefile +1 -1
@@ -32,7 +32,7 @@ $(TARGET)-syms: $(objtree)/prelink.o $(o
 	$(NM) -pa --format=sysv $@ \
 		| $(objtree)/tools/symbols --all-symbols --xensyms --sysv --sort \
 		> [email protected]
-	rm -f $(@D)/.$(@F).[0-9]*
+	rm -f $(dot-target).[0-9]* $(@D)/..$(@F).[0-9]*
 
 $(obj)/xen.lds: $(src)/xen.lds.S FORCE
 	$(call if_changed_dep,cpp_lds_S)
xen/arch/riscv/Makefile +1 -1
@@ -52,7 +52,7 @@ $(TARGET)-syms: $(objtree)/prelink.o $(o
 	$(NM) -pa --format=sysv $@ \
 		| $(objtree)/tools/symbols --all-symbols --xensyms --sysv --sort \
 		> [email protected]
-	rm -f $(@D)/.$(@F).[0-9]*
+	rm -f $(dot-target).[0-9]* $(@D)/..$(@F).[0-9]*
 
 $(obj)/xen.lds: $(src)/xen.lds.S FORCE
 	$(call if_changed_dep,cpp_lds_S)
Reviewed-by on v1 1/1
#1 lore raw
Quoted 31 lines · Jan Beulich

Mirror what 761bb575ce97 ("x86: fix build race when generating temporary object files") did there to other ports: These ..*.cmd files aren't useful to have/keep.

xen/arch/arm/Makefile +1 -1
@@ -117,7 +117,7 @@ $(TARGET)-syms: $(objtree)/prelink.o $(o
  	$(NM) -pa --format=sysv $@ \
  		| $(objtree)/tools/symbols --all-symbols --xensyms --sysv --sort \
  		> [email protected]
-	rm -f $(@D)/.$(@F).[0-9]*
+	rm -f $(dot-target).[0-9]* $(@D)/..$(@F).[0-9]*
 
  .PHONY: include
  include:
xen/arch/ppc/Makefile +1 -1
@@ -32,7 +32,7 @@ $(TARGET)-syms: $(objtree)/prelink.o $(o
  	$(NM) -pa --format=sysv $@ \
  		| $(objtree)/tools/symbols --all-symbols --xensyms --sysv --sort \
  		> [email protected]
-	rm -f $(@D)/.$(@F).[0-9]*
+	rm -f $(dot-target).[0-9]* $(@D)/..$(@F).[0-9]*
 
  $(obj)/xen.lds: $(src)/xen.lds.S FORCE
  	$(call if_changed_dep,cpp_lds_S)

xen/arch/riscv/Makefile $(TARGET)-syms: $(objtree)/prelink.o $(o · line 58

Quoted 8 lines
xen/arch/riscv/Makefile +1 -1
@@ -52,7 +52,7 @@ $(TARGET)-syms: $(objtree)/prelink.o $(o
  	$(NM) -pa --format=sysv $@ \
  		| $(objtree)/tools/symbols --all-symbols --xensyms --sysv --sort \
  		> [email protected]
-	rm -f $(@D)/.$(@F).[0-9]*
+	rm -f $(dot-target).[0-9]* $(@D)/..$(@F).[0-9]*
 
  $(obj)/xen.lds: $(src)/xen.lds.S FORCE
  	$(call if_changed_dep,cpp_lds_S)

LGTM:

Thanks.

~ Oleksii