mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
74bc0c09b2
commit
4fd61277f6
2
Makefile
2
Makefile
|
@ -494,7 +494,7 @@ PHONY += outputmakefile
|
||||||
outputmakefile:
|
outputmakefile:
|
||||||
ifneq ($(KBUILD_SRC),)
|
ifneq ($(KBUILD_SRC),)
|
||||||
$(Q)ln -fsn $(srctree) source
|
$(Q)ln -fsn $(srctree) source
|
||||||
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile $(srctree) $(objtree)
|
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile $(srctree)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(cc-name),clang)
|
ifeq ($(cc-name),clang)
|
||||||
|
|
|
@ -6,19 +6,18 @@
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
# $1 - Kernel src directory
|
# $1 - Kernel src directory
|
||||||
# $2 - Output directory
|
|
||||||
|
|
||||||
# Only overwrite automatically generated Makefiles
|
# Only overwrite automatically generated Makefiles
|
||||||
# (so we do not overwrite kernel Makefile)
|
# (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
|
then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
if [ "${quiet}" != "silent_" ]; then
|
if [ "${quiet}" != "silent_" ]; then
|
||||||
echo " GEN $2/Makefile"
|
echo " GEN Makefile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat << EOF > $2/Makefile
|
cat << EOF > Makefile
|
||||||
# Automatically generated by $0: don't edit
|
# Automatically generated by $0: don't edit
|
||||||
|
|
||||||
lastword = \$(word \$(words \$(1)),\$(1))
|
lastword = \$(word \$(words \$(1)),\$(1))
|
||||||
|
|
Loading…
Reference in New Issue