瀏覽代碼

Fix z80-embedded target

Pierre Muller 2 年之前
父節點
當前提交
2d42040b1d
共有 3 個文件被更改,包括 16 次插入0 次删除
  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