aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/package
diff options
context:
space:
mode:
authorBin Wang <wbin00@gmail.com>2013-02-24 22:05:24 -0500
committerMichal Marek <mmarek@suse.cz>2013-04-08 07:04:17 -0400
commit4c6e00cffcd478a369b6fd0ba61f5b0f9643ff43 (patch)
tree6987a8cfce7daaee2a5493620f115196c76ee840 /scripts/package
parentff4eb04c88588118a4c0f0b8308c9c475f3bc9fe (diff)
scripts/package/Makefile: compare objtree with srctree instead of test KBUILD_OUTPUT
KBUILD_OUTPUT is always empty here, so it is useless to test it. But while use O=.., objtree and srctree will be different. I compare them instead. Signed-off-by: Bin Wang <wbin00@gmail.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/package')
-rw-r--r--scripts/package/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/package/Makefile b/scripts/package/Makefile
index 87bf08076b11..d7b328595a7e 100644
--- a/scripts/package/Makefile
+++ b/scripts/package/Makefile
@@ -36,7 +36,7 @@ $(objtree)/kernel.spec: $(MKSPEC) $(srctree)/Makefile
36 $(CONFIG_SHELL) $(MKSPEC) > $@ 36 $(CONFIG_SHELL) $(MKSPEC) > $@
37 37
38rpm-pkg rpm: $(objtree)/kernel.spec FORCE 38rpm-pkg rpm: $(objtree)/kernel.spec FORCE
39 @if test -n "$(KBUILD_OUTPUT)"; then \ 39 @if test "$(objtree)" != "$(srctree)"; then \
40 echo "Building source + binary RPM is not possible outside the"; \ 40 echo "Building source + binary RPM is not possible outside the"; \
41 echo "kernel source tree. Don't set KBUILD_OUTPUT, or use the"; \ 41 echo "kernel source tree. Don't set KBUILD_OUTPUT, or use the"; \
42 echo "binrpm-pkg target instead."; \ 42 echo "binrpm-pkg target instead."; \