* [PATCH] user-specified temporary directory for deb-pkg
@ 2012-04-16 12:39 Frank Kingswood
2012-04-23 18:59 ` Michal Marek
0 siblings, 1 reply; 3+ messages in thread
From: Frank Kingswood @ 2012-04-16 12:39 UTC (permalink / raw)
To: linux-kbuild
Hi,
The Debian package build can be very slow when running against a slow NFS
server. This patch allows the user to set the BUILDTMP environment variable
to move these temporaries somewhere local.
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index f6cbc3d..2f9d2ee 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -74,10 +74,20 @@ if [ -n "$KDEB_PKGVERSION" ]; then
else
packageversion=$version-$revision
fi
-tmpdir="$objtree/debian/tmp"
-fwdir="$objtree/debian/fwtmp"
-kernel_headers_dir="$objtree/debian/hdrtmp"
-libc_headers_dir="$objtree/debian/headertmp"
+
+if [ -n "$BUILDTMP" ] ; then
+ mkdir -p "$BUILDTMP/debian"
+ tmpdir="$BUILDTMP/debian/tmp"
+ fwdir="$BUILDTMP/debian/fwtmp"
+ kernel_headers_dir="$BUILDTMP/debian/hdrtmp"
+ libc_headers_dir="$BUILDTMP/debian/headertmp"
+else
+ tmpdir="$objtree/debian/tmp"
+ fwdir="$objtree/debian/fwtmp"
+ kernel_headers_dir="$objtree/debian/hdrtmp"
+ libc_headers_dir="$objtree/debian/headertmp"
+fi
+
packagename=linux-image-$version
fwpackagename=linux-firmware-image
kernel_headers_packagename=linux-headers-$version
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] user-specified temporary directory for deb-pkg
2012-04-16 12:39 [PATCH] user-specified temporary directory for deb-pkg Frank Kingswood
@ 2012-04-23 18:59 ` Michal Marek
2012-04-24 7:33 ` Frank A. Kingswood
0 siblings, 1 reply; 3+ messages in thread
From: Michal Marek @ 2012-04-23 18:59 UTC (permalink / raw)
To: Frank Kingswood; +Cc: linux-kbuild
Dne 16.4.2012 14:39, Frank Kingswood napsal(a):
> Hi,
>
> The Debian package build can be very slow when running against a slow
> NFS server. This patch allows the user to set the BUILDTMP environment
> variable to move these temporaries somewhere local.
The user can simply use make O=/some/directory .....
Michal
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] user-specified temporary directory for deb-pkg
2012-04-23 18:59 ` Michal Marek
@ 2012-04-24 7:33 ` Frank A. Kingswood
0 siblings, 0 replies; 3+ messages in thread
From: Frank A. Kingswood @ 2012-04-24 7:33 UTC (permalink / raw)
To: linux-kbuild
On 23/04/12 19:59, Michal Marek wrote:
> Dne 16.4.2012 14:39, Frank Kingswood napsal(a):
>> The Debian package build can be very slow when running against a slow
>> NFS server. This patch allows the user to set the BUILDTMP environment
>> variable to move these temporaries somewhere local.
>>
>> The user can simply use make O=/some/directory .....
Thanks for the follow-up.
That's not the same thing. Building in-place is fine, I only want the
deb-pkg temporaries in RAM disk.
If I use "make O=/dev/shm/somewhere/" then the whole tree is re-built
into the new empty directory (as well as requiring me to copy over the
.config).
Frank
--
------------------------------------------------------------------------
Frank A. Kingswood frank@kingswood-consulting.co.uk
Cambridge, United Kingdom +44-7545-209 100
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-24 7:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-16 12:39 [PATCH] user-specified temporary directory for deb-pkg Frank Kingswood
2012-04-23 18:59 ` Michal Marek
2012-04-24 7:33 ` Frank A. Kingswood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox