Browse Source

Add dependency of dos unit to objpas unit due to use of objfpc mode for FreeRTOS OS

Pierre Muller 1 year ago
parent
commit
fbec954de9
2 changed files with 7 additions and 0 deletions
  1. 2 0
      rtl/freertos/Makefile
  2. 5 0
      rtl/freertos/Makefile.fpc

+ 2 - 0
rtl/freertos/Makefile

@@ -892,6 +892,8 @@ endif
 CPU_UNITS=
 SYSINIT_UNITS=
 CPU_SPECIFIC_COMMON_UNITS=
+DOSDIR=.
+DOS_DEPS_OS=objpas$(PPUEXT)
 ifeq ($(ARCH),arm)
 CPU_SPECIFIC_COMMON_UNITS=sysutils math classes fgl macpas typinfo types rtlconsts getopts lineinfo
 ifeq ($(SUBARCH),armv7m)

+ 5 - 0
rtl/freertos/Makefile.fpc

@@ -71,6 +71,11 @@ CPU_UNITS=
 SYSINIT_UNITS=
 CPU_SPECIFIC_COMMON_UNITS=
 
+# Dos unit, local source
+DOSDIR=.
+# Dos unit uses objfpc mode
+DOS_DEPS_OS=objpas$(PPUEXT)
+
 ifeq ($(ARCH),arm)
 CPU_SPECIFIC_COMMON_UNITS=sysutils math classes fgl macpas typinfo types rtlconsts getopts lineinfo
 ifeq ($(SUBARCH),armv7m)