alarm/xbmc-imx fixed build

alarm/xbmc-imx add dependency on linux-headers-imx6, provided by linux-imx6-cubox, linux-imx6-cubox-dt and linux-imx6-wandboard-dt
core/linux-imx* added linux-headers-imx6 to provides, bumped PKGREL
This commit is contained in:
CrawX 2014-03-29 16:58:59 +01:00
parent ad352a9c43
commit 5ded1ad287
4 changed files with 21 additions and 18 deletions

View file

@ -12,7 +12,7 @@ pkgdesc="A software media player and entertainment hub for digital media for sel
arch=('armv7h')
url="http://xbmc.org"
license=('GPL' 'custom')
depends=('fribidi' 'lzo2' 'smbclient' 'libtiff' 'libpng' 'libcdio' 'yajl' 'libmariadbclient' 'libjpeg-turbo' 'libsamplerate' 'libssh' 'libmicrohttpd' 'sdl_image' 'python2' 'libass' 'libmpeg2' 'libmad' 'libmodplug' 'jasper' 'rtmpdump' 'unzip' 'libbluray' 'libnfs' 'afpfs-ng' 'libshairport' 'avahi' 'bluez-libs' 'tinyxml' 'libplist' 'swig' 'taglib' 'libxslt' 'libfslvpuwrap' 'gpu-viv-bin-mx6q-fb' 'libcec-imx6' 'linux-headers-imx6-cubox' )
depends=('fribidi' 'lzo2' 'smbclient' 'libtiff' 'libpng' 'libcdio' 'yajl' 'libmariadbclient' 'libjpeg-turbo' 'libsamplerate' 'libssh' 'libmicrohttpd' 'sdl_image' 'python2' 'libass' 'libmpeg2' 'libmad' 'libmodplug' 'jasper' 'rtmpdump' 'unzip' 'libbluray' 'libnfs' 'afpfs-ng' 'libshairport' 'avahi' 'bluez-libs' 'tinyxml' 'libplist' 'swig' 'taglib' 'libxslt' 'libfslvpuwrap' 'gpu-viv-bin-mx6q-fb' 'libcec-imx6' 'linux-headers-imx6' )
makedepends=('boost' 'cmake' 'gperf' 'nasm' 'zip' 'udisks' 'upower' 'git' 'autoconf' 'java-runtime-headless')
optdepends=(
'lirc: remote controller support'
@ -69,19 +69,22 @@ build() {
# Bootstrapping XBMC
./bootstrap
_kernel_release="$(pacman -Q linux-headers-imx6-cubox | grep -Eo "[^\ ]+$")"
# dirty: copy headers from kernel as we need those but apart from that want to use the ones in /usr/include
KERNELSRC=/usr/src/linux-${_kernel_release}
mkdir -p linux-includes/include/linux
for f in mxcfb.h mxc_v4l2.h ipu.h; do
cp "${KERNELSRC}/include/linux/${f}" linux-includes/include/linux/
done
# Configuring XBMC
export PYTHON_VERSION=2 # external python v2
INCLUDES="-I${srcdir}/${_gitname}/linux-includes/include -I/opt/fsl/include"
INCLUDES="-I/opt/fsl/include"
# check for cubox-i, copy some headers and add them to the INCLUDES
_kernel_release="$(pacman -Q linux-headers-imx6-cubox | grep -Eo "[^\ ]+$")"
if [[ $? -eq 0 && -n "$_kernel_release" ]]; then
# dirty: copy headers from kernel as we need those but apart from that want to use the ones in /usr/include
KERNELSRC=/usr/src/linux-${_kernel_release}
mkdir -p linux-includes/include/linux
for f in mxcfb.h mxc_v4l2.h ipu.h; do
cp "${KERNELSRC}/include/linux/${f}" linux-includes/include/linux/
done
INCLUDES="$INCLUDES -I${srcdir}/${_gitname}/linux-includes/include"
fi
export CFLAGS="-Ofast -mfloat-abi=hard -mfpu=vfpv3-d16 -mtls-dialect=gnu -march=armv7-a -mtune=cortex-a9 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 $INCLUDES -Wl,-rpath,/opt/fsl/lib -L/opt/fsl/lib"
export CPPFLAGS="-Ofast -mfloat-abi=hard -mfpu=vfpv3-d16 -mtls-dialect=gnu -march=armv7-a -mtune=cortex-a9 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 $INCLUDES -Wl,-rpath,/opt/fsl/lib -L/opt/fsl/lib"
export CXXFLAGS="-Ofast -mfloat-abi=hard -mfpu=vfpv3-d16 -mtls-dialect=gnu -march=armv7-a -mtune=cortex-a9 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 $INCLUDES -Wl,-rpath,/opt/fsl/lib -L/opt/fsl/lib"

View file

@ -15,7 +15,7 @@ _srcname=linux-linaro-stable-mx6-${_commit}
_kernelname=${pkgname#linux}
_basekernel=3.10
pkgver=${_basekernel}.30
pkgrel=10
pkgrel=11
arch=('arm')
url="http://www.kernel.org/"
license=('GPL2')
@ -138,7 +138,7 @@ package_linux-imx6-cubox-dt() {
package_linux-headers-imx6-cubox-dt() {
pkgdesc="Header files and scripts for building modules for linux kernel - i.MX6 cubox-i"
provides=("linux-headers=${pkgver}")
provides=("linux-headers=${pkgver}" "linux-headers-imx6=${pkgver}")
conflicts=('linux-headers-omap' 'linux-headers-trimslice')
install -dm755 "${pkgdir}/usr/lib/modules/${_kernver}"

View file

@ -15,7 +15,7 @@ _srcname=linux-imx6-${_commit}
_kernelname=${pkgname#linux}
_basekernel=3.0
pkgver=${_basekernel}.35
pkgrel=16
pkgrel=17
arch=('arm')
url="http://www.kernel.org/"
license=('GPL2')
@ -140,7 +140,7 @@ package_linux-imx6-cubox() {
package_linux-headers-imx6-cubox() {
pkgdesc="Header files and scripts for building modules for linux kernel - i.MX6 cubox-i"
provides=("linux-headers=${pkgver}")
provides=("linux-headers=${pkgver}" "linux-headers-imx6=${pkgver}")
conflicts=('linux-headers-omap' 'linux-headers-trimslice')
install -dm755 "${pkgdir}/usr/lib/modules/${_kernver}"

View file

@ -9,7 +9,7 @@ _srcname=linux-wandboard_imx_3.10.17_1.0.0_beta
_kernelname=${pkgbase#linux}
_desc="i.MX6 Wandboard"
pkgver=3.10.17
pkgrel=2
pkgrel=3
rcnrel=wand6
arch=('armv7h')
url="http://www.kernel.org/"
@ -119,7 +119,7 @@ _package() {
_package-headers() {
pkgdesc="Header files and scripts for building modules for linux kernel - ${_desc}"
provides=("linux-headers=${pkgver}")
provides=("linux-headers=${pkgver}" "linux-headers-imx6=${pkgver}")
conflicts=('linux-headers-omap' 'linux-headers-trimslice')
install -dm755 "${pkgdir}/usr/lib/modules/${_kernver}"