summaryrefslogtreecommitdiff
path: root/scripts/mkmakefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-03-30 21:04:16 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-04-02 23:27:38 +0900
commit48b5ffd1268788afb01525e71e864e901e9aa070 (patch)
tree44e99835658a0520c97c565afefbbe24d5c91539 /scripts/mkmakefile
parente07cf4fd7d72546bf46279927b28fe9d74308868 (diff)
downloadlwn-48b5ffd1268788afb01525e71e864e901e9aa070.tar.gz
lwn-48b5ffd1268788afb01525e71e864e901e9aa070.zip
kbuild: mkmakefile: generate a simple wrapper of top Makefile
Now that Kbuild is able to start from any directory, the generated Makefile can simply wrap the top Makefile. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Kieran Bingham <kbingham@kernel.org>
Diffstat (limited to 'scripts/mkmakefile')
-rwxr-xr-xscripts/mkmakefile20
1 files changed, 2 insertions, 18 deletions
diff --git a/scripts/mkmakefile b/scripts/mkmakefile
index 31de46801321..4d0faebb1719 100755
--- a/scripts/mkmakefile
+++ b/scripts/mkmakefile
@@ -12,22 +12,6 @@ if [ "${quiet}" != "silent_" ]; then
fi
cat << EOF > Makefile
-# Automatically generated by $0: don't edit
-
-ifeq ("\$(origin V)", "command line")
-VERBOSE := \$(V)
-endif
-ifneq (\$(VERBOSE),1)
-Q := @
-endif
-
-MAKEFLAGS += --no-print-directory
-
-.PHONY: __sub-make \$(MAKECMDGOALS)
-
-__sub-make:
- \$(Q)\$(MAKE) -C $1 O=\$(CURDIR) \$(MAKECMDGOALS)
-
-\$(filter-out __sub-make, \$(MAKECMDGOALS)): __sub-make
- @:
+# Automatically generated by $(realpath $0): don't edit
+include $(realpath $1/Makefile)
EOF