History

kbuild: clean .tmp_* pattern by make clean

Change the "make clean" rule to remove all the .tmp_* files. .tmp_objdiff is the only exception, which should be removed by "make mrproper". Rename the record directory of objdiff, .tmp_objdiff to .objdiff to avoid the removal by "make clean".

Masahiro Yamada committed 4 years ago

Commit b0d62071 parent a78b6af3 files · +5 −8Browse files

Showing the changes to scripts (2 of 3 files). Show all

Unified · Split

2 files
  1. scripts/link-vmlinux.sh +0 −3
  2. scripts/objdiff +3 −3
scripts/link-vmlinux.sh+0−3
@@ -303,9 +303,6 @@ sorttable() · 302 unmodified lines
303cleanup()303cleanup()
304{304{
305 rm -f .btf.*305 rm -f .btf.*
306 rm -f .tmp_System.map
307 rm -f .tmp_initcalls.lds
308 rm -f .tmp_vmlinux*
309 rm -f System.map306 rm -f System.map
310 rm -f vmlinux307 rm -f vmlinux
311 rm -f vmlinux.map308 rm -f vmlinux.map
scripts/objdiff+3−3
@@ -20,10 +20,10 @@ · 19 unmodified lines
20# $ ./scripts/objdiff diff COMMIT_A COMMIT_B20# $ ./scripts/objdiff diff COMMIT_A COMMIT_B
21# $21# $
22 22
23# And to clean up (everything is in .tmp_objdiff/*)23# And to clean up (everything is in .objdiff/*)
24# $ ./scripts/objdiff clean all24# $ ./scripts/objdiff clean all
25#25#
26# Note: 'make mrproper' will also remove .tmp_objdiff26# Note: 'make mrproper' will also remove .objdiff
27 27
28SRCTREE=$(cd $(git rev-parse --show-toplevel 2>/dev/null); pwd)28SRCTREE=$(cd $(git rev-parse --show-toplevel 2>/dev/null); pwd)
29 29
@@ -32,7 +32,7 @@ if [ -z "$SRCTREE" ]; then · 2 unmodified lines
32 exit 132 exit 1
33fi33fi
34 34
35TMPD=$SRCTREE/.tmp_objdiff35TMPD=$SRCTREE/.objdiff
36 36
37usage() {37usage() {
38 echo >&2 "Usage: $0 <command> <args>"38 echo >&2 "Usage: $0 <command> <args>"

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