diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-05-15 19:16:17 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-05-15 19:16:17 -0300 |
commit | 2bb78cec4c286fb8b3056138779e2801e7370425 (patch) | |
tree | 700d7b2f637249da79c8b92d9eb323dbe9946f33 /cross-mips64el-unknown-linux-gnu-linux-api-headers | |
parent | 525be0104660ebcf8773e4cfb83184dde1d18bce (diff) |
cross-mips64el-unknown-linux-gnu-linux-api-headers
Diffstat (limited to 'cross-mips64el-unknown-linux-gnu-linux-api-headers')
-rw-r--r-- | cross-mips64el-unknown-linux-gnu-linux-api-headers/PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/cross-mips64el-unknown-linux-gnu-linux-api-headers/PKGBUILD b/cross-mips64el-unknown-linux-gnu-linux-api-headers/PKGBUILD new file mode 100644 index 0000000..fadd146 --- /dev/null +++ b/cross-mips64el-unknown-linux-gnu-linux-api-headers/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Nicolas Reynolds <fauno@kiwwwi.com.ar> +# + +_pkgname=linux-api-headers +_target=mips64el-unknown-linux-gnu +_sysroot=/usr/lib/cross-${_target} +_KARCH=mips + +pkgname=cross-${_target}-${_pkgname} +pkgver=2.6.38.6 +_basever=2.6.38 +pkgrel=1 +pkgdesc="Kernel headers sanitized for use in userspace for $_target" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/libc" +license=('GPL2') +makedepends=("cross-$_target-gcc1") +source=(http://www.fsfla.org/download/linux-libre/releases/$pkgver-libre/linux-$pkgver-libre.tar.bz2) + +build() { + cd ${srcdir}/linux-${pkgver} + + unset CFLAGS CXXFLAGS + export PATH="${_sysroot}/bin:$PATH" + + make mrproper + make headers_check +} + +package() { + cd ${srcdir}/linux-${pkgver} + make INSTALL_HDR_PATH=${pkgdir}${_sysroot} \ + ARCH=${_KARCH} \ + CROSS_COMPILE=${_target}- headers_install + + # use headers from libdrm + rm -rf ${pkgdir}${_sysroot}/include/drm + + # clean-up unnecessary files generated during install + find ${pkgdir} -name .install -or -name ..install.cmd | xargs rm -f +} +md5sums=('a1765e44f7835a27d29790ed4be58ee7') |