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
8OBJECTS := head_32.o misc.o cache.o piggy.o \8OBJECTS := head_32.o misc.o cache.o piggy.o \
9 ashiftrt.o ashldi3.o ashrsi3.o ashlsi3.o lshrsi3.o9 ashiftrt.o ashldi3.o ashrsi3.o ashlsi3.o lshrsi3.o
10 10
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.
14ifdef building_out_of_srctree
15$(shell rm -f $(addprefix $(obj)/, ashiftrt.S ashldi3.c ashrsi3.S ashlsi3.S lshrsi3.S))
16endif
17
18targets := vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 \11targets := vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 \
19 vmlinux.bin.lzma vmlinux.bin.xz vmlinux.bin.lzo $(OBJECTS)12 vmlinux.bin.lzma vmlinux.bin.xz vmlinux.bin.lzo $(OBJECTS)
20 13
scripts/remove-stale-files+1−23
@@ -21,31 +21,9 @@ set -e · 20 unmodified lines
21# then will be really dead and removed from the code base entirely.21# then will be really dead and removed from the code base entirely.
22 22
23rm -f arch/powerpc/purgatory/kexec-purgatory.c23rm -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.
28if [ -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
43fi
44
45rm -f arch/riscv/purgatory/kexec-purgatory.c24rm -f arch/riscv/purgatory/kexec-purgatory.c
25rm -f arch/x86/purgatory/kexec-purgatory.c
46 26
47rm -f scripts/extract-cert27rm -f scripts/extract-cert
48 28
49rm -f arch/x86/purgatory/kexec-purgatory.c
50
51rm -f scripts/kconfig/[gmnq]conf-cfg29rm -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