aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2014-07-04 16:53:52 -0400
committerMichal Marek <mmarek@suse.cz>2014-07-04 16:58:55 -0400
commitc79624c1a698a82747b1e6fe54cc7effa4c07aa5 (patch)
tree7c71d4f223f0b967cdc8098e43ffea95c2005f99 /Makefile
parent066b7ed9558087a7957a1128f27d7a3462ff117f (diff)
kbuild: Fix packaging targets with relative $(srctree)
All other users of Makefile.build set $(obj) to the name of the subdirectory to build. Do the same for the packaging targets, otherwise the build fails if $(srctree) is a relative directory: $ make O=build tar-pkg make[1]: Entering directory `/home/mmarek/linux-2.6/build' CHK include/config/kernel.release ../scripts/Makefile.build:44: ../../scripts/package/Makefile: No such file or directory make[2]: *** No rule to make target `../../scripts/package/Makefile'. Stop. Fixes: 9da0763b ("kbuild: Use relative path when building in a subdir of the source tree") Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1a5f9f3c7a58..347d6c7c7314 100644
--- a/Makefile
+++ b/Makefile
@@ -1176,7 +1176,7 @@ distclean: mrproper
1176# Packaging of the kernel to various formats 1176# Packaging of the kernel to various formats
1177# --------------------------------------------------------------------------- 1177# ---------------------------------------------------------------------------
1178# rpm target kept for backward compatibility 1178# rpm target kept for backward compatibility
1179package-dir := $(srctree)/scripts/package 1179package-dir := scripts/package
1180 1180
1181%src-pkg: FORCE 1181%src-pkg: FORCE
1182 $(Q)$(MAKE) $(build)=$(package-dir) $@ 1182 $(Q)$(MAKE) $(build)=$(package-dir) $@