Patchwork [meta-fsl-arm,4/4] amd-gpu-mx51.inc: Use anonymous python function to inject metadata

login
register
mail settings
Submitter Otavio Salvador
Date July 11, 2014, 11:45 p.m.
Message ID <1405122303-24382-4-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/75401/
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
an anonymous python function so it runs at parsing time.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc
index 02a4f21..f37f1d5 100644
--- a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc
+++ b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc
@@ -19,7 +19,7 @@  inherit fsl-eula-unpack
 
 # 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.
-python populate_packages_prepend() {
+python () {
     for p in d.getVar('PACKAGES', True).split():
         d.setVar("INSANE_SKIP_%s" % p, "ldflags")
 }