Browse Source

Fix error leading to Makefile error for all non AVR CPUs even when SUBARCH is set

Pierre Muller 2 years ago
parent
commit
c00fe41625
2 changed files with 2 additions and 2 deletions
  1. 1 1
      rtl/freertos/Makefile
  2. 1 1
      rtl/freertos/Makefile.fpc

+ 1 - 1
rtl/freertos/Makefile

@@ -468,11 +468,11 @@ CPU_UNITS=atmega808 atmega809 atmega1608 atmega1609 atmega3208 atmega3209 \
 	  attiny816 attiny817 attiny1604 attiny1606 attiny1607 attiny1614 \
 	  attiny1616 attiny1617 attiny1624 attiny1626 attiny1627 attiny3214 attiny3216 attiny3217
 CPU_UNITS_DEFINED=1
-endif
 ifeq ($(CPU_UNITS_DEFINED),)
 $(error No CPUs enabled for given SUBARCH, pass either a SUBARCH or set CPU_UNITS_DEFINED=1 if you know what you are doing)
 endif
 endif
+endif
 ifeq ($(ARCH),i386)
 CPU_SPECIFIC_COMMON_UNITS=sysutils math classes fgl macpas typinfo types rtlconsts getopts lineinfo
 CPU_UNITS=multiboot

+ 1 - 1
rtl/freertos/Makefile.fpc

@@ -166,11 +166,11 @@ CPU_UNITS=atmega808 atmega809 atmega1608 atmega1609 atmega3208 atmega3209 \
           attiny816 attiny817 attiny1604 attiny1606 attiny1607 attiny1614 \
           attiny1616 attiny1617 attiny1624 attiny1626 attiny1627 attiny3214 attiny3216 attiny3217
 CPU_UNITS_DEFINED=1
-endif
 ifeq ($(CPU_UNITS_DEFINED),)
 $(error No CPUs enabled for given SUBARCH, pass either a SUBARCH or set CPU_UNITS_DEFINED=1 if you know what you are doing)
 endif
 endif
+endif
 
 ifeq ($(ARCH),i386)
 CPU_SPECIFIC_COMMON_UNITS=sysutils math classes fgl macpas typinfo types rtlconsts getopts lineinfo