Skip to contentSkip to conversation

x86/boot/build: add cpustr.h to targets and remove clean-files

PATCH Applied Masahiro Yamada 2 participants 3 messages Feb 15, 2020 – Apr 21, 2020 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/boot/build: add cpustr.h to targets and remove clean-files

Files in $(targets) are always cleaned up.

Move the 'targets' assignment out of the ifdef and remove 'clean-files'.

---

 arch/x86/boot/Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/x86/boot/Makefile +1 -2
index 012b82fc8617..050164ba3def 100644
@@ -57,11 +57,10 @@ $(obj)/cpu.o: $(obj)/cpustr.h
 
 quiet_cmd_cpustr = CPUSTR  $@
       cmd_cpustr = $(obj)/mkcpustr > $@
-targets += cpustr.h
 $(obj)/cpustr.h: $(obj)/mkcpustr FORCE
 	$(call if_changed,cpustr)
 endif
-clean-files += cpustr.h
+targets += cpustr.h
 
 # ---------------------------------------------------------------------------
 
Signature · 1 line
2.17.1
#1 lore raw
Quoted 6 lines · Masahiro Yamada

Files in $(targets) are always cleaned up.

Move the 'targets' assignment out of the ifdef and remove 'clean-files'.

This is not a big deal, but let me ping just in case you missed it.

Quoted 25 lines

---

 arch/x86/boot/Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/x86/boot/Makefile +1 -3
index 012b82fc8617..050164ba3def 100644
@@ -57,11 +57,10 @@ $(obj)/cpu.o: $(obj)/cpustr.h
 
 quiet_cmd_cpustr = CPUSTR  $@
       cmd_cpustr = $(obj)/mkcpustr > $@
-targets += cpustr.h
 $(obj)/cpustr.h: $(obj)/mkcpustr FORCE
        $(call if_changed,cpustr)
 endif
-clean-files += cpustr.h
+targets += cpustr.h
 
 # ---------------------------------------------------------------------------
 
--

2.17.1

Signature · 2 lines
Best Regards
Masahiro Yamada
#2 lore raw

[tip: x86/build] x86/boot/build: Add cpustr.h to targets and remove clean-files

In reply to Masahiro Yamada
The following commit has been merged into the x86/build branch of tip:

The following commit has been merged into the x86/build branch of tip:

Commit-ID:     e3c7c1052271260955affbe65c4f328286fbe5fb
Gitweb:        https://git.kernel.org/tip/e3c7c1052271260955affbe65c4f328286fbe5fb
Author:        Masahiro Yamada <[email protected]>
AuthorDate:    Sat, 15 Feb 2020 15:32:41 +09:00
Committer:     Borislav Petkov <[email protected]>
CommitterDate: Tue, 21 Apr 2020 10:17:29 +02:00

x86/boot/build: Add cpustr.h to targets and remove clean-files

Files in $(targets) are always cleaned up. Move the 'targets' assignment out of the ifdef and remove 'clean-files'.

---
 arch/x86/boot/Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/x86/boot/Makefile +1 -2
index e17be90..02c8d1c 100644
@@ -57,11 +57,10 @@ $(obj)/cpu.o: $(obj)/cpustr.h
 
 quiet_cmd_cpustr = CPUSTR  $@
       cmd_cpustr = $(obj)/mkcpustr > $@
-targets += cpustr.h
 $(obj)/cpustr.h: $(obj)/mkcpustr FORCE
 	$(call if_changed,cpustr)
 endif
-clean-files += cpustr.h
+targets += cpustr.h
 
 # ---------------------------------------------------------------------------