aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/package/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-02-13 22:05:14 -0500
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-02-19 19:42:46 -0500
commit175209cce23d6b0669ed5366add2517e26cd75cd (patch)
tree5eb1151733634b8cbceab40da1f46ec0309ed7bc /scripts/package/Makefile
parentad15006cc78459d059af56729c4d9bed7c7fd860 (diff)
kbuild: pkg: use -f $(srctree)/Makefile to recurse to top Makefile
'$(MAKE) KBUILD_SRC=' changes the working directory back and forth between objtree and srctree. It is better to recurse to the top-level Makefile directly. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/package/Makefile')
-rw-r--r--scripts/package/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/package/Makefile b/scripts/package/Makefile
index 453fecee62f0..aa39c2b5e46a 100644
--- a/scripts/package/Makefile
+++ b/scripts/package/Makefile
@@ -59,7 +59,7 @@ rpm-pkg: FORCE
59# binrpm-pkg 59# binrpm-pkg
60# --------------------------------------------------------------------------- 60# ---------------------------------------------------------------------------
61binrpm-pkg: FORCE 61binrpm-pkg: FORCE
62 $(MAKE) KBUILD_SRC= 62 $(MAKE) -f $(srctree)/Makefile
63 $(CONFIG_SHELL) $(MKSPEC) prebuilt > $(objtree)/binkernel.spec 63 $(CONFIG_SHELL) $(MKSPEC) prebuilt > $(objtree)/binkernel.spec
64 +rpmbuild $(RPMOPTS) --define "_builddir $(objtree)" --target \ 64 +rpmbuild $(RPMOPTS) --define "_builddir $(objtree)" --target \
65 $(UTS_MACHINE) -bb $(objtree)/binkernel.spec 65 $(UTS_MACHINE) -bb $(objtree)/binkernel.spec
@@ -102,7 +102,7 @@ clean-dirs += $(objtree)/snap/
102# tarball targets 102# tarball targets
103# --------------------------------------------------------------------------- 103# ---------------------------------------------------------------------------
104tar%pkg: FORCE 104tar%pkg: FORCE
105 $(MAKE) KBUILD_SRC= 105 $(MAKE) -f $(srctree)/Makefile
106 $(CONFIG_SHELL) $(srctree)/scripts/package/buildtar $@ 106 $(CONFIG_SHELL) $(srctree)/scripts/package/buildtar $@
107 107
108clean-dirs += $(objtree)/tar-install/ 108clean-dirs += $(objtree)/tar-install/