]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
kbuild: Fix bug in make deb-pkg when using seperate source and output directories
authorSam Ravnborg <sam@mars.(none)>
Thu, 14 Jul 2005 20:26:09 +0000 (20:26 +0000)
committerSam Ravnborg <sam@mars.(none)>
Thu, 14 Jul 2005 20:26:09 +0000 (20:26 +0000)
From: Ryan Anderson <ryan@michonline.com>

When running "make O=something deb-pkg", I get a failure that claims I
haven't configured my kernel (I have).  Running it a second time tells
me to run "make mrproper"  (include/linux/version.h got built on the
first run)

Original patch from:
From: Ajay Patel <patela@gmail.com>

With modifications from:
Signed-off-By: Ryan Anderson <ryan@michonline.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/package/Makefile
scripts/package/builddeb

index 353b8ea5c32cd5826d52ce49de4076782e54d7cd..8afdef921cb7c19905c403366b489b27ba4aa0e3 100644 (file)
@@ -59,7 +59,7 @@ $(objtree)/binkernel.spec: $(MKSPEC) $(srctree)/Makefile
        $(CONFIG_SHELL) $(MKSPEC) prebuilt > $@
        
 binrpm-pkg: $(objtree)/binkernel.spec
-       $(MAKE)
+       $(MAKE) KBUILD_SRC=
        set -e; \
        $(CONFIG_SHELL) $(srctree)/scripts/mkversion > $(objtree)/.tmp_version
        set -e; \
@@ -74,7 +74,7 @@ clean-files += $(objtree)/binkernel.spec
 #
 .PHONY: deb-pkg
 deb-pkg:
-       $(MAKE)
+       $(MAKE) KBUILD_SRC=
        $(CONFIG_SHELL) $(srctree)/scripts/package/builddeb
 
 clean-dirs += $(objtree)/debian/
index 7edd4a095902dc83fe36638cb3343b1808af2ae8..6edb29f2b4a6c8aa056a748168a70583897a9d3c 100644 (file)
@@ -41,7 +41,7 @@ else
 fi
 
 if grep -q '^CONFIG_MODULES=y' .config ; then
-       INSTALL_MOD_PATH="$tmpdir" make modules_install
+       INSTALL_MOD_PATH="$tmpdir" make KBUILD_SRC= modules_install
        if [ "$ARCH" == "um" ] ; then
                mv "$tmpdir/lib/modules/$version"/* "$tmpdir/usr/lib/uml/modules/$version/"
                rmdir "$tmpdir/lib/modules/$version"