1 # Description: Armada 510/Dove Marvell IPP headers and CODECs
2 # URL: http://www.solid-run.com/mw/index.php/Main_Page
3 # Packager: Ryan Mullen, rmmullen at gmail dot com
4 # Maintainer: Ryan Mullen, rmmullen at gmail dot com
5 # Depends on: marvell-libvmeta
10 source=(http://download.solid-run.com/pub/solidrun/cubox/packages/cubox-packages-source/cubox-packages.tar.gz)
14 # Adapted from Arch ALARM marvell-ipp
16 cd packages/marvell-ipp
17 tar xf marvell-ipp_$version-0ubuntu1~ppa10.tar.gz
21 -e "s|^(PATH_GNU_BIN=).+|\1/usr/bin|" \
22 -e "s|^(CFLAGS=).*|\1 -mcpu=cortex-a9|" \
23 -e "s|^(AR=).+|\1/usr/bin/ar|" \
24 -e "s|^(AS=).+|\1/usr/bin/as|" \
25 -e "s|^(CC=).+|\1/usr/bin/gcc|" \
26 -e "s|^(LN=).+|\1/usr/bin/ln|" \
27 -e "s|^(CXX=).+|\1/usr/bin/g++|" \
30 cd example/misc/build/wmmx2_linux
31 make -j1 -f makefile_miscGen
33 cd $SRC/packages/marvell-ipp/marvell-ipp
36 mkdir $PKG/usr/include
37 mkdir -p $PKG/etc/udev/rules.d
39 install -Dm644 etc/99-uio.rules \
40 $PKG/etc/udev/rules.d/99-uio.rules
41 install -d $PKG/usr/lib $PKG/usr/include/marvell-ipp
42 install -m644 include/*.h $PKG/usr/include/marvell-ipp
44 find bin lib -not -type d \( -name "*.so" -o -name "*.a" \) \
45 -not -path "*libcodecvmetadec.a" \
46 -not -path "*libvmetahal.a" \
47 -not -path "*libvmetahal.so" \
48 -not -path "*libcodecvmetadec.so" \
49 -not -path "bin/libmiscgen.so" \
50 -exec install -m644 "{}" $PKG/usr/lib/ \;
52 install -d $PKG/usr/include/OpenMAX/IL/
53 install -m644 openmax/include/* $PKG/usr/include/OpenMAX/IL/
54 install -m644 openmax/*.a $PKG/usr/lib/