Re: [KBUILD] Bug in make deb-pkg when using seperate source and object directories

From: Ryan Anderson
Date: Sat Mar 19 2005 - 19:29:40 EST


On Mon, Mar 14, 2005 at 11:59:26AM -0800, Ajay Patel wrote:
> I had a similar problem building binrpm-pkg.
> Try following patch. It worked for me.

My problem wasn't actually resolved by this - the make in builddeb still
caused issues.

So, a normal, unified diff form of the patch, fixed up, is attached.

Signed-off-By: Ryan Anderson <ryan@xxxxxxxxxxxxxx>

Index: local-quilt/scripts/package/Makefile
===================================================================
--- local-quilt.orig/scripts/package/Makefile 2005-03-19 19:25:03.000000000 -0500
+++ local-quilt/scripts/package/Makefile 2005-03-19 19:25:06.000000000 -0500
@@ -59,7 +59,7 @@ $(objtree)/binkernel.spec: $(MKSPEC) $(s
$(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: local-quilt/scripts/package/builddeb
===================================================================
--- local-quilt.orig/scripts/package/builddeb 2005-03-19 19:25:03.000000000 -0500
+++ local-quilt/scripts/package/builddeb 2005-03-19 19:25:27.000000000 -0500
@@ -25,7 +25,7 @@ cp .config "$tmpdir/boot/config-$version
cp $KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version"

if grep -q '^CONFIG_MODULES=y' .config ; then
- INSTALL_MOD_PATH="$tmpdir" make modules_install
+ INSTALL_MOD_PATH="$tmpdir" make KBUILD_SRC= modules_install
fi

# Install the maintainer scripts

--

Ryan Anderson
sometimes Pug Majere
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/