arduino-101: Support for flashing via USB

Implement a class allowing flashing Arduino-101 using dfu-util.
User needs to have dfu-utils installed on the host machine.
All three cores supported (x86, ARM, ARC).

Sample usage:
    $ MACHINE=arduino-101 bitbake xxx
    $ MACHINE=arduino-101 bitbake xxx -c flash_usb

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
This commit is contained in:
Juro Bystricky
2017-02-12 11:04:32 -08:00
parent a3f51b0ada
commit b3b5bb99dc
3 changed files with 36 additions and 0 deletions

View File

@@ -16,3 +16,4 @@ PREFERRED_VERSION_binutils-cross-${TARGET_ARCH} = "2.26+gitarc"
PREFERRED_VERSION_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} = "2.26+gitarc"
TARGET_LINK_HASH_STYLE = ""
ZEPHYR_INHERIT_CLASSES += "zephyr-flash-dfu"

View File

@@ -8,3 +8,4 @@ require conf/machine/include/tune-iamcu.inc
TUNE_PKGARCH_arduino-101 = "iamcu"
TARGET_LINK_HASH_STYLE = ""
ZEPHYR_INHERIT_CLASSES += "zephyr-flash-dfu"