diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-12-30 23:34:20 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-12-30 23:34:20 +0000 |
commit | cec4c4d2c9468a0d0234d306c886ba97515b1690 (patch) | |
tree | 326bbe7079e54314b42270d115ae6d39e8f037b8 /nuttx/configs | |
parent | f3532ac59f8b6bb4d4a7239b73b5fcb4b66ed6b1 (diff) | |
download | px4-nuttx-cec4c4d2c9468a0d0234d306c886ba97515b1690.tar.gz px4-nuttx-cec4c4d2c9468a0d0234d306c886ba97515b1690.tar.bz2 px4-nuttx-cec4c4d2c9468a0d0234d306c886ba97515b1690.zip |
More SDCC compilation fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@468 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs')
-rw-r--r-- | nuttx/configs/z80sim/README.txt | 14 | ||||
-rw-r--r-- | nuttx/configs/z80sim/defconfig | 18 | ||||
-rw-r--r-- | nuttx/configs/z80sim/sdcc-2.6.0-asz80-symlen.patch | 11 |
3 files changed, 34 insertions, 9 deletions
diff --git a/nuttx/configs/z80sim/README.txt b/nuttx/configs/z80sim/README.txt index 50be916e1..ff9754c04 100644 --- a/nuttx/configs/z80sim/README.txt +++ b/nuttx/configs/z80sim/README.txt @@ -17,4 +17,18 @@ compatible with this build. First start with the usual steps unpack cd sdcc ./configure + +But before making, we need to apply a patch to the SDCC 2.6.0 source +so that the z80 assembler can handle long symbol names + + Apply sdcc-2.6.0-asz80-symlen.patch + cd sdcc/device/lib + +Then make the SDCC binaries + + cd sdcc make + +and install SDCC: + + sudo make install diff --git a/nuttx/configs/z80sim/defconfig b/nuttx/configs/z80sim/defconfig index a993a6aeb..6141c34b1 100644 --- a/nuttx/configs/z80sim/defconfig +++ b/nuttx/configs/z80sim/defconfig @@ -112,13 +112,13 @@ CONFIG_DEV_CONSOLE=n # o pthread_condtimedwait() depends on signals to wake # up waiting tasks. # -CONFIG_DISABLE_CLOCK=y -CONFIG_DISABLE_POSIX_TIMERS=y -CONFIG_DISABLE_PTHREAD=y -CONFIG_DISABLE_SIGNALS=y -CONFIG_DISABLE_MQUEUE=y -CONFIG_DISABLE_MOUNTPOINT=y -CONFIG_DISABLE_ENVIRON=y +CONFIG_DISABLE_CLOCK=n +CONFIG_DISABLE_POSIX_TIMERS=n +CONFIG_DISABLE_PTHREAD=n +CONFIG_DISABLE_SIGNALS=n +CONFIG_DISABLE_MQUEUE=n +CONFIG_DISABLE_MOUNTPOINT=n +CONFIG_DISABLE_ENVIRON=n # # Misc libc settings @@ -283,7 +283,7 @@ CONFIG_EXAMPLES_NSH_NETMASK=(255<<24|255<<16|255<<8|0) CONFIG_BOOT_FROM_FLASH=n CONFIG_CUSTOM_STACK=n CONFIG_PROC_STACK_SIZE=1024 -CONFIG_PTHREAD_STACK_MIN= -CONFIG_PTHREAD_STACK_DEFAULT= +CONFIG_PTHREAD_STACK_MIN=256 +CONFIG_PTHREAD_STACK_DEFAULT=1024 CONFIG_HEAP_SIZE= CONFIG_HEAP_BASE= diff --git a/nuttx/configs/z80sim/sdcc-2.6.0-asz80-symlen.patch b/nuttx/configs/z80sim/sdcc-2.6.0-asz80-symlen.patch new file mode 100644 index 000000000..d91c18d98 --- /dev/null +++ b/nuttx/configs/z80sim/sdcc-2.6.0-asz80-symlen.patch @@ -0,0 +1,11 @@ +--- sdcc/as/z80/asm.h 2007-12-30 16:49:53.000000000 -0600 ++++ sdcc.orig/as/z80/asm.h 2007-12-30 16:49:14.000000000 -0600 +@@ -65,7 +65,7 @@ + #define RTTERM ')' /* Right expression delimeter */ + + #ifdef SDK +-#define NCPS 80 /* characters per symbol */ ++#define NCPS 32 /* characters per symbol */ + #else /* SDK */ + #define NCPS 8 /* Chars. per symbol */ + #endif /* SDK */ |