Parcourir la source

Fix z80-embedded target

Pierre Muller il y a 2 ans
Parent
commit
2d42040b1d
3 fichiers modifiés avec 16 ajouts et 0 suppressions
  1. 4 0
      rtl/embedded/Makefile
  2. 6 0
      rtl/embedded/Makefile.fpc
  3. 6 0
      rtl/embedded/rtl.cfg

+ 4 - 0
rtl/embedded/Makefile

@@ -1013,6 +1013,10 @@ ifeq ($(ARCH),i8086)
 override [email protected]
 CPU_SPECIFIC_COMMON_UNITS=
 endif
+ifeq ($(ARCH),z80)
+override [email protected]
+CPU_SPECIFIC_COMMON_UNITS=
+endif
 ifeq ($(ARCH),x86_64)
 endif
 ifeq ($(ARCH),m68k)

+ 6 - 0
rtl/embedded/Makefile.fpc

@@ -198,6 +198,12 @@ override [email protected]
 CPU_SPECIFIC_COMMON_UNITS=
 endif
 
+ifeq ($(ARCH),z80)
+# Always include rtl.cfg config file for z80
+override [email protected]
+CPU_SPECIFIC_COMMON_UNITS=
+endif
+
 ifeq ($(ARCH),x86_64)
 # CPU_UNITS=$(MULTIBOOTUNIT)
 endif

+ 6 - 0
rtl/embedded/rtl.cfg

@@ -9,3 +9,9 @@
 -CX
 -XX
 #endif
+# Use same options for z80 CPU
+#ifdef CPUZ80
+-Cs2048
+-CX
+-XX
+#endif