Patchwork [meta-oe,3/3] cpuburn-neon: fix packaging to use a date as version and valid sources

login
register
mail settings
Submitter Otavio Salvador
Date June 11, 2012, 3:34 p.m.
Message ID <9a4427b73e6410ee3c7d194a38225a54778fffae.1339428767.git.otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/29659/
State New, archived
Headers show

Comments

Otavio Salvador - June 11, 2012, 3:34 p.m.
* The package were not versioning the sources as the files had no
   version on its name. We workaround it mangling the DL_DIR;

 * We now dynamically check if the machine has or not neon feature and
   set COMPATIBLE_MACHINE.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 .../{cpuburn-neon.bb => cpuburn-neon_20120610.bb}  |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)
 rename meta-oe/recipes-benchmark/cpuburn/{cpuburn-neon.bb => cpuburn-neon_20120610.bb} (68%)
Otavio Salvador - July 1, 2012, 9:02 p.m.
On Mon, Jun 11, 2012 at 12:34 PM, Otavio Salvador
<otavio@ossystems.com.br> wrote:
>  * The package were not versioning the sources as the files had no
>    version on its name. We workaround it mangling the DL_DIR;
>
>  * We now dynamically check if the machine has or not neon feature and
>    set COMPATIBLE_MACHINE.
>
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>

Ping?
Otavio Salvador - July 17, 2012, 5:20 p.m.
On Mon, Jun 11, 2012 at 12:34 PM, Otavio Salvador
<otavio@ossystems.com.br> wrote:
>  * The package were not versioning the sources as the files had no
>    version on its name. We workaround it mangling the DL_DIR;
>
>  * We now dynamically check if the machine has or not neon feature and
>    set COMPATIBLE_MACHINE.
>
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>

Koen,

Can you apply it and queue it for denzil as well?

Patch

diff --git a/meta-oe/recipes-benchmark/cpuburn/cpuburn-neon.bb b/meta-oe/recipes-benchmark/cpuburn/cpuburn-neon_20120610.bb
similarity index 68%
rename from meta-oe/recipes-benchmark/cpuburn/cpuburn-neon.bb
rename to meta-oe/recipes-benchmark/cpuburn/cpuburn-neon_20120610.bb
index bb9ca1c..5bc3129 100644
--- a/meta-oe/recipes-benchmark/cpuburn/cpuburn-neon.bb
+++ b/meta-oe/recipes-benchmark/cpuburn/cpuburn-neon_20120610.bb
@@ -2,19 +2,17 @@  DESCRIPTION = "CPU burn app that loads the NEON coprocessor fully"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://burn.S;md5=823abc72c2cd448e87df9bc5355a4456"
 
-PR = "r1"
+DL_DIR_append = "/${PN}-${PV}"
 
-# only for ARM systems infact it should check for MACHINE_FEATURE
-# neon or something. For now we spare non arm arches from picking this up
-
-COMPATIBLE_HOST = "arm.*"
+# Ensure to make this available for machine which has neon
+COMPATIBLE_MACHINE = "(${@bb.utils.contains("TUNE_FEATURES", "neon", "${MACHINE}", "Invalid!", d)})"
 
 SRC_URI = "http://hardwarebug.org/files/burn.S;name=mru \
            http://github.com/downloads/ssvb/ssvb.github.com/ssvb-cpuburn-a8.S;name=ssvb"
 SRC_URI[mru.md5sum] = "823abc72c2cd448e87df9bc5355a4456"
 SRC_URI[mru.sha256sum] = "01d9fc04f83740c513c25401dcc89c11b2a5a6013e70bfca42b7b02129f88cd2"
-SRC_URI[ssvb.md5sum] = "f1af41dcd56e4f0f7e92b67109dc01ed"
-SRC_URI[ssvb.sha256sum] = "95e2267a684be0d848dd6f935e769fa3ed810274ebacddc3fe8ddac4b34838c2"
+SRC_URI[ssvb.md5sum] = "0acc570d943c41c7f8602b9ff6fa111d"
+SRC_URI[ssvb.sha256sum] = "bfddd3226a499ffdf71bb58c05ccdc6dac5bb2c2c3bdb10ac610ee0b60aac087"
 
 S = "${WORKDIR}"