diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-09-18 17:45:53 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-10-04 22:56:02 +0900 |
commit | 4fd61277f66278d7ce4a77accb662d00e800cce7 (patch) | |
tree | ac1dfcf3c4e40bf5e311ef3fa02d3e519e3f214f /scripts | |
parent | 74bc0c09b2da005f028510b1ad21140c9d6c9b44 (diff) | |
download | linux-4fd61277f66278d7ce4a77accb662d00e800cce7.tar.bz2 |
kbuild: do not pass $(objtree) to scripts/mkmakefile
Since $(objtree) is always '.', it is not useful to pass it to
scripts/mkmakefile. I assume nobody wants to run this script directly.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mkmakefile | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/mkmakefile b/scripts/mkmakefile index 24354284d4ad..85995f90e5c8 100755 --- a/scripts/mkmakefile +++ b/scripts/mkmakefile @@ -6,19 +6,18 @@ # Usage # $1 - Kernel src directory -# $2 - Output directory # Only overwrite automatically generated Makefiles # (so we do not overwrite kernel Makefile) -if test -e $2/Makefile && ! grep -q Automatically $2/Makefile +if test -e Makefile && ! grep -q Automatically Makefile then exit 0 fi if [ "${quiet}" != "silent_" ]; then - echo " GEN $2/Makefile" + echo " GEN Makefile" fi -cat << EOF > $2/Makefile +cat << EOF > Makefile # Automatically generated by $0: don't edit lastword = \$(word \$(words \$(1)),\$(1)) |