hw/bsp: reel_board add syscfg selectable download script
diff --git a/hw/bsp/reel_board/bsp.yml b/hw/bsp/reel_board/bsp.yml
index 003a411..552b050 100644
--- a/hw/bsp/reel_board/bsp.yml
+++ b/hw/bsp/reel_board/bsp.yml
@@ -26,10 +26,8 @@
     - "hw/bsp/reel_board/boot-nrf52840aa.ld"
     - "@apache-mynewt-core/hw/mcu/nordic/nrf52xxx/nrf52.ld"
 bsp.part2linkerscript: "hw/bsp/reel_board/split-reel_board.ld"
-bsp.downloadscript: "hw/bsp/reel_board/reel_board_download.sh"
+bsp.downloadscript: "hw/scripts/download.sh"
 bsp.debugscript: "hw/bsp/reel_board/reel_board_debug.sh"
-bsp.downloadscript.WINDOWS.OVERWRITE: "hw/bsp/reel_board/reel_board_download.cmd"
-bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/reel_board/reel_board_debug.cmd"
 
 bsp.flash_map:
     areas:
diff --git a/hw/bsp/reel_board/pkg.yml b/hw/bsp/reel_board/pkg.yml
index 41011f7..7c44ed4 100644
--- a/hw/bsp/reel_board/pkg.yml
+++ b/hw/bsp/reel_board/pkg.yml
@@ -35,3 +35,4 @@
     - "@apache-mynewt-core/hw/mcu/nordic/nrf52xxx"
     - "@apache-mynewt-core/libc/baselibc"
     - "@apache-mynewt-core/sys/flash_map"
+    - "@apache-mynewt-core/hw/scripts"
diff --git a/hw/bsp/reel_board/reel_board_debug.cmd b/hw/bsp/reel_board/reel_board_debug.cmd
deleted file mode 100755
index 96f0b26..0000000
--- a/hw/bsp/reel_board/reel_board_debug.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements.  See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership.  The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License.  You may obtain a copy of the License at
-@rem
-@rem  http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied.  See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-

-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/reel_board/reel_board_download.cmd b/hw/bsp/reel_board/reel_board_download.cmd
deleted file mode 100755
index 96f0b26..0000000
--- a/hw/bsp/reel_board/reel_board_download.cmd
+++ /dev/null
@@ -1,22 +0,0 @@
-@rem
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements.  See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership.  The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License.  You may obtain a copy of the License at
-@rem
-@rem  http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied.  See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-@rem
-
-@rem Execute a shell with a script of the same name and .sh extension
-

-@bash "%~dp0%~n0.sh"
diff --git a/hw/bsp/reel_board/reel_board_download.sh b/hw/bsp/reel_board/reel_board_download.sh
deleted file mode 100755
index 9f4fade..0000000
--- a/hw/bsp/reel_board/reel_board_download.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# Called with following variables set:
-#  - CORE_PATH is absolute path to @apache-mynewt-core
-#  - BSP_PATH is absolute path to hw/bsp/bsp_name
-#  - BIN_BASENAME is the path to prefix to target binary,
-#    .elf appended to name is the ELF file
-#  - IMAGE_SLOT is the image slot to download to (for non-mfg-image, non-boot)
-#  - FEATURES holds the target features string
-#  - EXTRA_JTAG_CMD holds extra parameters to pass to jtag software
-#  - MFG_IMAGE is "1" if this is a manufacturing image
-#  - FLASH_OFFSET contains the flash offset to download to
-#  - BOOT_LOADER is set if downloading a bootloader
-
-. $CORE_PATH/hw/scripts/jlink.sh
-
-if [ "$MFG_IMAGE" ]; then
-    FLASH_OFFSET=0x0
-fi
-
-JLINK_DEV="nrf52840_xxaa"
-
-common_file_to_load
-jlink_load
diff --git a/hw/bsp/reel_board/syscfg.yml b/hw/bsp/reel_board/syscfg.yml
index d29df23..0160478 100644
--- a/hw/bsp/reel_board/syscfg.yml
+++ b/hw/bsp/reel_board/syscfg.yml
@@ -48,6 +48,12 @@
     SSD1673_CS_PIN: 17
     SSD1673_SPI_DEV: 0
 
+    # Flasher parameters
+    MYNEWT_DOWNLOADER: pyocd
+    MYNEWT_DOWNLOADER_MFG_IMAGE_FLASH_OFFSET: 0x0
+    JLINK_TARGET: nRF52840_xxAA
+    PYOCD_TARGET: nrf52840
+
 syscfg.vals.BLE_CONTROLLER:
     TIMER_0: 0
     TIMER_5: 1