Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3148b03c authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Gaurav Kohli
Browse files

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.

Change-Id: I9948f3e92802719b393c52990f51955a867750a4
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: default avatarJoel Fernandes (Google) <joel@joelfernandes.org>
Git-commit: b60b7c2ea9b7f854d457fefd592c77f621a86580 
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarGaurav Kohli <gkohli@codeaurora.org>
parent aebb4fd3
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -33,8 +33,8 @@ arch/$SRCARCH/include/
# Uncomment it for debugging.
# if [ ! -f /tmp/iter ]; then iter=1; echo 1 > /tmp/iter;
# else iter=$(($(cat /tmp/iter) + 1)); echo $iter > /tmp/iter; fi
# find $src_file_list -type f | xargs ls -lR > /tmp/src-ls-$iter
# find $obj_file_list -type f | xargs ls -lR > /tmp/obj-ls-$iter
# find $src_file_list -type f | xargs ls -l > /tmp/src-ls-$iter
# find $obj_file_list -type f | xargs ls -l > /tmp/obj-ls-$iter

# include/generated/compile.h is ignored because it is touched even when none
# 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 |
		grep -v "include/config/auto.conf"		   |
		grep -v "include/config/auto.conf.cmd"		   |
		grep -v "include/config/tristate.conf"		   |
		xargs ls -lR | md5sum | cut -d ' ' -f1)"
		xargs ls -l | md5sum | cut -d ' ' -f1)"
popd > /dev/null
obj_files_md5="$(find $obj_file_list -type f                       |
		grep -v "include/generated/compile.h"		   |
@@ -54,7 +54,7 @@ obj_files_md5="$(find $obj_file_list -type f |
		grep -v "include/config/auto.conf"                 |
		grep -v "include/config/auto.conf.cmd"		   |
		grep -v "include/config/tristate.conf"		   |
		xargs ls -lR | md5sum | cut -d ' ' -f1)"
		xargs ls -l | md5sum | cut -d ' ' -f1)"

if [ -f $tarfile ]; then tarfile_md5="$(md5sum $tarfile | cut -d ' ' -f1)"; fi
if [ -f kernel/kheaders.md5 ] &&