summaryrefslogtreecommitdiff
path: root/nuttx/tools
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-04-22 20:40:10 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-04-22 20:40:10 +0000
commit170ec8f545ce2ea7928a00e112ffc70b0f0a5281 (patch)
tree2110e607a492ffc23adc598dea9ecb594113412a /nuttx/tools
parenta63045942bc5bc4ce3c7ce813f8b3361dba79d68 (diff)
downloadpx4-nuttx-170ec8f545ce2ea7928a00e112ffc70b0f0a5281.tar.gz
px4-nuttx-170ec8f545ce2ea7928a00e112ffc70b0f0a5281.tar.bz2
px4-nuttx-170ec8f545ce2ea7928a00e112ffc70b0f0a5281.zip
Misc changes to good c5471 build on Cygwin
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@183 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/tools')
-rwxr-xr-xnuttx/tools/mkimage.sh30
1 files changed, 7 insertions, 23 deletions
diff --git a/nuttx/tools/mkimage.sh b/nuttx/tools/mkimage.sh
index 8a32cc030..90f4176b1 100755
--- a/nuttx/tools/mkimage.sh
+++ b/nuttx/tools/mkimage.sh
@@ -95,31 +95,9 @@
# leading "0x".
########################################################
-if [ "${CADENUX_ARCH}" = "dsc21" ] ; then
- prefix="arm-uclinux-"
-elif [ "${CADENUX_ARCH}" = "dsc24" ] ; then
- prefix="arm-uclinux-"
-elif [ "${CADENUX_ARCH}" = "dsc25" ] ; then
- prefix="arm-uclinux-"
-elif [ "${CADENUX_ARCH}" = "dm270" ] ; then
- prefix="arm-uclinux-"
-elif [ "${CADENUX_ARCH}" = "c5471" ] ; then
- prefix="arm-uclinux-"
-elif [ "${CADENUX_ARCH}" = "ti925" ] ; then
- prefix="arm-linux-"
-elif [ "${CADENUX_ARCH}" = "omap710" ] ; then
- prefix="arm-linux-"
-elif [ "${CADENUX_ARCH}" = "omap1510" ] ; then
- prefix="arm-linux-"
-elif [ "${CADENUX_ARCH}" = "dm310" ] ; then
- prefix="arm-linux-"
-else
- prefix=""
-fi
-
if [ $# -lt 2 ] ; then
echo "Error: missing argument"
- echo "Usage: mkimage [--LAddr n] [--EAddr n] [--NoHeader] <input-Bin> <out-RR>"
+ echo "Usage: mkimage [--Prefix prefix] [--LAddr n] [--EAddr n] [--NoHeader] <input-Bin> <out-RR>"
exit 1
fi
@@ -128,6 +106,7 @@ fi
LoadAddr="00000000" # Note: hex val *without* proceeding "0x"
EntryAddr="0xFFFFFFFF" # Note: hex val *with* procedding "0x"
+unset prefix
Header="y"
LAddrSupplied="n"
EAddrSupplied="n"
@@ -135,6 +114,11 @@ compress="n"
while [ $# -gt 0 ] ; do
case "$1" in
+ --Prefix)
+ shift;
+ prefix="$1"
+ shift
+ ;;
--LAddr )
shift
LoadAddr="$1"