From 09dbbd5f9664d272ba97a6e59c5976e1f0987f5f Mon Sep 17 00:00:00 2001 From: Dave Higham Date: Wed, 19 Feb 2014 15:09:32 +0000 Subject: [PATCH] alarm/various adding fsl BSP 4.1.0 set --- alarm/firmware-imx/PKGBUILD | 37 ++++ alarm/gpu-viv-bin-mxq6/98-galcore.rules | 43 +++++ alarm/gpu-viv-bin-mxq6/PKGBUILD | 169 ++++++++++++++++++ alarm/gpu-viv-bin-mxq6/egl.pc | 12 ++ alarm/gpu-viv-bin-mxq6/egl_x11.pc | 12 ++ alarm/gpu-viv-bin-mxq6/gc_wayland_protocol.pc | 10 ++ alarm/gpu-viv-bin-mxq6/glesv1_cm.pc | 12 ++ alarm/gpu-viv-bin-mxq6/glesv1_cm_x11.pc | 12 ++ alarm/gpu-viv-bin-mxq6/glesv2.pc | 12 ++ alarm/gpu-viv-bin-mxq6/glesv2_x11.pc | 12 ++ alarm/gpu-viv-bin-mxq6/vg.pc | 12 ++ alarm/gpu-viv-bin-mxq6/vg_x11.pc | 12 ++ alarm/gpu-viv-bin-mxq6/wayland-egl.pc | 10 ++ alarm/gpu-viv-bin-mxq6/wayland-viv.pc | 10 ++ alarm/imx-vpu/99-mxc-vpu.rules | 1 + alarm/imx-vpu/PKGBUILD | 47 +++++ alarm/libcec-imx6/PKGBUILD | 56 ++++++ alarm/libfslvpuwrap/PKGBUILD | 43 +++++ 18 files changed, 522 insertions(+) create mode 100644 alarm/firmware-imx/PKGBUILD create mode 100644 alarm/gpu-viv-bin-mxq6/98-galcore.rules create mode 100644 alarm/gpu-viv-bin-mxq6/PKGBUILD create mode 100644 alarm/gpu-viv-bin-mxq6/egl.pc create mode 100644 alarm/gpu-viv-bin-mxq6/egl_x11.pc create mode 100644 alarm/gpu-viv-bin-mxq6/gc_wayland_protocol.pc create mode 100644 alarm/gpu-viv-bin-mxq6/glesv1_cm.pc create mode 100644 alarm/gpu-viv-bin-mxq6/glesv1_cm_x11.pc create mode 100644 alarm/gpu-viv-bin-mxq6/glesv2.pc create mode 100644 alarm/gpu-viv-bin-mxq6/glesv2_x11.pc create mode 100644 alarm/gpu-viv-bin-mxq6/vg.pc create mode 100644 alarm/gpu-viv-bin-mxq6/vg_x11.pc create mode 100644 alarm/gpu-viv-bin-mxq6/wayland-egl.pc create mode 100644 alarm/gpu-viv-bin-mxq6/wayland-viv.pc create mode 100644 alarm/imx-vpu/99-mxc-vpu.rules create mode 100644 alarm/imx-vpu/PKGBUILD create mode 100644 alarm/libcec-imx6/PKGBUILD create mode 100644 alarm/libfslvpuwrap/PKGBUILD diff --git a/alarm/firmware-imx/PKGBUILD b/alarm/firmware-imx/PKGBUILD new file mode 100644 index 000000000..bae65e7c0 --- /dev/null +++ b/alarm/firmware-imx/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: CruX +# Contributor: pepedog at archlinuxarm dot com + +buildarch=4 +pkgname=firmware-imx +pkgver=3.5.7_1.0.0 +_pkgver=${pkgver/_/-} +pkgrel=1 +pkgdesc="Freescale proprietary firmware for i.MX6 SoC" +url="https://community.freescale.com/docs/DOC-95560" +arch=('armv7h') +license=('proprietay') +source=("http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/${pkgname}-${_pkgver}.bin") +md5sums=('7285345d99e1064bdbad113e3d9b8f40') + +prepare() { + cd "${srcdir}" + #chmod for execution, library is packed as binary to accept EULA + chmod +x ${pkgname}-${_pkgver}.bin + ./${pkgname}-${_pkgver}.bin --force --auto-accept + sed -n '/EOEULA/,/EOEULA/p' ${pkgname}-${_pkgver}.bin | grep -v EOEULA > LICENSE.$pkgname +} + +package() { + #cd "${pkgdir}" + #ls -l + #ls -l "${srcdir}/${pkgname}-${_pkgver}" + mkdir -p "${pkgdir}/lib/firmware/vpu" + cp -rv "${srcdir}/${pkgname}-${_pkgver}/firmware/vpu/"* "${pkgdir}/lib/firmware/vpu" + + mkdir -p "${pkgdir}/opt/fsl/licenses" + cp "${srcdir}/LICENSE.$pkgname" "$pkgdir/opt/fsl/licenses" + mkdir -p "${pkgdir}/etc/ld.so.conf.d" + echo "/opt/fsl/lib" > "${pkgdir}/etc/ld.so.conf.d/$pkgname.conf" +} + +# vim:set ts=2 sw=2 et: diff --git a/alarm/gpu-viv-bin-mxq6/98-galcore.rules b/alarm/gpu-viv-bin-mxq6/98-galcore.rules new file mode 100644 index 000000000..fdebead60 --- /dev/null +++ b/alarm/gpu-viv-bin-mxq6/98-galcore.rules @@ -0,0 +1,43 @@ +# Create symlinks for i.mx keypads and touchscreens +SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name}=="mxckpd", SYMLINK+="input/keyboard0" +SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name}=="mxc_ts", SYMLINK+="input/ts0" +SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name}=="imx_adc_ts", SYMLINK+="input/ts0" +SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name}=="mpr084", SYMLINK+="input/keyboard0" +SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name}=="tsc2007", SYMLINK+="input/ts0" +SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name} =="STMP3XXX touchscreen", SYMLINK+="input/ts0" +SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name} =="MXS touchscreen", SYMLINK+="input/ts0" +SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name} =="HannStar P1003 Touchscreen", SYMLINK+="input/ts0" +SUBSYSTEM=="input" KERNEL=="event*" ATTRS{name} =="eGalax Touch Screen", SYMLINK+="input/ts0" + +KERNEL=="event*", NAME="input/%k", MODE="666" + + +# The long class name gets cut off to be mc13783_connectiv in +# /sys/class/mc13783_connectivity/mc13783_connectivit +KERNEL=="mc13783_connectiv*", NAME="mc13783_connectivity" +# Anyone has readonly permission to IIM device file +KERNEL=="mxc_iim", MODE="0666", SYMLINK+="mxc_mem" +KERNEL=="mxs_viim", MODE="0666", SYMLINK+="mxc_mem" +KERNEL=="mxc_ipu", MODE="0666" +KERNEL=="fb0", MODE="0666" +KERNEL=="fb1", MODE="0666" +KERNEL=="fb2", MODE="0666" +KERNEL=="mxc_vpu", MODE="0666" +SUBSYSTEM=="video", MODE="0666" +KERNEL=="gsl_kmod", MODE="0666" +KERNEL=="galcore", MODE="0666" +KERNEL=="mxc_galcore", MODE="0666" +KERNEL=="mxc_asrc", MODE="0666" +SUBSYSTEM=="video", MODE="0666" +SUBSYSTEM=="sound", MODE="0666" +SUBSYSTEM=="video4linux", MODE="0666" + +# ALSA devices +SUBSYSTEM=="sound", GROUP="audio" +SUBSYSTEM=="snd", GROUP="audio" +KERNEL=="control*", NAME="snd/%k", MODE="0666" +KERNEL=="pcm*", NAME="snd/%k", MODE="0666" +KERNEL=="timer", NAME="snd/%k", MODE="0666" + +# Set bluetooth power up +ACTION=="add", KERNEL=="hci0", RUN+="/usr/bin/hciconfig hci0 up" diff --git a/alarm/gpu-viv-bin-mxq6/PKGBUILD b/alarm/gpu-viv-bin-mxq6/PKGBUILD new file mode 100644 index 000000000..8147cecce --- /dev/null +++ b/alarm/gpu-viv-bin-mxq6/PKGBUILD @@ -0,0 +1,169 @@ +# Maintainer: RaumZeit +# Contributor: pepedog at archlinuxarm dot com + +buildarch=4 +pkgbase=gpu-viv-bin-mx6q +pkgver=3.10.9_1.0.0 +_pkgver=${pkgver//_/-}-hfp +pkgrel=1 +pkgdesc="Freescale proprietary Vivante GPU drivers for i.MX6 Quad SoC" + +# filesystem prefix for the include files and license +_install_prefix=/opt/fsl +# filesystem prefix for the libraries +_install_exec_prefix=/opt/fsl +# filesystem prefix for the samples +_install_samples_prefix=/opt/fsl +url="https://community.freescale.com/docs/DOC-95560" +arch=('armv7h') +license=('proprietary') +#depends=('fsl-bsp-kernel=4.1.0' 'fsl-bsp-kernel-headers=4.1.0') +source=("http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/${pkgbase}-${_pkgver}.bin" + "98-galcore.rules" + "egl.pc" + "egl_x11.pc" + "gc_wayland_protocol.pc" + "glesv1_cm.pc" + "glesv1_cm_x11.pc" + "glesv2.pc" + "glesv2_x11.pc" + "vg.pc" + "vg_x11.pc" + "wayland-egl.pc" + "wayland-viv.pc") +md5sums=('52f5ebbb6a9b5d0eafdb952246de584e' + 'ab0afbd747e802f0bc95d31494d3b559' + 'd56637776b8fa659d7b84f45d006dad2' + '24ea66e2601cd3a1729c16e7e4052425' + '9a815a054d9a2b94e78addd816fbb8a8' + '16055b2e429354d117b9ea5c9d9b29d2' + '7ce072e28e78fe9c67cb45d8ef447d85' + '45982ac2514c8eb08105f8af427ce5eb' + '7bb4eb0db280e9159726adafc8f95d31' + '101994c11d92ff4bcd86ea25f3afa0f0' + '36962675b16862e33f6d250865b0d6ba' + '9e0ce33723aac9e9829a9322e38f6e32' + '8994b882eaad8ee95ccb759505bdcf58') + +prepare() { + cd "${srcdir}" + #chmod for execution, library is packed as binary to accept EULA + chmod +x ${pkgbase}-${_pkgver}.bin + ./${pkgbase}-${_pkgver}.bin --force --auto-accept + sed -n '/EOEULA/,/EOEULA/p' ${pkgbase}-${_pkgver}.bin | grep -v EOEULA > LICENSE.$pkgbase + + # adopt the prefix and exec_prefix variables in .pc files + sed -i 's#^prefix=/usr#prefix='${_install_prefix}'#' *.pc + sed -i 's#^exec_prefix=/usr#exec_prefix='${_install_exec_prefix}'#' *.pc +} + +_package_common() { + provides=('gpu-viv-bin-mx6q=4.1.0' 'libegl' 'libgles' 'libgl' 'mesa' 'mesa-libgl') + conflicts=('gpu-viv-bin-mx6q') + cd "${pkgbase}-${_pkgver}" + mkdir -p "${pkgdir}${_install_prefix}/include" "${pkgdir}${_install_exec_prefix}/lib" + cp -r usr/include/* "${pkgdir}${_install_prefix}/include" + cd usr/lib + cp -r libCLC* libVDK* *GLES* libGL.* libGLSLC* libOpenCL* libOpenVG_* "${pkgdir}${_install_exec_prefix}/lib" + mkdir -p "${pkgdir}${_install_prefix}/licenses" + cp "${srcdir}/LICENSE.$pkgbase" "$pkgdir${_install_prefix}/licenses" + mkdir -p "${pkgdir}/etc/ld.so.conf.d" + echo "${_install_prefix}/lib" > "${pkgdir}/etc/ld.so.conf.d/$pkgbase.conf" + + install -D -m0644 "${srcdir}/98-galcore.rules" "${pkgdir}/usr/lib/udev/rules.d/98-galcore.rules" + +} + +_package_common_post() { + + cd "${pkgdir}${_install_exec_prefix}/lib/" + + mv libGL.so.1.2 libGL.so.1.2.0 + ln -sf libGL.so.1.2.0 libGL.so.1.2 + ln -sf libGL.so.1.2.0 libGL.so + mv libEGL-${backend}.so libEGL.so.1.0 + ln -sf libEGL.so.1.0 libEGL.so.1 + ln -sf libEGL.so.1.0 libEGL.so + mv libGAL-${backend}.so libGAL.so + mv libVIVANTE-${backend}.so libVIVANTE.so + + ln -sf libOpenVG_3D.so libOpenVG.so + + for backend in wl x11 fb dfb; do + find "${pkgdir}${_install_exec_prefix}/lib/" -name "*-$backend.so" -exec rm '{}' ';' + done + + find "${pkgdir}${_install_exec_prefix}/lib/" -type f -exec chmod 644 {} \; + find "${pkgdir}${_install_prefix}/include/" -type f -exec chmod 644 {} \; +} + +package_gpu-viv-bin-mx6q-fb() { + backend=fb + _package_common + cp -r *-fb* "${pkgdir}${_install_exec_prefix}/lib" + + install -d "${pkgdir}/usr/lib/pkgconfig" + install -m0644 "${srcdir}/egl.pc" "${pkgdir}/usr/lib/pkgconfig/egl.pc" + install -m0644 "${srcdir}/glesv1_cm.pc" "${pkgdir}/usr/lib/pkgconfig/glesv1_cm.pc" + install -m0644 "${srcdir}/glesv2.pc" "${pkgdir}/usr/lib/pkgconfig/glesv2.pc" + install -m0644 "${srcdir}/vg.pc" "${pkgdir}/usr/lib/pkgconfig/vg.pc" + + + _package_common_post +} + + +package_gpu-viv-bin-mx6q-x11() { + backend=x11 + _package_common + cp -r dri "${pkgdir}${_install_exec_prefix}/lib" + + cp -r *-x11* "${pkgdir}${_install_exec_prefix}/lib" + + install -d "${pkgdir}/usr/lib/pkgconfig" + install -m0644 "${srcdir}/egl_x11.pc" "${pkgdir}/usr/lib/pkgconfig/egl.pc" + install -m0644 "${srcdir}/glesv1_cm_x11.pc" "${pkgdir}/usr/lib/pkgconfig/glesv1_cm.pc" + install -m0644 "${srcdir}/glesv2_x11.pc" "${pkgdir}/usr/lib/pkgconfig/glesv2.pc" + install -m0644 "${srcdir}/vg_x11.pc" "${pkgdir}/usr/lib/pkgconfig/vg.pc" + +# + _package_common_post +} + +package_gpu-viv-bin-mx6q-wl() { + backend=wl + _package_common + cp -r *-wl* "${pkgdir}${_install_exec_prefix}/lib" + cp -r *wayland* "${pkgdir}${_install_exec_prefix}/lib" + + install -d "${pkgdir}/usr/lib/pkgconfig" + install -m0644 "${srcdir}/egl_x11.pc" "${pkgdir}/usr/lib/pkgconfig/egl.pc" + install -m0644 "${srcdir}/glesv1_cm_x11.pc" "${pkgdir}/usr/lib/pkgconfig/glesv1_cm.pc" + install -m0644 "${srcdir}/glesv2_x11.pc" "${pkgdir}/usr/lib/pkgconfig/glesv2.pc" + install -m0644 "${srcdir}/vg_x11.pc" "${pkgdir}/usr/lib/pkgconfig/vg.pc" + install -m0644 "${srcdir}/gc_wayland_protocol.pc" "${pkgdir}/usr/lib/pkgconfig/gc_wayland_protocol.pc" + install -m0644 "${srcdir}/wayland-egl.pc" "${pkgdir}/usr/lib/pkgconfig/wayland-egl.pc" + install -m0644 "${srcdir}/wayland-viv.pc" "${pkgdir}/usr/lib/pkgconfig/wayland-viv.pc" + + _package_common_post +} + + +package_gpu-viv-bin-mx6q-dfb() { + backend=dfb + _package_common + cp -r *-dfb* directfb* "${pkgdir}${_install_exec_prefix}/lib" + _package_common_post +} + + +package_gpu-viv-bin-mx6q-samples() { + cd "${pkgbase}-${_pkgver}" + mkdir -p "${pkgdir}${_install_samples_prefix}/viv_samples" + cp -r opt/viv_samples/* "${pkgdir}${_install_samples_prefix}/viv_samples" +} + + +pkgname=("${pkgbase}-x11" "${pkgbase}-fb" "${pkgbase}-dfb" "${pkgbase}-wl" "${pkgbase}-samples") + +# vim:set ts=2 sw=2 et: diff --git a/alarm/gpu-viv-bin-mxq6/egl.pc b/alarm/gpu-viv-bin-mxq6/egl.pc new file mode 100644 index 000000000..5825c541e --- /dev/null +++ b/alarm/gpu-viv-bin-mxq6/egl.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: egl +Description: Vivante EGL library +Requires.private: +Version: 8.0 +Libs: -L${libdir} -lEGL +Libs.private: -lm -lpthread -ldl +Cflags: -I${includedir} -DLINUX diff --git a/alarm/gpu-viv-bin-mxq6/egl_x11.pc b/alarm/gpu-viv-bin-mxq6/egl_x11.pc new file mode 100644 index 000000000..d5bfbb163 --- /dev/null +++ b/alarm/gpu-viv-bin-mxq6/egl_x11.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: egl +Description: Vivante EGL library +Requires.private: libdrm x11 xext xdamage xfixes xcb +Version: 8.0 +Libs: -L${libdir} -lEGL +Libs.private: -lm -lpthread -ldl +Cflags: -I${includedir} -DLINUX diff --git a/alarm/gpu-viv-bin-mxq6/gc_wayland_protocol.pc b/alarm/gpu-viv-bin-mxq6/gc_wayland_protocol.pc new file mode 100644 index 000000000..3d10d72e9 --- /dev/null +++ b/alarm/gpu-viv-bin-mxq6/gc_wayland_protocol.pc @@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: gc_wayland_protocol +Description: Vivante Wayland Protocol Extension Library +Version: 0.1 +Cflags: -I${includedir} +Libs: -L${libdir} -lgc_wayland_protocol diff --git a/alarm/gpu-viv-bin-mxq6/glesv1_cm.pc b/alarm/gpu-viv-bin-mxq6/glesv1_cm.pc new file mode 100644 index 000000000..3d5d937da --- /dev/null +++ b/alarm/gpu-viv-bin-mxq6/glesv1_cm.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: glesv1_cm +Description: Vivante OpenGL ES 1.1 CM library +Requires.private: +Version: 8.0 +Libs: -L${libdir} -lGLESv1_CM -lEGL -lGAL +Libs.private: -lm -lpthread -ldl +Cflags: -I${includedir} diff --git a/alarm/gpu-viv-bin-mxq6/glesv1_cm_x11.pc b/alarm/gpu-viv-bin-mxq6/glesv1_cm_x11.pc new file mode 100644 index 000000000..d68d2a13e --- /dev/null +++ b/alarm/gpu-viv-bin-mxq6/glesv1_cm_x11.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: glesv1_cm +Description: Vivante OpenGL ES 1.1 CM library +Requires.private: libdrm x11 xext xdamage xfixes xcb +Version: 8.0 +Libs: -L${libdir} -lGLESv1_CM -lEGL -lGAL +Libs.private: -lm -lpthread -ldl +Cflags: -I${includedir} diff --git a/alarm/gpu-viv-bin-mxq6/glesv2.pc b/alarm/gpu-viv-bin-mxq6/glesv2.pc new file mode 100644 index 000000000..7dc4dfcf7 --- /dev/null +++ b/alarm/gpu-viv-bin-mxq6/glesv2.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: glesv2 +Description: Vivante OpenGL ES 2.0 library +Requires.private: +Version: 8.0 +Libs: -L${libdir} -lGLESv2 -lEGL -lGAL +Libs.private: -lpthread -lrt +Cflags: -I${includedir} diff --git a/alarm/gpu-viv-bin-mxq6/glesv2_x11.pc b/alarm/gpu-viv-bin-mxq6/glesv2_x11.pc new file mode 100644 index 000000000..f95e8df3e --- /dev/null +++ b/alarm/gpu-viv-bin-mxq6/glesv2_x11.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: glesv2 +Description: Vivante OpenGL ES 2.0 library +Requires.private: libdrm x11 xext xdamage xfixes xcb +Version: 8.0 +Libs: -L${libdir} -lGLESv2 -lEGL -lGAL +Libs.private: -lpthread -lrt +Cflags: -I${includedir} diff --git a/alarm/gpu-viv-bin-mxq6/vg.pc b/alarm/gpu-viv-bin-mxq6/vg.pc new file mode 100644 index 000000000..e7eaacb03 --- /dev/null +++ b/alarm/gpu-viv-bin-mxq6/vg.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: vg +Description: Vivante OpenVG 1.1 library +Requires.private: +Version: 8.0 +Libs: -L${libdir} -lOpenVG -lEGL -lGAL +Libs.private: -lpthread -lrt +Cflags: -I${includedir} diff --git a/alarm/gpu-viv-bin-mxq6/vg_x11.pc b/alarm/gpu-viv-bin-mxq6/vg_x11.pc new file mode 100644 index 000000000..c5e0876b6 --- /dev/null +++ b/alarm/gpu-viv-bin-mxq6/vg_x11.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: vg +Description: Vivante OpenVG 1.1 library +Requires.private: libdrm x11 xext xdamage xfixes xcb +Version: 8.0 +Libs: -L${libdir} -lOpenVG -lEGL -lGAL +Libs.private: -lpthread -lrt +Cflags: -I${includedir} diff --git a/alarm/gpu-viv-bin-mxq6/wayland-egl.pc b/alarm/gpu-viv-bin-mxq6/wayland-egl.pc new file mode 100644 index 000000000..8072ac677 --- /dev/null +++ b/alarm/gpu-viv-bin-mxq6/wayland-egl.pc @@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: wayland-egl +Description: Bind the driver EGL to the Wayland API +Version: 1.0.0 +Libs: -L${libdir} -lEGL +Cflags: -I${includedir} diff --git a/alarm/gpu-viv-bin-mxq6/wayland-viv.pc b/alarm/gpu-viv-bin-mxq6/wayland-viv.pc new file mode 100644 index 000000000..ca7a967c7 --- /dev/null +++ b/alarm/gpu-viv-bin-mxq6/wayland-viv.pc @@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: Wayland Vivante Lib +Description: Wayland server side library for Vivante's EGL driver +Version: 0.1 +Cflags: -I${includedir}/wayland-viv +Libs: -L${libdir} -lwayland-viv diff --git a/alarm/imx-vpu/99-mxc-vpu.rules b/alarm/imx-vpu/99-mxc-vpu.rules new file mode 100644 index 000000000..fe5770a00 --- /dev/null +++ b/alarm/imx-vpu/99-mxc-vpu.rules @@ -0,0 +1 @@ +KERNEL=="mxc_vpu", SUBSYSTEM=="mxc_vpu", GROUP="video", MODE="0660" diff --git a/alarm/imx-vpu/PKGBUILD b/alarm/imx-vpu/PKGBUILD new file mode 100644 index 000000000..4d9624c9c --- /dev/null +++ b/alarm/imx-vpu/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: CruX +# Contributor: pepedog at archlinuxarm dot com + +buildarch=4 +pkgname=imx-vpu +pkgver=3.10.9_1.0.0 +_pkgver=${pkgver/_/-} +pkgrel=1 +pkgdesc="Freescale proprietary extensions for i.MX6 SoC" +url="https://community.freescale.com/docs/DOC-95560" +arch=('armv7h') +license=('proprietary') +source=("http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/${pkgname}-${_pkgver}.bin" '99-mxc-vpu.rules') +md5sums=('61331c9ed2d4c1b3aeab9c35fd034ac3' + 'b749d82b96a323d8f914c63c65de9f92') + + +prepare() { + cd "${srcdir}" + #chmod for execution, library is packed as binary to accept EULA + chmod +x ${pkgname}-${_pkgver}.bin + ./${pkgname}-${_pkgver}.bin --force --auto-accept + sed -n '/EOEULA/,/EOEULA/p' ${pkgname}-${_pkgver}.bin | grep -v EOEULA > LICENSE.$pkgname +} + +build() { + cd "${pkgname}-${_pkgver}" + export PLATFORM="IMX6Q" + make all +} + +package() { + cd "${pkgname}-${_pkgver}" + make DEST_DIR="${pkgdir}" install + cd "${pkgdir}" + mkdir -p opt/fsl/include opt/fsl/lib + mv usr/include/* opt/fsl/include/ + mv usr/lib/* opt/fsl/lib + rm -r usr + + mkdir -p "${pkgdir}/etc/ld.so.conf.d" + echo "/opt/fsl/lib" > "${pkgdir}/etc/ld.so.conf.d/$pkgname.conf" + + install -D -m0644 "${srcdir}/99-mxc-vpu.rules" "${pkgdir}/usr/lib/udev/rules.d/99-mxc-vpu.rules" +} + +# vim:set ts=2 sw=2 et: diff --git a/alarm/libcec-imx6/PKGBUILD b/alarm/libcec-imx6/PKGBUILD new file mode 100644 index 000000000..43dfaa48c --- /dev/null +++ b/alarm/libcec-imx6/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer CruX +# Contributor: pepedog at archlinuxarm dot com + +buildarch=4 + +pkgname=libcec-imx6 +pkgver=13.20130928 +pkgrel=1 +pkgdesc="Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter with support for i.MX6 based devices" +arch=('armv7h') +url="https://github.com/Pulse-Eight/libcec" +license=('GPL') +depends=('udev' 'lockdev') +conflicts=('libcec') +provides=('libcec') + + +# libcec modified by Stephan "wolfgar" Rafin +_gitname="libcec" +_gitroot="git://github.com/wolfgar" +_gitbranch="master" + +prepare() { + cd "${srcdir}" + + + msg2 "Connecting to GIT server..." + + if [[ -d "${_gitname}" ]]; then + cd "${_gitname}" && git pull origin "$_gitbranch" + msg2 "The local files are updated." + else + git clone --branch ${_gitbranch} --depth 1 "${_gitroot}/${_gitname}" + fi + + msg2 "GIT checkout done or server timeout." +} + +build() { + cd "${srcdir}/${_gitname}" + + autoreconf -vif + + # Fix this as soon as its fixed in upstream + export CXXFLAGS="-fpermissive" + + ./configure --prefix=/usr --enable-imx6 + + make +} + +package() { + cd "${srcdir}/${_gitname}" + # Running make install + make DESTDIR="${pkgdir}" install +} diff --git a/alarm/libfslvpuwrap/PKGBUILD b/alarm/libfslvpuwrap/PKGBUILD new file mode 100644 index 000000000..89ae60e92 --- /dev/null +++ b/alarm/libfslvpuwrap/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: CruX +# Contributor: pepedog at archlinuxarm dot com + +buildarch=4 +pkgname=libfslvpuwrap +pkgver=3.10.9_1.0.0 +_pkgver=1.0.45 +pkgrel=1 +pkgdesc="Wrapper library for the freescale proprietary VPU extensions" +url="https://community.freescale.com/docs/DOC-95560" +arch=('armv7h') +license=('proprietary') +depends=("imx-vpu=$pkgver") +source=("http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/${pkgname}-${_pkgver}.bin") +md5sums=('99d866c979c8a798c843f32632293f14') + +prepare() { + cd "${srcdir}" + #chmod for execution, library is packed as binary to accept EULA + chmod +x ${pkgname}-${_pkgver}.bin + ./${pkgname}-${_pkgver}.bin --force --auto-accept + sed -n '/EOEULA/,/EOEULA/p' ${pkgname}-${_pkgver}.bin | grep -v EOEULA > LICENSE.$pkgname +} + +build() { + cd "${pkgname}-${_pkgver}" + export CFLAGS="$CFLAGS -O2 -I/opt/fsl/include" + export CPPFLAGS="$CPPFLAGS -O2 -I/opt/fsl/include" + export LDFLAGS="$LDFLAGS -L/opt/fsl/lib" + ./autogen.sh --prefix=/opt/fsl + make all +} + +package() { + cd "${pkgname}-${_pkgver}" + make DESTDIR=${pkgdir} install + mkdir -p "${pkgdir}/opt/fsl/licenses" + cp "${srcdir}/LICENSE.$pkgname" "$pkgdir/opt/fsl/licenses" + mkdir -p "${pkgdir}/etc/ld.so.conf.d" + echo "/opt/fsl/lib" > "${pkgdir}/etc/ld.so.conf.d/$pkgname.conf" +} + +# vim:set ts=2 sw=2 et: