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

Otavio Salvador otavio at ossystems.com.br
Fri Jul 11 16:45:01 PDT 2014


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 at ossystems.com.br>
---
 recipes-multimedia/libfslparser/libfslparser.inc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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}"
 
-- 
2.0.0



More information about the meta-freescale mailing list