diff options
Diffstat (limited to 'nuttx/arch')
-rw-r--r-- | nuttx/arch/z80/src/Makefile.sdccl | 3 | ||||
-rw-r--r-- | nuttx/arch/z80/src/Makefile.sdccw | 3 | ||||
-rw-r--r-- | nuttx/arch/z80/src/ez80/Kconfig | 9 | ||||
-rw-r--r-- | nuttx/arch/z80/src/z8/Kconfig | 9 | ||||
-rw-r--r-- | nuttx/arch/z80/src/z80/Kconfig | 42 |
5 files changed, 61 insertions, 5 deletions
diff --git a/nuttx/arch/z80/src/Makefile.sdccl b/nuttx/arch/z80/src/Makefile.sdccl index 3ccf2e33e..cbb3f8656 100644 --- a/nuttx/arch/z80/src/Makefile.sdccl +++ b/nuttx/arch/z80/src/Makefile.sdccl @@ -147,6 +147,9 @@ nuttx.lnk: echo "-l $(TOPDIR)/lib/$$LIB" >> nuttx.lnk ;\ done @echo "-l $(SDCCLIB)" >>nuttx.lnk # Name of SDCC z80 library +ifneq ($(CONFIG_LINKER_HOME_AREA),) + @echo "-b _HOME=$(CONFIG_LINKER_HOME_AREA)" >>nuttx.lnk # Start of _HOME area +endif ifneq ($(CONFIG_LINKER_CODE_AREA),) @echo "-b _CODE=$(CONFIG_LINKER_CODE_AREA)" >>nuttx.lnk # Start of _CODE area else diff --git a/nuttx/arch/z80/src/Makefile.sdccw b/nuttx/arch/z80/src/Makefile.sdccw index 3c36439d9..372786a87 100644 --- a/nuttx/arch/z80/src/Makefile.sdccw +++ b/nuttx/arch/z80/src/Makefile.sdccw @@ -145,6 +145,9 @@ nuttx.lnk: @echo -l libboard$(LIBEXT)>>nuttx.lnk $(Q) for %%G in ($(LINKLIBS)) do ( echo -l $(TOPDIR)\lib\%%G>> nuttx.lnk ) @echo -l $(SDCCLIB)>>nuttx.lnk +ifneq ($(CONFIG_LINKER_HOME_AREA),) + @echo -b _HOME=$(CONFIG_LINKER_HOME_AREA)>>nuttx.lnk +endif ifneq ($(CONFIG_LINKER_CODE_AREA),) @echo -b _CODE=$(CONFIG_LINKER_CODE_AREA)>>nuttx.lnk else diff --git a/nuttx/arch/z80/src/ez80/Kconfig b/nuttx/arch/z80/src/ez80/Kconfig index d257ca285..76cdd5f9f 100644 --- a/nuttx/arch/z80/src/ez80/Kconfig +++ b/nuttx/arch/z80/src/ez80/Kconfig @@ -31,6 +31,15 @@ config EZ80_EMAC endmenu +# The ZiLOG ZDS-II Windows toolchain is the only toolchain available for +# the ez80. +# + +config EZ80_TOOLCHAIN_ZDSII + bool + default y if ARCH_CHIP_EZ80 + default n if !ARCH_CHIP_EZ80 + if EZ80_EMAC config EZ80_FIAD diff --git a/nuttx/arch/z80/src/z8/Kconfig b/nuttx/arch/z80/src/z8/Kconfig index 2bf89905e..79bb5eb5c 100644 --- a/nuttx/arch/z80/src/z8/Kconfig +++ b/nuttx/arch/z80/src/z8/Kconfig @@ -17,4 +17,13 @@ config Z8_UART1 default y select ARCH_HAVE_UART1 +# The ZiLOG ZDS-II Windows toolchain is the only toolchain available for +# the ez80. +# + +config Z8_TOOLCHAIN_ZDSII + bool + default y if ARCH_CHIP_Z8 + default n if !ARCH_CHIP_Z8 + endif diff --git a/nuttx/arch/z80/src/z80/Kconfig b/nuttx/arch/z80/src/z80/Kconfig index 233b6ec90..8bebdfae2 100644 --- a/nuttx/arch/z80/src/z80/Kconfig +++ b/nuttx/arch/z80/src/z80/Kconfig @@ -6,18 +6,50 @@ if ARCH_CHIP_Z80 choice - prompt "Toolchain Selection" - default Z80_TOOLCHAIN_SDCCW if HOST_WINDOWS - default Z80_TOOLCHAIN_SDCCL if !HOST_WINDOWS + prompt "Toolchain Selection" + default Z80_TOOLCHAIN_SDCCW if HOST_WINDOWS + default Z80_TOOLCHAIN_SDCCL if !HOST_WINDOWS config Z80_TOOLCHAIN_SDCCL bool "SDCC for Linux, MAC OSX, or Cygwin" depends on !WINDOWS_NATIVE config Z80_TOOLCHAIN_SDCCW - bool "SDCC for Windows" - depends on HOST_WINDOWS + bool "SDCC for Windows" + depends on HOST_WINDOWS endchoice +config LINKER_HOME_AREA + hex "Start of _HOME area" + default 0x0000 + ---help--- + Start of the linker HOME area. Default: 0x0000 + +config LINKER_CODE_AREA + hex "Start of _CODE area" + default 0x0200 + ---help--- + Start of the linker _CODE area. Default: 0x0200 + +config LINKER_DATA_AREA + hex "Start of _DATA area" + default 0x8000 + ---help--- + Start of the linker _DATA area. Default: 0x8000 + +config LINKER_ROM_AT_0000 + bool "ROM at 0x0000" + default n + ---help--- + Some architectures may have ROM located at address zero. In this + case, a special version of the "head" file must be used. + +config ARCH_HAVEHEAD + bool "Board-specific Head File" + default n + ---help--- + Use a board-specific version of the "head" file in the + configs/<board-name>/src directory + endif |