summaryrefslogtreecommitdiff
path: root/nuttx/configs/qemu-i486/ostest
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-08 00:27:35 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-08 00:27:35 +0000
commit8f66f424602e26f0a43a62beaa3c2aec7775c890 (patch)
tree28249f121ebc9fd071e24222304b4c0770b6fd86 /nuttx/configs/qemu-i486/ostest
parentddd126cb2969bec42a4430b7d8fcdd45de4a42c1 (diff)
downloadpx4-nuttx-8f66f424602e26f0a43a62beaa3c2aec7775c890.tar.gz
px4-nuttx-8f66f424602e26f0a43a62beaa3c2aec7775c890.tar.bz2
px4-nuttx-8f66f424602e26f0a43a62beaa3c2aec7775c890.zip
Add support for platoform specific ROMFS startup files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3350 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/qemu-i486/ostest')
-rw-r--r--nuttx/configs/qemu-i486/ostest/Make.defs8
-rwxr-xr-xnuttx/configs/qemu-i486/ostest/setenv.sh8
2 files changed, 13 insertions, 3 deletions
diff --git a/nuttx/configs/qemu-i486/ostest/Make.defs b/nuttx/configs/qemu-i486/ostest/Make.defs
index c27cac0ef..14efb3f32 100644
--- a/nuttx/configs/qemu-i486/ostest/Make.defs
+++ b/nuttx/configs/qemu-i486/ostest/Make.defs
@@ -65,7 +65,15 @@ ARCHPICFLAGS = -fpic
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow
ARCHDEFINES =
+# We have to use a cross-development toolchain under Cygwin because the native
+# Cygwin toolchains don't generate ELF binaries.
+
+ifeq ($(HOSTOS),Cygwin)
+CROSSDEV = i486-elf-
+else
CROSSDEV =
+endif
+
CC = $(CROSSDEV)gcc
CPP = $(CROSSDEV)gcc -E
LD = $(CROSSDEV)ld
diff --git a/nuttx/configs/qemu-i486/ostest/setenv.sh b/nuttx/configs/qemu-i486/ostest/setenv.sh
index 9386b9822..df098332a 100755
--- a/nuttx/configs/qemu-i486/ostest/setenv.sh
+++ b/nuttx/configs/qemu-i486/ostest/setenv.sh
@@ -39,8 +39,10 @@ fi
if [ -z ${PATH_ORIG} ]; then export PATH_ORIG=${PATH}; fi
-# Define the following if you are using anything other than the system GCC
-#export NUTTX_BIN=
-#export PATH=${NUTTX_BIN}:/sbin:/usr/sbin:${PATH_ORIG}
+# Uncomment and modify the following if you are using anything other
+# than the system GCC
+# WD=`pwd`
+# export BUILDROOT_BIN="${WD}/../../buildroot/build_i486/staging_dir/bin"
+# export PATH="${BUILDROOT_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
echo "PATH : ${PATH}"