Skip to content

Commit 6148a47

Browse files
committed
Merge branch 'rc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6
* 'rc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6: deb-pkg: Fix building outside of source tree (O=...). deb-pkg: Use $SRCARCH for include path
2 parents d3d373e + 0f54088 commit 6148a47

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎scripts/package/builddeb‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,12 @@ EOF
238238
fi
239239

240240
# Build header package
241-
find . -name Makefile -o -name Kconfig\* -o -name \*.pl > /tmp/files$$
242-
find arch/x86/include include scripts -type f >> /tmp/files$$
241+
(cd $srctree; find . -name Makefile -o -name Kconfig\* -o -name \*.pl > /tmp/files$$)
242+
(cd $srctree; find arch/$SRCARCH/include include scripts -type f >> /tmp/files$$)
243243
(cd $objtree; find .config Module.symvers include scripts -type f >> /tmp/objfiles$$)
244244
destdir=$kernel_headers_dir/usr/src/linux-headers-$version
245245
mkdir -p "$destdir"
246-
tar -c -f - -T /tmp/files$$ | (cd $destdir; tar -xf -)
246+
(cd $srctree; tar -c -f - -T /tmp/files$$) | (cd $destdir; tar -xf -)
247247
(cd $objtree; tar -c -f - -T /tmp/objfiles$$) | (cd $destdir; tar -xf -)
248248
rm -f /tmp/files$$ /tmp/objfiles$$
249249
arch=$(dpkg --print-architecture)

0 commit comments

Comments
 (0)