Merged from master, added a15 support for k2l, c66ak2e
[keystone-rtos/edma3_lld.git] / makerules / platform.mk
index bbd1135c137a947d932e13efff11cef9ec680d36..3acb963deb40bc4929ffc60fa070540c0afb6dd9 100755 (executable)
@@ -13,7 +13,7 @@
 # tda2xx (Vayu) Simulator
 ifeq ($(PLATFORM),tda2xx-evm)
  SOC = tda2xx
- PLATFORM_XDC = "ti.platforms.simVayu"
+ PLATFORM_XDC = "ti.platforms.evmDRA7XX"
 endif
 
 # ti816x (Netra) catalog EVM
@@ -118,12 +118,14 @@ 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
 
@@ -254,6 +256,11 @@ ifeq ($(CORE),c6xdsp)
  endif
 endif
 
+# EVE - arp32
+ifeq ($(CORE),eve)
+ ISA = arp32
+endif
+
 # Platform and SOC is generic; use the core name same as ISA (eg: 674)
 ifeq ($(SOC),generic)
   ISA = $(CORE)
@@ -479,6 +486,28 @@ ifeq ($(ISA),arm9)
   ASMEXT = s$(FORMAT_EXT)9$(ENDIAN_EXT)
 endif
 
+ifeq ($(ISA),arp32)
+  ifeq ($(FORMAT),ELF)
+    TARGET_XDC = ti.targets.arp32.elf.ARP32_far
+    ENDIAN_EXT = f
+    FORMAT_EXT = e
+  else
+    TARGET_XDC = ti.targets.arp32.elf.ARP32
+  endif
+
+  # If ENDIAN is set to "big", set ENDIAN_EXT to "e", that would be used in
+  #    in the filename extension of object/library/executable files
+  ifeq ($(ENDIAN),big)
+    ENDIAN_EXT = e
+  endif
+
+  # Define the file extensions
+  OBJEXT = o$(FORMAT_EXT)$(ISA)$(ENDIAN_EXT)
+  LIBEXT = a$(FORMAT_EXT)$(ISA)$(ENDIAN_EXT)
+  EXEEXT = x$(FORMAT_EXT)$(ISA)$(ENDIAN_EXT)
+  ASMEXT = s$(FORMAT_EXT)$(ISA)$(ENDIAN_EXT)
+endif
+
 ifeq (sim,$(findstring sim,$(PLATFORM)))
   OMX_PLATFORM = sim
 endif