kbuild: rpm-pkg: skip build dependency check on non-rpm systems
[linux-2.6-microblaze.git] / scripts / Makefile.package
index 0ace397..85beab0 100644 (file)
@@ -92,7 +92,8 @@ rpm-pkg srcrpm-pkg binrpm-pkg: kernel.spec
        +$(strip rpmbuild -b$(build-type) kernel.spec \
        --define='_topdir $(abspath rpmbuild)' \
        $(if $(filter a b, $(build-type)), \
-               --target $(UTS_MACHINE)-linux --build-in-place --noprep --define='_smp_mflags %{nil}') \
+               --target $(UTS_MACHINE)-linux --build-in-place --noprep --define='_smp_mflags %{nil}' \
+               $$(rpm -q rpm >/dev/null 2>&1 || echo --nodeps)) \
        $(if $(filter b, $(build-type)), \
                --without devel) \
        $(RPMOPTS))