]> code.ossystems Code Review - meta-freescale.git/commitdiff
fsl-eula-unpack.bbclass: Avoid warning about wrong 'S' being set
authorOtavio Salvador <otavio@ossystems.com.br>
Mon, 26 Jan 2015 01:47:01 +0000 (23:47 -0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 4 Feb 2015 14:10:09 +0000 (12:10 -0200)
The binary files packages provided by Freescale need to have the
specialized unpack method called before the OE-Core original one. This
unsures that the source is available when sanity tests are done.

This fixes following warning:

,----
| WARNING: .../libfslcodec/4.0.2-r0/libfslcodec-4.0.2 ('S') don't
|     exist, you must set 'S' to a proper value
`----

Change-Id: Ie85c5b2abdc34449503b543e5fc8d8e914ac0c1c
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/classes/fsl-eula-unpack.bbclass

index 0da17c385758605e0852ee1f9fdeb1716fadfc51..799840608c34423b67981e87c50f7710cead3f34 100644 (file)
@@ -52,12 +52,13 @@ python do_unpack() {
     else:
         bb.note("Freescale EULA has been accepted for '%s'" % pkg)
 
+    # The binary unpack needs to be done first so 'S' is valid
+    bb.build.exec_func('fsl_bin_do_unpack', d)
+
     try:
         bb.build.exec_func('base_do_unpack', d)
     except:
         raise
-
-    bb.build.exec_func('fsl_bin_do_unpack', d)
 }
 
 do_unpack[vardepsexclude] += "FSL_EULA_FILE"