diff --git a/packages/multimedia/imx-vpu/package.mk b/packages/multimedia/imx-vpu/package.mk new file mode 100644 index 0000000000..b719eb6cdb --- /dev/null +++ b/packages/multimedia/imx-vpu/package.mk @@ -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 . +################################################################################ + +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 +} diff --git a/packages/multimedia/imx-vpu/patches/imx-vpu-cflags.patch b/packages/multimedia/imx-vpu/patches/imx-vpu-cflags.patch new file mode 100644 index 0000000000..e8f2e2e663 --- /dev/null +++ b/packages/multimedia/imx-vpu/patches/imx-vpu-cflags.patch @@ -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 diff --git a/packages/multimedia/libfslvpuwrap/package.mk b/packages/multimedia/libfslvpuwrap/package.mk index ead91a47b6..eed2d0d53c 100644 --- a/packages/multimedia/libfslvpuwrap/package.mk +++ b/packages/multimedia/libfslvpuwrap/package.mk @@ -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"