mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
new package: add package 'marvell-ipp'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
ce42d313c4
commit
0ef84cec42
44
packages/multimedia/marvell-ipp/build
Executable file
44
packages/multimedia/marvell-ipp/build
Executable file
@ -0,0 +1,44 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
if [ "$TARGET_FLOAT" = "softfp" -o "$TARGET_FLOAT" = "soft" ]; then
|
||||
VMETA_LIBDIR="vmeta/soft/lib"
|
||||
elif [ "$TARGET_FLOAT" = "hard" ]; then
|
||||
VMETA_LIBDIR="vmeta/hard/lib"
|
||||
fi
|
||||
|
||||
# dont build parallel
|
||||
MAKEFLAGS=-j1
|
||||
|
||||
cd $PKG_BUILD
|
||||
cd example/misc/build/wmmx2_linux
|
||||
make -f makefile_miscGen
|
||||
cd -
|
||||
|
||||
mkdir -p $SYSROOT_PREFIX/usr/include/marvell-ipp
|
||||
cp -PR include/* $SYSROOT_PREFIX/usr/include/marvell-ipp
|
||||
|
||||
mkdir -p $SYSROOT_PREFIX/usr/lib
|
||||
cp -P lib/libmiscgen.so $SYSROOT_PREFIX/usr/lib
|
||||
cp -PR $VMETA_LIBDIR/*.so* $SYSROOT_PREFIX/usr/lib
|
37
packages/multimedia/marvell-ipp/install
Executable file
37
packages/multimedia/marvell-ipp/install
Executable file
@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
|
||||
if [ "$TARGET_FLOAT" = "softfp" -o "$TARGET_FLOAT" = "soft" ]; then
|
||||
VMETA_LIBDIR="vmeta/soft/lib"
|
||||
elif [ "$TARGET_FLOAT" = "hard" ]; then
|
||||
VMETA_LIBDIR="vmeta/hard/lib"
|
||||
fi
|
||||
|
||||
mkdir -p $INSTALL/usr/lib
|
||||
cp -PR $PKG_BUILD/$VMETA_LIBDIR/*.so* $INSTALL/usr/lib
|
||||
cp -P $PKG_BUILD/lib/libmiscgen.so $SYSROOT_PREFIX/usr/lib
|
||||
|
||||
mkdir -p $INSTALL/lib/udev/rules.d
|
||||
cp -PR $PKG_BUILD/etc/*.rules $INSTALL/lib/udev/rules.d
|
36
packages/multimedia/marvell-ipp/meta
Normal file
36
packages/multimedia/marvell-ipp/meta
Normal file
@ -0,0 +1,36 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="marvell-ipp"
|
||||
PKG_VERSION="0.2.1"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="arm"
|
||||
PKG_LICENSE="nonfree"
|
||||
PKG_SITE="http://www.marvell.com"
|
||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||
PKG_DEPENDS="marvell-libvmeta"
|
||||
PKG_BUILD_DEPENDS="toolchain marvell-libvmeta"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="multimedia"
|
||||
PKG_SHORTDESC="marvell-ipp: Marvell IPP Codecs"
|
||||
PKG_LONGDESC="marvell-ipp: Marvell IPP Codecs"
|
||||
PKG_IS_ADDON="no"
|
||||
|
||||
PKG_AUTORECONF="no"
|
@ -0,0 +1,41 @@
|
||||
diff -Naur marvell-ipp-0.2.1/example/Rules.make marvell-ipp-0.2.1.patch/example/Rules.make
|
||||
--- marvell-ipp-0.2.1/example/Rules.make 2011-03-07 18:51:40.000000000 +0100
|
||||
+++ marvell-ipp-0.2.1.patch/example/Rules.make 2012-12-26 23:48:51.811467005 +0100
|
||||
@@ -28,26 +28,26 @@
|
||||
#PATH_GNU_BIN=/usr/local/arm-marvell-linux-gnueabi/bin
|
||||
PATH_GNU_BIN=/usr/local/arm-marvell-linux-gnueabi-4.4.4/bin
|
||||
TOOLCHAIN_PREFIX=arm-marvell-linux-gnueabi
|
||||
-CFLAGS= -mcpu=marvell-f
|
||||
+#CFLAGS= -mcpu=marvell-f
|
||||
endif
|
||||
|
||||
#==============================================================================
|
||||
# GNU binaries (server admin update)
|
||||
#==============================================================================
|
||||
-CC=$(PATH_GNU_BIN)/$(TOOLCHAIN_PREFIX)-gcc
|
||||
-CXX=$(PATH_GNU_BIN)/$(TOOLCHAIN_PREFIX)-gcc
|
||||
-AR=$(PATH_GNU_BIN)/$(TOOLCHAIN_PREFIX)-ar
|
||||
-AS=$(PATH_GNU_BIN)/$(TOOLCHAIN_PREFIX)-as
|
||||
-LN=$(PATH_GNU_BIN)/$(TOOLCHAIN_PREFIX)-gcc
|
||||
+CC ?= $(PATH_GNU_BIN)/$(TOOLCHAIN_PREFIX)-gcc
|
||||
+CXX?= $(PATH_GNU_BIN)/$(TOOLCHAIN_PREFIX)-gcc
|
||||
+AR ?= $(PATH_GNU_BIN)/$(TOOLCHAIN_PREFIX)-ar
|
||||
+AS ?= $(PATH_GNU_BIN)/$(TOOLCHAIN_PREFIX)-as
|
||||
+LN ?= $(PATH_GNU_BIN)/$(TOOLCHAIN_PREFIX)-gcc
|
||||
|
||||
#==============================================================================
|
||||
# GNU build options: (build engineer update)
|
||||
#==============================================================================
|
||||
-CFLAGS+= -O3 -Wall -mabi=aapcs-linux -fPIC -D_IPP_LINUX
|
||||
-CXXFLAGS= $(CFLAGS)
|
||||
-ASFLAGS= -k -mcpu=iwmmxt2
|
||||
-ARFLAGS=
|
||||
-LNFLAGS= -lpthread -ldl -lm -lrt $(PGO_FLAGS) -Wl,-R ./
|
||||
+CFLAGS += -O3 -Wall -mabi=aapcs-linux -fPIC -D_IPP_LINUX
|
||||
+CXXFLAGS ?= $(CFLAGS)
|
||||
+ASFLAGS ?= -k -mcpu=iwmmxt2
|
||||
+ARFLAGS =
|
||||
+LNFLAGS ?= -lpthread -ldl -lm -lrt $(PGO_FLAGS) -Wl,-R ./
|
||||
|
||||
#==============================================================================
|
||||
# User root path (user update)
|
Loading…
x
Reference in New Issue
Block a user