kbuild: tar-pkg with out-out-tree building
authorJan-Benedict Glaw <jbglaw@lug-owl.de>
Sun, 1 Jan 2006 13:23:47 +0000 (14:23 +0100)
committer <sam@mars.ravnborg.org> <>
Sun, 1 Jan 2006 18:31:30 +0000 (19:31 +0100)
Fix out-of-tree builds for the tar-pkg targets

When I wrote the buildtar script, I didn't even think about
out-of-tree builds because I didn't use these back then. This patch
throughoutly uses ${objtree} instead of `pwd`.

Also, the kernel version is no longer manually built. Instead, it will
properly use $KERNELRELEASE .  Installing modules is only done if
CONFIG_MODULES is set.

Signed-off-by: Jan-Benedict Glaw <jbglaw@lug-owl.de>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/package/Makefile
scripts/package/buildtar

index f3e7e8e..c201ef0 100644 (file)
@@ -84,7 +84,7 @@ clean-dirs += $(objtree)/debian/
 # ---------------------------------------------------------------------------
 .PHONY: tar%pkg
 tar%pkg:
-       $(MAKE)
+       $(MAKE) KBUILD_SRC=
        $(CONFIG_SHELL) $(srctree)/scripts/package/buildtar $@
 
 clean-dirs += $(objtree)/tar-install/
Simple merge