aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Schmidt <stefan.schmidt@huawei.com>2022-01-24 13:43:03 +0100
committerNaveen Saini <naveen.kumar.saini@intel.com>2022-01-27 16:34:30 +0800
commitbef4443f1da38c98b174fdcaefd0db07b085b320 (patch)
tree7a51c12d816fb5fc6c26afc82002a8d6585f45e5
parentd78dd539377b2947e73336f45afb5f1c4812bf9d (diff)
downloadmeta-zephyr-bef4443f1da38c98b174fdcaefd0db07b085b320.tar.gz
meta-zephyr-bef4443f1da38c98b174fdcaefd0db07b085b320.tar.bz2
meta-zephyr-bef4443f1da38c98b174fdcaefd0db07b085b320.zip
bossa-native: Add Arduino variant of the bossa flashing tool
This native recipe will be used to streamline the flashing of out Arduino Nano 33 BLE target. Until now we have pointed to the full Arduino IDE to get it installed and setting the PATH correctly before any flashing would work. Having the tool supplied under the hood for flashing will simplify documentation and support. Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com> Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
-rw-r--r--meta-zephyr-core/recipes-devtools/bossa/bossa-native_git.bb23
1 files changed, 23 insertions, 0 deletions
diff --git a/meta-zephyr-core/recipes-devtools/bossa/bossa-native_git.bb b/meta-zephyr-core/recipes-devtools/bossa/bossa-native_git.bb
new file mode 100644
index 0000000..b645ecf
--- /dev/null
+++ b/meta-zephyr-core/recipes-devtools/bossa/bossa-native_git.bb
@@ -0,0 +1,23 @@
+SUMMARY = "Arduino variant of the BOSSA flashing tool"
+HOMEPAGE = "https://github.com/arduino/BOSSA"
+SECTION = "devel"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=bcf9399f7b9b96149837290bcdc3ad39"
+
+SRC_URI = "git://github.com/arduino/BOSSA.git;protocol=https;branch=nrf"
+
+PV = "1.9.1+git${SRCPV}"
+SRCREV = "89f3556a761833522cd93c199581265ad689310b"
+
+S = "${WORKDIR}/git"
+
+inherit native
+
+do_compile() {
+ # We only compile the bossac commandline tool, not the graphical version.
+ oe_runmake bossac
+}
+
+do_install() {
+ install -D -m 0755 ${B}/bin/bossac ${D}${bindir}/bossac
+}