Patchwork [meta-fsl-arm,4/7] libfslparser: Add .inc file in order to reuse code

login
register
mail settings
Submitter Daiane Angolini
Date April 10, 2013, 1:28 p.m.
Message ID <1365600536-24110-4-git-send-email-daiane.angolini@freescale.com>
Download mbox | patch
Permalink /patch/47871/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Daiane Angolini - April 10, 2013, 1:28 p.m.
From: Daiane Angolini <angolini@gmail.com>

Include libfslcodec.inc file in order to reuse code
for future newer versions of this packaged to be added.

Change-Id: If75ae84fb13860999716ab34595ef2b0eada5219
Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
---
 recipes-multimedia/libfslparser/libfslparser.inc   |   26 ++++++++++++++++++++
 .../libfslparser/libfslparser_3.0.5.bb             |   20 +++------------
 2 files changed, 29 insertions(+), 17 deletions(-)
 create mode 100644 recipes-multimedia/libfslparser/libfslparser.inc

Patch

diff --git a/recipes-multimedia/libfslparser/libfslparser.inc b/recipes-multimedia/libfslparser/libfslparser.inc
new file mode 100644
index 0000000..6bfa502
--- /dev/null
+++ b/recipes-multimedia/libfslparser/libfslparser.inc
@@ -0,0 +1,26 @@ 
+# Copyright (C) 2012-2013 Freescale Semicondutors
+# Released under the MIT license (see COPYING.MIT for the terms)
+DESCRIPTION = "Freescale Multimedia parser libs"
+LICENSE = "Proprietary"
+SECTION = "multimedia"
+LIC_FILES_CHKSUM = "file://EULA.txt;md5=ea4d5c069d7aef0838a110409ea78a01"
+
+INC_PR = "r1"
+
+inherit fsl-eula-unpack autotools pkgconfig
+
+SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true"
+
+python populate_packages_prepend() {
+    # FIXME: All binaries lack GNU_HASH in elf binary but as we don't have
+    # the source we cannot fix it. Disable the insane check for now.
+    # FIXME: gst-fsl-plugin looks for the .so files so we need to deploy those
+    for p in d.getVar('PACKAGES', True).split():
+        d.setVar("INSANE_SKIP_%s" % p, "ldflags dev-so")
+}
+
+# FIXME: gst-fsl-plugin looks for the .so files so we need to deploy those
+FILES_${PN} += "${libdir}/imx-mm/*/*${SOLIBS} ${libdir}/imx-mm/*/*${SOLIBSDEV}"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
diff --git a/recipes-multimedia/libfslparser/libfslparser_3.0.5.bb b/recipes-multimedia/libfslparser/libfslparser_3.0.5.bb
index d53805a..d31c34b 100644
--- a/recipes-multimedia/libfslparser/libfslparser_3.0.5.bb
+++ b/recipes-multimedia/libfslparser/libfslparser_3.0.5.bb
@@ -1,28 +1,14 @@ 
 # Copyright (C) 2012-2013 Freescale Semicondutors
 # Released under the MIT license (see COPYING.MIT for the terms)
-DESCRIPTION = "Freescale Multimedia parser libs"
-LICENSE = "Proprietary"
-SECTION = "multimedia"
+
 LIC_FILES_CHKSUM = "file://EULA.txt;md5=ea4d5c069d7aef0838a110409ea78a01"
 
-PR = "r2"
+require libfslparser.inc
 
-inherit fsl-eula-unpack autotools pkgconfig
+PR = "${INC_PR}.0"
 
 SRC_URI[md5sum] = "9fd8105530e1668ae91bd53a5b0d9807"
 SRC_URI[sha256sum] = "d3139e28e453d2af04439e607cd12ad17e117144049c9a8add05a5a142c654ae"
-SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true"
-
-python populate_packages_prepend() {
-    # FIXME: All binaries lack GNU_HASH in elf binary but as we don't have
-    # the source we cannot fix it. Disable the insane check for now.
-    # FIXME: gst-fsl-plugin looks for the .so files so we need to deploy those
-    for p in d.getVar('PACKAGES', True).split():
-        d.setVar("INSANE_SKIP_%s" % p, "ldflags dev-so")
-}
-
-# FIXME: gst-fsl-plugin looks for the .so files so we need to deploy those
-FILES_${PN} += "${libdir}/imx-mm/*/*${SOLIBS} ${libdir}/imx-mm/*/*${SOLIBSDEV}"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 COMPATIBLE_MACHINE = "(mx6)"