diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-06-30 20:58:43 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-07-08 21:10:52 -0400 |
commit | b60b7c2ea9b7f854d457fefd592c77f621a86580 (patch) | |
tree | d242925d273b58b3d9f0907b4c9b899b0a4a649f /kernel/gen_kheaders.sh | |
parent | 1e21cbfada87f697a2a7c450542a7d28925abee6 (diff) |
kheaders: remove meaningless -R option of 'ls'
The -R option of 'ls' is supposed to be used for directories.
-R, --recursive
list subdirectories recursively
Since 'find ... -type f' only matches to regular files, we do not
expect directories passed to the 'ls' command here.
Giving -R is harmless at least, but unneeded.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Diffstat (limited to 'kernel/gen_kheaders.sh')
-rwxr-xr-x | kernel/gen_kheaders.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/gen_kheaders.sh b/kernel/gen_kheaders.sh index 9a34e1d9bd7f..86a666f5cb17 100755 --- a/kernel/gen_kheaders.sh +++ b/kernel/gen_kheaders.sh | |||
@@ -33,8 +33,8 @@ arch/$SRCARCH/include/ | |||
33 | # Uncomment it for debugging. | 33 | # Uncomment it for debugging. |
34 | # if [ ! -f /tmp/iter ]; then iter=1; echo 1 > /tmp/iter; | 34 | # if [ ! -f /tmp/iter ]; then iter=1; echo 1 > /tmp/iter; |
35 | # else iter=$(($(cat /tmp/iter) + 1)); echo $iter > /tmp/iter; fi | 35 | # else iter=$(($(cat /tmp/iter) + 1)); echo $iter > /tmp/iter; fi |
36 | # find $src_file_list -type f | xargs ls -lR > /tmp/src-ls-$iter | 36 | # find $src_file_list -type f | xargs ls -l > /tmp/src-ls-$iter |
37 | # find $obj_file_list -type f | xargs ls -lR > /tmp/obj-ls-$iter | 37 | # find $obj_file_list -type f | xargs ls -l > /tmp/obj-ls-$iter |
38 | 38 | ||
39 | # include/generated/compile.h is ignored because it is touched even when none | 39 | # include/generated/compile.h is ignored because it is touched even when none |
40 | # of the source files changed. This causes pointless regeneration, so let us | 40 | # of the source files changed. This causes pointless regeneration, so let us |
@@ -46,7 +46,7 @@ src_files_md5="$(find $src_file_list -type f | | |||
46 | grep -v "include/config/auto.conf" | | 46 | grep -v "include/config/auto.conf" | |
47 | grep -v "include/config/auto.conf.cmd" | | 47 | grep -v "include/config/auto.conf.cmd" | |
48 | grep -v "include/config/tristate.conf" | | 48 | grep -v "include/config/tristate.conf" | |
49 | xargs ls -lR | md5sum | cut -d ' ' -f1)" | 49 | xargs ls -l | md5sum | cut -d ' ' -f1)" |
50 | popd > /dev/null | 50 | popd > /dev/null |
51 | obj_files_md5="$(find $obj_file_list -type f | | 51 | obj_files_md5="$(find $obj_file_list -type f | |
52 | grep -v "include/generated/compile.h" | | 52 | grep -v "include/generated/compile.h" | |
@@ -54,7 +54,7 @@ obj_files_md5="$(find $obj_file_list -type f | | |||
54 | grep -v "include/config/auto.conf" | | 54 | grep -v "include/config/auto.conf" | |
55 | grep -v "include/config/auto.conf.cmd" | | 55 | grep -v "include/config/auto.conf.cmd" | |
56 | grep -v "include/config/tristate.conf" | | 56 | grep -v "include/config/tristate.conf" | |
57 | xargs ls -lR | md5sum | cut -d ' ' -f1)" | 57 | xargs ls -l | md5sum | cut -d ' ' -f1)" |
58 | 58 | ||
59 | if [ -f $tarfile ]; then tarfile_md5="$(md5sum $tarfile | cut -d ' ' -f1)"; fi | 59 | if [ -f $tarfile ]; then tarfile_md5="$(md5sum $tarfile | cut -d ' ' -f1)"; fi |
60 | if [ -f kernel/kheaders.md5 ] && | 60 | if [ -f kernel/kheaders.md5 ] && |