mirror of
https://git.yoctoproject.org/meta-zephyr
synced 2026-01-29 21:58:41 +01:00
zephyr-kernel: install .bin image if available
Some boards (e.g. Arduino Nano 33 BLE) require image in bin format for flashing with `-c flash_usb`. Provide that image along with ELF image on do_deploy step. Signed-off-by: Nagesh Shamnur <nagesh.shamnur@huawei.com> Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com> Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
This commit is contained in:
committed by
Naveen Saini
parent
fce191d5c7
commit
098501ca0e
@@ -12,6 +12,7 @@ ZEPHYR_GCC_VARIANT="yocto"
|
||||
ZEPHYR_SYSROOT="${STAGING_DIR_TARGET}"
|
||||
|
||||
ZEPHYR_MAKE_OUTPUT = "zephyr.elf"
|
||||
ZEPHYR_MAKE_BIN_OUTPUT = "zephyr.bin"
|
||||
|
||||
EXTRA_OECMAKE = "\
|
||||
-DZEPHYR_BASE=${S} \
|
||||
|
||||
@@ -9,5 +9,9 @@ do_install[noexec] = "1"
|
||||
|
||||
do_deploy () {
|
||||
install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT} ${DEPLOYDIR}/${PN}.elf
|
||||
if [ -f ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ]
|
||||
then
|
||||
install -D ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ${DEPLOYDIR}/${PN}.bin
|
||||
fi
|
||||
}
|
||||
addtask deploy after do_compile
|
||||
|
||||
Reference in New Issue
Block a user