Browse Source

* xtensa-freertos requires also SUBARCH being set

git-svn-id: trunk@44870 -
florian 5 years ago
parent
commit
0750fdf410
1 changed files with 7 additions and 0 deletions
  1. 7 0
      utils/fpcm/fpcmake.ini

+ 7 - 0
utils/fpcm/fpcmake.ini

@@ -295,6 +295,13 @@ endif
 override FPCOPT+=-Cp$(SUBARCH)
 endif
 
+ifeq ($(FULL_TARGET),xtensa-freertos)
+ifeq ($(SUBARCH),)
+$(error When compiling for xtensa-freertos, a sub-architecture (e.g. SUBARCH=lx106 or SUBARCH=lx6) must be defined)
+endif
+override FPCOPT+=-Cp$(SUBARCH)
+endif
+
 # Full name of the target, including CPU and OS. For OSs limited
 # to 8.3 we only use the target OS
 ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)