Merged from master, added a15 support for k2l, c66ak2e
[keystone-rtos/edma3_lld.git] / makerules / platform.mk
index 4765de179bedb0916b6c2eb4c34b7528fbefc1d4..3acb963deb40bc4929ffc60fa070540c0afb6dd9 100755 (executable)
@@ -111,12 +111,28 @@ endif
 # tci6638k2k (Kepler2) EVM
 ifeq ($(PLATFORM),tci6638k2k-evm)
  SOC = tci6638k2k
+ CFLAGS_LOCAL_a15host += -DGENERIC
  PLATFORM_XDC = "ti.platforms.evmTCI6638K2K"
 endif
 
+# tci6630k2l EVM
+ifeq ($(PLATFORM),tci6630k2l-evm)
+ SOC = tci6630k2l
+ CFLAGS_LOCAL_a15host += -DGENERIC
+ PLATFORM_XDC = "ti.platforms.evmTCI6630K2L"
+endif
+
+# c66ak2e EVM
+ifeq ($(PLATFORM),c66ak2e-evm)
+ SOC = c66ak2e
+ CFLAGS_LOCAL_a15host += -DGENERIC
+ PLATFORM_XDC = "ti.platforms.evmC66AK2E"
+endif
+
 # tci6636k2h (Hawking) EVM
 ifeq ($(PLATFORM),tci6636k2h-evm)
  SOC = tci6636k2h
+ CFLAGS_LOCAL_a15host += -DGENERIC
  PLATFORM_XDC = "ti.platforms.evmTCI6636K2H"
 endif
 
@@ -208,6 +224,9 @@ ifeq ($(CORE),c6xdsp)
  ifeq ($(SOC),c6608)
   ISA = 66
  endif
+ ifeq ($(SOC),c66ak2e)
+  ISA = 66
+ endif
  ifeq ($(SOC),c6616)
   ISA = 66
  endif
@@ -226,6 +245,9 @@ ifeq ($(CORE),c6xdsp)
  ifeq ($(SOC),tci6638k2k)
   ISA = 66
  endif
+ ifeq ($(SOC),tci6630k2l)
+  ISA = 66
+ endif
  ifeq ($(SOC),tci6636k2h)
   ISA = 66
  endif
@@ -278,7 +300,9 @@ ifeq ($(ISA),a15)
 
   # Define the file extensions
   OBJEXT = o$(FORMAT_EXT)$(ISA)$(ENDIAN_EXT)
+  OBJEXT_SO = $(OBJEXT)_so
   LIBEXT = a$(FORMAT_EXT)$(ISA)$(ENDIAN_EXT)
+  LIBEXT_SO = $(LIBEXT)_so
   EXEEXT = x$(FORMAT_EXT)$(ISA)$(ENDIAN_EXT)
   ASMEXT = s$(FORMAT_EXT)$(ISA)$(ENDIAN_EXT)
 endif
@@ -426,16 +450,16 @@ ifeq ($(ISA),a8)
     endif
     ifeq ($(ENDIAN),big)
       ENDIAN_EXT = ef
-       else
-         ENDIAN_EXT = f
+  else
+    ENDIAN_EXT = f
     endif
-       COMPILER = TMS470
+  COMPILER = TMS470
   else
     TARGET_XDC = gnu.targets.arm.A8F
     CFLAGS_LOCAL_a8host += -DGCC_BUILD
-       FORMAT_EXT =
-       ENDIAN_EXT = fg
-       COMPILER = LINARO_GCC
+  FORMAT_EXT =
+  ENDIAN_EXT = fg
+  COMPILER = LINARO_GCC
   endif
 
   # Define the file extensions