[yocto] [meta-zephyr][morty][PATCH 2/7] zephyr-philosophers: use common naming conventions

Juro Bystricky juro.bystricky at intel.com
Sat Feb 4 10:36:45 PST 2017


Derive the name of the resulting image based on PN.

Signed-off-by: Juro Bystricky <juro.bystricky at intel.com>
---
 recipes-kernel/zephyr-kernel/zephyr-philosophers.bb | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb b/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb
index babc453..425bebb 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb
+++ b/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb
@@ -11,9 +11,8 @@ do_compile () {
 }
 
 do_deploy () {
-    install -D samples/philosophers/outdir/${BOARD}/zephyr.elf ${DEPLOYDIR}/philosophers.elf
-    install -D samples/philosophers/outdir/${BOARD}/zephyr.bin ${DEPLOYDIR}/philosophers.bin
-    export DEPLOY_DIR_IMAGE=${DEPLOYDIR}/philosophers.elf
+    install -D samples/philosophers/outdir/${BOARD}/zephyr.elf ${DEPLOYDIR}/${PN}.elf
+    install -D samples/philosophers/outdir/${BOARD}/zephyr.bin ${DEPLOYDIR}/${PN}.bin
 }
 
 addtask deploy after do_compile
-- 
2.7.4




More information about the yocto mailing list