mirror of
https://git.yoctoproject.org/meta-zephyr
synced 2026-09-13 21:49:30 +02:00
zephyr-helloworld: add
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
This commit is contained in:
18
recipes-kernel/zephyr-kernel/zephyr-helloworld.bb
Normal file
18
recipes-kernel/zephyr-kernel/zephyr-helloworld.bb
Normal file
@@ -0,0 +1,18 @@
|
||||
require zephyr-kernel.inc
|
||||
require zephyr-kernel-common.inc
|
||||
inherit deploy
|
||||
|
||||
ZEPHYR_SRC_DIR = "${S}/samples/hello_world"
|
||||
ZEPHYR_BASE = "${S}"
|
||||
|
||||
do_compile () {
|
||||
cd ${ZEPHYR_SRC_DIR}
|
||||
oe_runmake ${ZEPHYR_MAKE_ARGS}
|
||||
}
|
||||
|
||||
do_deploy () {
|
||||
install -D samples/hello_world/outdir/${BOARD}/zephyr.elf ${DEPLOYDIR}/${PN}.elf
|
||||
install -D samples/hello_world/outdir/${BOARD}/zephyr.bin ${DEPLOYDIR}/${PN}.bin
|
||||
}
|
||||
|
||||
addtask deploy after do_compile
|
||||
Reference in New Issue
Block a user