boards: arduino_101: support 'make flash' over DFU
Let 'make flash' invoke the dfuutil.sh support script, and export the relevant DFUUTIL_* environment variables, for all 3 cores of the Arduino 101 board: x86, ARC and BLE. This is backward compatible with the current usage of OpenOCD over JTAG, since this is only enabled when the environment variable ZEPHYR_FLASH_OVER_DFU is set to y. Change-Id: Ic5528cb87a180378d7120d150c27d1e24c9ebe75 Signed-off-by: Patrice Buriez <patrice.buriez@intel.com>
This commit is contained in:
parent
82188ed651
commit
1f429cd4a2
|
@ -1,4 +1,12 @@
|
|||
ifeq (${ZEPHYR_FLASH_OVER_DFU},y)
|
||||
FLASH_SCRIPT = dfuutil.sh
|
||||
DFUUTIL_PID = 8087:0aba
|
||||
DFUUTIL_ALT = sensor_core
|
||||
DFUUTIL_IMG = ${O}/${KERNEL_BIN_NAME}
|
||||
export DFUUTIL_PID DFUUTIL_ALT DFUUTIL_IMG
|
||||
else
|
||||
FLASH_SCRIPT = openocd.sh
|
||||
endif
|
||||
DEBUG_SCRIPT = openocd.sh
|
||||
|
||||
OPENOCD_PRE_CMD = "-c targets 1"
|
||||
|
|
8
boards/arm/arduino_101_ble/Makefile.board
Normal file
8
boards/arm/arduino_101_ble/Makefile.board
Normal file
|
@ -0,0 +1,8 @@
|
|||
ifeq (${ZEPHYR_FLASH_OVER_DFU},y)
|
||||
FLASH_SCRIPT = dfuutil.sh
|
||||
DFUUTIL_PID = 8087:0aba
|
||||
DFUUTIL_ALT = ble_core
|
||||
DFUUTIL_IMG = ${O}/${KERNEL_BIN_NAME}
|
||||
export DFUUTIL_PID DFUUTIL_ALT DFUUTIL_IMG
|
||||
endif
|
||||
|
|
@ -1,4 +1,12 @@
|
|||
ifeq (${ZEPHYR_FLASH_OVER_DFU},y)
|
||||
FLASH_SCRIPT = dfuutil.sh
|
||||
DFUUTIL_PID = 8087:0aba
|
||||
DFUUTIL_ALT = x86_app
|
||||
DFUUTIL_IMG = ${O}/${KERNEL_BIN_NAME}
|
||||
export DFUUTIL_PID DFUUTIL_ALT DFUUTIL_IMG
|
||||
else
|
||||
FLASH_SCRIPT = openocd.sh
|
||||
endif
|
||||
DEBUG_SCRIPT = openocd.sh
|
||||
OPENOCD_PRE_CMD = "-c targets 1"
|
||||
OPENOCD_LOAD_CMD = "load_image ${O}/${KERNEL_BIN_NAME} ${CONFIG_PHYS_LOAD_ADDR}"
|
||||
|
|
Loading…
Reference in a new issue