new package: add package 'imx-vpu'

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2014-04-13 19:23:28 +02:00
parent 8fa76b050f
commit 77884ecbcb
3 changed files with 64 additions and 1 deletions

View File

@ -0,0 +1,42 @@
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
#
# OpenELEC 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 of the License, or
# (at your option) any later version.
#
# OpenELEC 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. If not, see <http://www.gnu.org/licenses/>.
################################################################################
PKG_NAME="imx-vpu"
PKG_VERSION="3.10.17-1.0.0_beta"
PKG_REV="1"
PKG_ARCH="arm"
PKG_LICENSE="other"
PKG_SITE="http://www.freescale.com"
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS_TARGET="toolchain"
PKG_PRIORITY="optional"
PKG_SECTION="multimedia"
PKG_SHORTDESC="imx-vpu: platform specific unit tests for mxc platform"
PKG_LONGDESC="imx-vpu: platform specific unit tests for mxc platform"
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
make_target() {
make DIRS="vpu" CFLAGS="$CFLAGS" PLATFORM=IMX6Q CROSS_COMPILE=$TARGET_PREFIX
}
makeinstall_target() {
make DIRS="vpu" PLATFORM=IMX6Q DEST_DIR=$SYSROOT_PREFIX install
make DIRS="vpu" PLATFORM=IMX6Q DEST_DIR=$INSTALL install
}

View File

@ -0,0 +1,21 @@
diff -Naur imx-lib-3.5.7-1.0.0/vpu/Makefile imx-lib-3.5.7-1.0.0.patch/vpu/Makefile
--- imx-lib-3.5.7-1.0.0/vpu/Makefile 2013-06-21 15:22:18.000000000 +0200
+++ imx-lib-3.5.7-1.0.0.patch/vpu/Makefile 2014-01-13 08:07:56.431868081 +0100
@@ -1,6 +1,8 @@
CC=$(CROSS_COMPILE)gcc
AR=$(CROSS_COMPILE)ar
+CFLAGS := -Wall -O2
+
# list of platforms which want this test case
INCLUDE_LIST:= IMX27ADS IMX51 IMX53 IMX6Q
@@ -33,7 +35,7 @@
endif
%.o: %.c
- $(CC) -D$(PLATFORM) -Wall -O2 -fPIC -c $^ -o $@
+ $(CC) -D$(PLATFORM) $(CFLAGS) -fPIC -c $^ -o $@
$(LIBNAME).so.$(SONAMEVERSION): $(OBJ)
$(CC) -shared -nostartfiles -Wl,-soname,$@ $^ -o $@ -lpthread

View File

@ -23,7 +23,7 @@ PKG_ARCH="arm"
PKG_LICENSE="other"
PKG_SITE="http://www.freescale.com"
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS_TARGET="toolchain imx-lib libfslparser libfslcodec"
PKG_DEPENDS_TARGET="toolchain imx-lib imx-vpu libfslparser libfslcodec"
PKG_PRIORITY="optional"
PKG_SECTION="multimedia"
PKG_SHORTDESC="libfslvpuwrap: Freescale Multimedia VPU wrapper"