summaryrefslogtreecommitdiff
path: root/nuttx/configs/z80sim/README.txt
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/z80sim/README.txt')
-rw-r--r--nuttx/configs/z80sim/README.txt48
1 files changed, 30 insertions, 18 deletions
diff --git a/nuttx/configs/z80sim/README.txt b/nuttx/configs/z80sim/README.txt
index 2a610899c..3edc6ad71 100644
--- a/nuttx/configs/z80sim/README.txt
+++ b/nuttx/configs/z80sim/README.txt
@@ -23,11 +23,10 @@ Configuring NuttX
This configuration performs a simple, minimal OS test using
examples/ostest. This can be configurated as follows:
- cd tools
- ./configure.sh z80sim/ostest
- cd -
- . ./setenv.sh
-
+ cd tools
+ ./configure.sh z80sim/ostest
+ cd -
+ . ./setenv.sh
nsh
This configuration file builds NSH (examples/nsh). This
@@ -36,10 +35,10 @@ Configuring NuttX
This configuration can be selected by:
- cd tools
- ./configure.sh z80sim/nsh
- cd -
- . ./setenv.sh
+ cd tools
+ ./configure.sh z80sim/nsh
+ cd -
+ . ./setenv.sh
pashello
Configures to use examples/pashello for execution from FLASH
@@ -50,10 +49,10 @@ Configuring NuttX
This configuration can be selected by:
- cd tools
- ./configure.sh z80sim/pashello
- cd -
- . ./setenv.sh
+ cd tools
+ ./configure.sh z80sim/pashello
+ cd -
+ . ./setenv.sh
Building the SDCC toolchain
^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -95,11 +94,11 @@ has some compatibilty problems with the older SDCC compiler. For one, you
will need to change the Z80 assember name and options in the Make.defs
files as follows:
--AS = as-z80
-+AS = sdasz80
+-AS = as-z80
++AS = sdasz80
-- @$(AS) $(ASFLAGS) $2 $1
-+ $(AS) $(ASFLAGS) $1
+- @$(AS) $(ASFLAGS) $2 $1
++ $(AS) $(ASFLAGS) $1
For another, I had other problems building with that 20091106 that look
like compiler bugs. If you are using UBUNTU 9.10, you may have to either
@@ -107,6 +106,9 @@ like compiler bugs. If you are using UBUNTU 9.10, you may have to either
the older stable releases, or (2) wait for the next stable SDCC release
after 2.9.0.
+See below: If you wish to continue using the older SDCC toolchain, you
+must now also add CONFIG_SDCC_OLD=y to your configuration file.
+
Newer SDCC Versions
^^^^^^^^^^^^^^^^^^^
@@ -127,4 +129,14 @@ This is the text of bug 3468951 reported on the SourceForge website:
sdcc-2.6.0-asz80-symlen.patch is unnecessary, and it and the corresponding
section from the README can be removed.
-These changes have not yet been incorporated or verified. \ No newline at end of file
+These changes *have* been incorporated but only partially verified. In order
+to get a successful compilation, I had to copy stdarg.h out of the SDCC source
+(at sdcc/device/include/stdarg.h) to include/nuttx/stdarg.h.
+
+There are also some library related issues when you get to the final build
+that I have not looked into yet.
+
+If you want to back out these change and continue to use the older toolchain
+in your build, simpy define the following in your configuration file:
+
+ CONFIG_SDCC_OLD=y