Patchwork [2/8] add qemuwrapper-cross recipe

login
register
mail settings
Submitter Laurentiu Palcu
Date Feb. 5, 2013, 9:34 a.m.
Message ID <cf8923a687af2bbb2f39fb50bb7d03cb28ce3672.1360055640.git.laurentiu.palcu@intel.com>
Download mbox | patch
Permalink /patch/44059/
State Accepted
Commit 49f5daf9b71a4bd9c839b348c9819019903a5f2e
Headers show

Comments

Laurentiu Palcu - Feb. 5, 2013, 9:34 a.m.
This will just install a wrapper script in STAGING_BINDIR_CROSS that
will execute the proper qemu user binary for the current target.

[YOCTO #2599]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
---
 .../recipes-devtools/qemu/qemuwrapper-cross_1.0.bb |   14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb

Patch

diff --git a/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb b/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb
new file mode 100644
index 0000000..dc16047
--- /dev/null
+++ b/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb
@@ -0,0 +1,14 @@ 
+DESCRIPTION = "Qemu wrapper script"
+LICENSE = "MIT"
+PR = "r0"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
+inherit qemu
+
+do_install () {
+    install -d ${STAGING_BINDIR_CROSS}
+
+    echo "#!/bin/sh" > ${STAGING_BINDIR_CROSS}/qemuwrapper
+    echo exec env ${@qemu_target_binary(d)} \"\$@\" >> ${STAGING_BINDIR_CROSS}/qemuwrapper
+    chmod +x ${STAGING_BINDIR_CROSS}/qemuwrapper
+}