Move boards to boards folder * boards: rename configs folder to boards This is the proposed layout after the change: boards: - folder containing board folders <board>: - name of each board drivers: - extra drivers specific for platform include: - header files for the boars scripts: - extra scripts specific for platform src: - board specific code tools: - extra tools specific for platform <config>: - board specific configuration(s) Note: <xxx> names are dependent on platform This is a logical change to aim to the arch layout but this is a huge change it should be done in several steps to lower the risk. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * Kconfig: replace configs with boards The change is needed after the path change Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * Makefile: replace configs with boards The change is needed after the path change Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * Makefile.*: replace configs with boards The change is needed after the path change Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * Make.defs: replace configs with boards The change is needed after the path change Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * .sh: replace configs with boards The change is needed after the path change Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * .mk: replace configs with boards The change is needed after the path change Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * .c & .h: replace configs with boards The change is needed after the path change Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * .bat: replace configs with boards The change is needed after the path change Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> Approved-by: Gregory Nutt <gnutt@nuttx.org>
44 lines
918 B
Bash
Executable File
44 lines
918 B
Bash
Executable File
#!/bin/sh
|
|
|
|
TOPDIR=$1
|
|
USAGE="$0 <TOPDIR> [-d]"
|
|
if [ -z "${TOPDIR}" ]; then
|
|
echo "Missing argument"
|
|
echo $USAGE
|
|
exit 1
|
|
fi
|
|
|
|
OPENOCD_PATH="/cygdrive/c/gccfd/openocd/bin"
|
|
OPENOCD_EXE=openocd-ftd2xx.exe
|
|
OPENOCD_CFG="${TOPDIR}/boards/ea3131/tools/armusbocd.cfg"
|
|
OPENOCD_ARGS="-f `cygpath -w ${OPENOCD_CFG}`"
|
|
~/projects/nuttx/nuttx/boards/ea3131/tool
|
|
|
|
if [ "X$2" = "X-d" ]; then
|
|
OPENOCD_ARGS=$OPENOCD_ARGS" -d3"
|
|
set -x
|
|
fi
|
|
|
|
if [ ! -d ${OPENOCD_PATH} ]; then
|
|
echo "OpenOCD path does not exist: ${OPENOCD_PATH}"
|
|
exit 1
|
|
fi
|
|
if [ ! -x ${OPENOCD_PATH}/${OPENOCD_EXE} ]; then
|
|
echo "OpenOCD does not exist: ${OPENOCD_PATH}/${OPENOCD_EXE}"
|
|
exit 1
|
|
fi
|
|
if [ ! -f ${OPENOCD_CFG} ]; then
|
|
echo "OpenOCD config file does not exist: ${OPENOCD_CFG}"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Starting OpenOCD"
|
|
${OPENOCD_PATH}/${OPENOCD_EXE} ${OPENOCD_ARGS} &
|
|
echo "OpenOCD daemon started"
|
|
ps -ef | grep openocd
|
|
echo "In GDB: target remote localhost:3333"
|
|
|
|
|
|
|
|
|