History

kbuild: clean up stale file removal

More than one year has passed since the copied *.[cS] files were removed from arch/*/boot/compressed/.

Masahiro Yamada committed 3 years ago

Commit 8f99eb81 parent 83d98d72 files · +1 −30Browse files

Unified · Split

2 files
  1. arch/sh/boot/compressed/Makefile +0 −7
  2. scripts/remove-stale-files +1 −23
arch/sh/boot/compressed/Makefile+0−7
@@ -8,13 +8,6 @@ · 7 unmodified lines
88 OBJECTS := head_32.o misc.o cache.o piggy.o \
99 ashiftrt.o ashldi3.o ashrsi3.o ashlsi3.o lshrsi3.o
1010
11−# These were previously generated files. When you are building the kernel
12−# with O=, make sure to remove the stale files in the output tree. Otherwise,
13−# the build system wrongly compiles the stale ones.
14−ifdef building_out_of_srctree
15−$(shell rm -f $(addprefix $(obj)/, ashiftrt.S ashldi3.c ashrsi3.S ashlsi3.S lshrsi3.S))
16−endif
17−
1811 targets := vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 \
1912 vmlinux.bin.lzma vmlinux.bin.xz vmlinux.bin.lzo $(OBJECTS)
2013
scripts/remove-stale-files+1−23
@@ -21,31 +21,9 @@ set -e · 20 unmodified lines
2121 # then will be really dead and removed from the code base entirely.
2222
2323 rm -f arch/powerpc/purgatory/kexec-purgatory.c
24−
25−# These were previously generated source files. When you are building the kernel
26−# with O=, make sure to remove the stale files in the output tree. Otherwise,
27−# the build system wrongly compiles the stale ones.
28−if [ -n "${building_out_of_srctree}" ]; then
29− for f in fdt_rw.c fdt_ro.c fdt_wip.c fdt.c ashldi3.S bswapsdi2.S font.c lib1funcs.S hyp-stub.S
30− do
31− rm -f arch/arm/boot/compressed/${f}
32− done
33−
34− for f in uart-ath79.c ashldi3.c bswapdi.c bswapsi.c
35− do
36− rm -f arch/mips/boot/compressed/${f}
37− done
38−
39− for f in firmware.c real2.S
40− do
41− rm -f arch/parisc/boot/compressed/${f}
42− done
43−fi
44−
4524 rm -f arch/riscv/purgatory/kexec-purgatory.c
25+rm -f arch/x86/purgatory/kexec-purgatory.c
4626
4727 rm -f scripts/extract-cert
4828
49−rm -f arch/x86/purgatory/kexec-purgatory.c
50−
5129 rm -f scripts/kconfig/[gmnq]conf-cfg

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t