Patchwork [meta-fsl-arm,2/4] libfslparser: Use python function to amend metadata

login
register
mail settings
Submitter Otavio Salvador
Date July 11, 2014, 11:45 p.m.
Message ID <1405122303-24382-2-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/75395/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - July 11, 2014, 11:45 p.m.
The metadata amending, to include the INSANE_SKIP hacks, need to be
done before we run the QA checks. This has change now that the QA
checks are run in a separate task.

To accomodate the code to this the recipe needed to be reworked to use
separated method to apply the quirks.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 recipes-multimedia/libfslparser/libfslparser.inc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Patch

diff --git a/recipes-multimedia/libfslparser/libfslparser.inc b/recipes-multimedia/libfslparser/libfslparser.inc
index 3e2a004..f0d365d 100644
--- a/recipes-multimedia/libfslparser/libfslparser.inc
+++ b/recipes-multimedia/libfslparser/libfslparser.inc
@@ -1,3 +1,4 @@ 
+# Copyright (C) 2012-2014 O.S. Systems Software LTDA.
 # Copyright (C) 2012-2013 Freescale Semiconductor
 # Released under the MIT license (see COPYING.MIT for the terms)
 DESCRIPTION = "Freescale Multimedia parser libs"
@@ -15,7 +16,7 @@  EXTRA_OECONF = "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '--
 INHIBIT_PACKAGE_STRIP = "1"
 INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
 
-python populate_packages_prepend() {
+python __set_insane_skip() {
     # 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
@@ -23,6 +24,8 @@  python populate_packages_prepend() {
         d.setVar("INSANE_SKIP_%s" % p, "ldflags dev-so textrel")
 }
 
+do_package_qa[prefuncs] += "__set_insane_skip"
+
 # 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}"