cross-i686-linux-musl: install linux API headers before musl to DESTDIR.

... otherwise some musl provided headers (scsi/sg.h) might be removed
by this without any apparent reason.
This commit is contained in:
Juan RP 2014-02-10 15:57:43 +01:00
parent 1a69b79774
commit f75780a5f1

View file

@ -9,7 +9,7 @@ _triplet=i686-linux-musl
_sysroot="/usr/${_triplet}"
pkgname=cross-${_triplet}
version=0.4
version=0.5
revision=1
short_desc="Cross toolchain for the ${_triplet} target"
maintainer="Juan RP <xtraeme@gmail.org>"
@ -176,6 +176,12 @@ do_install() {
fi
done
# install linux API headers for x86
cd ${wrksrc}/linux-${_linux_version}
make ARCH=x86 INSTALL_HDR_PATH=${DESTDIR}/${_sysroot}/usr headers_install
rm -f $(find ${DESTDIR}/${_sysroot}/usr/include -name .install -or -name ..install.cmd)
rm -rf ${DESTDIR}/${_sysroot}/usr/include/drm
# install cross binutils
cd ${wrksrc}/binutils-build
make DESTDIR=${DESTDIR} install
@ -196,12 +202,6 @@ do_install() {
cd ${DESTDIR}/${_sysroot}/usr/lib
ln -sf libc.so ld-musl-i386.so.1
# install linux API headers for x86
cd ${wrksrc}/linux-${_linux_version}
make ARCH=x86 INSTALL_HDR_PATH=${DESTDIR}/${_sysroot}/usr headers_install
rm -f $(find ${DESTDIR}/${_sysroot}/usr/include -name .install -or -name ..install.cmd)
rm -rf ${DESTDIR}/${_sysroot}/usr/include/drm
# Move files to /usr/lib (lib64).
if [ -d ${DESTDIR}/${_sysroot}/usr/lib64 ]; then
mv ${DESTDIR}/${_sysroot}/usr/lib64/* ${DESTDIR}/${_sysroot}/usr/lib/