[oe] [meta-oe][PATCH] lmbench: if a machine config file exists, install it

Yasir-Khan yasir_khan at mentor.com
Tue Aug 19 11:49:24 UTC 2014


Signed-off-by: Christopher Larson <chris_larson at mentor.com>
Signed-off-by: Yasir-Khan <yasir_khan at mentor.com>
---
 .../recipes-benchmark/lmbench/lmbench_3.0-a9.bb    |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb b/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb
index 41db150..a3873a6 100644
--- a/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb
+++ b/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb
@@ -60,6 +60,13 @@ do_install () {
            ${D}${bindir}/lmbench-run
     install -m 0755 ${S}/scripts/lmbench ${D}${bindir}
     install -m 0755 ${S}/scripts/* ${D}${datadir}/lmbench/scripts
+
+    # If the machine installs a config file, install it to the appropriate place
+    if [ -f ${WORKDIR}/CONFIG.${MACHINE} ]; then
+        install -D 0644 ${WORKDIR}/CONFIG.${MACHINE} \
+                        ${D}/${datadir}/lmbench/bin/${TARGET_PREFIX}/CONFIG.${MACHINE}
+    fi
+
 }
 
 pkg_postinst_${PN} () {
-- 
1.7.9.5




More information about the Openembedded-devel mailing list