summaryrefslogtreecommitdiffstats
path: root/scripts/package
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2012-02-24 23:53:30 +0100
committerMichal Marek <mmarek@suse.cz>2012-02-24 23:53:34 +0100
commitf86d546bea349d5535738983544fdf16bcf5e6d8 (patch)
tree36930907c9cd3e4a60610c43ff2a8bc1c8c6dd8c /scripts/package
parent65b2576c9d3970e5c19aad5d2b56372ba56186a9 (diff)
parent42f1c01b79d54a00012c553b95fc7fe266d82394 (diff)
downloadop-kernel-dev-f86d546bea349d5535738983544fdf16bcf5e6d8.zip
op-kernel-dev-f86d546bea349d5535738983544fdf16bcf5e6d8.tar.gz
Merge branch 'kbuild/rc-fixes' into kbuild/misc
Reason: Serialize changes to scripts/package/builddeb
Diffstat (limited to 'scripts/package')
-rw-r--r--scripts/package/builddeb12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index f6cbc3d..3c6c0b1 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -238,14 +238,14 @@ EOF
fi
# Build header package
-(cd $srctree; find . -name Makefile -o -name Kconfig\* -o -name \*.pl > /tmp/files$$)
-(cd $srctree; find arch/$SRCARCH/include include scripts -type f >> /tmp/files$$)
-(cd $objtree; find .config Module.symvers include scripts -type f >> /tmp/objfiles$$)
+(cd $srctree; find . -name Makefile -o -name Kconfig\* -o -name \*.pl > "$objtree/debian/hdrsrcfiles")
+(cd $srctree; find arch/$SRCARCH/include include scripts -type f >> "$objtree/debian/hdrsrcfiles")
+(cd $objtree; find .config Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
destdir=$kernel_headers_dir/usr/src/linux-headers-$version
mkdir -p "$destdir"
-(cd $srctree; tar -c -f - -T /tmp/files$$) | (cd $destdir; tar -xf -)
-(cd $objtree; tar -c -f - -T /tmp/objfiles$$) | (cd $destdir; tar -xf -)
-rm -f /tmp/files$$ /tmp/objfiles$$
+(cd $srctree; tar -c -f - -T "$objtree/debian/hdrsrcfiles") | (cd $destdir; tar -xf -)
+(cd $objtree; tar -c -f - -T "$objtree/debian/hdrobjfiles") | (cd $destdir; tar -xf -)
+rm -f "$objtree/debian/hdrsrcfiles" "$objtree/debian/hdrobjfiles"
arch=$(dpkg --print-architecture)
cat <<EOF >> debian/control
OpenPOWER on IntegriCloud