mirror of https://gitee.com/openkylin/linux.git
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
This commit is contained in:
commit
6148a47ac3
|
@ -238,12 +238,12 @@ EOF
|
|||
fi
|
||||
|
||||
# Build header package
|
||||
find . -name Makefile -o -name Kconfig\* -o -name \*.pl > /tmp/files$$
|
||||
find arch/x86/include include scripts -type f >> /tmp/files$$
|
||||
(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$$)
|
||||
destdir=$kernel_headers_dir/usr/src/linux-headers-$version
|
||||
mkdir -p "$destdir"
|
||||
tar -c -f - -T /tmp/files$$ | (cd $destdir; tar -xf -)
|
||||
(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$$
|
||||
arch=$(dpkg --print-architecture)
|
||||
|
|
Loading…
Reference in New Issue