]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blobdiff - ipc-bios.mak
am65xx: Remove dependence on DEVMEM entry
[ipc/ipcdev.git] / ipc-bios.mak
index d4bbee262e77e9dafff75eb8ba1b401a032a4c36..81d6942c3a615108a246c503d3568c4a47faaac1 100644 (file)
@@ -1,5 +1,5 @@
 #
-#   Copyright (c) 2012-2015, Texas Instruments Incorporated
+#   Copyright (c) 2012-2018, Texas Instruments Incorporated
 #
 #   Redistribution and use in source and binary forms, with or without
 #   modification, are permitted provided that the following conditions
@@ -55,7 +55,9 @@ else
 packageprefix := $(prefix)
 endif
 
-include ./products.mak
+#Products.mak can be overriden by SDK top level Rules.make file
+RULES_MAKE ?= ./products.mak
+include $(RULES_MAKE)
 
 #
 # Set XDCARGS to some of the variables above.  XDCARGS are passed
@@ -75,7 +77,6 @@ XDCARGS= \
     PLATFORM=\"$(PLATFORM)\" \
     BIOS_SMPENABLED=\"$(BIOS_SMPENABLED)\" \
     ti.targets.C64P=\"$(ti.targets.C64P)\" \
-    ti.targets.C64P_big_endian=\"$(ti.targets.C64P_big_endian)\" \
     ti.targets.C674=\"$(ti.targets.C674)\" \
     ti.targets.arm.elf.Arm9=\"$(ti.targets.arm.elf.Arm9)\" \
     ti.targets.arm.elf.A8F=\"$(ti.targets.arm.elf.A8F)\" \
@@ -83,16 +84,16 @@ XDCARGS= \
     ti.targets.arm.elf.M3=\"$(ti.targets.arm.elf.M3)\" \
     ti.targets.arm.elf.M4=\"$(ti.targets.arm.elf.M4)\" \
     ti.targets.arm.elf.M4F=\"$(ti.targets.arm.elf.M4F)\" \
+    ti.targets.arm.elf.R5F=\"$(ti.targets.arm.elf.R5F)\" \
     ti.targets.elf.C64P=\"$(ti.targets.elf.C64P)\" \
-    ti.targets.elf.C64P_big_endian=\"$(ti.targets.elf.C64P_big_endian)\" \
     ti.targets.elf.C64T=\"$(ti.targets.elf.C64T)\" \
     ti.targets.elf.C66=\"$(ti.targets.elf.C66)\" \
-    ti.targets.elf.C66_big_endian=\"$(ti.targets.elf.C66_big_endian)\" \
     ti.targets.elf.C674=\"$(ti.targets.elf.C674)\" \
     ti.targets.arp32.elf.ARP32=\"$(ti.targets.arp32.elf.ARP32)\" \
     ti.targets.arp32.elf.ARP32_far=\"$(ti.targets.arp32.elf.ARP32_far)\" \
     gnu.targets.arm.A8F=\"$(gnu.targets.arm.A8F)\" \
-    gnu.targets.arm.A15F=\"$(gnu.targets.arm.A15F)\"
+    gnu.targets.arm.A15F=\"$(gnu.targets.arm.A15F)\" \
+    gnu.targets.arm.A53F=\"$(gnu.targets.arm.A53F)\"
 
 ifeq ($(MAKECMDGOALS),release)
     XDCARGS += GOAL=release
@@ -104,21 +105,22 @@ endif
 XDCPKG := $(XDC_INSTALL_DIR)/bin/xdcpkg
 
 # Check for Windows specific env vars to determine if we are on Windows
-ifeq (,$(findstring :,$(WINDIR)$(windir)$(COMSPEC)$(comspec)))
-   FILTER = grep -v
-else
-   # Find is the rough equivalent of grep on Windows
-   FILTER = find /v
+ifneq (,$(findstring :,$(WINDIR)$(windir)$(COMSPEC)$(comspec)))
    # Replace '/' with '\' because cmd.exe requires '\'s in command names
    XDCPKG := $(subst /,\,$(XDCPKG))
 endif
 
-LIST = $(shell $(XDCPKG) ./packages | $(FILTER) "examples")
+LIST = $(shell $(XDCPKG) ./packages)
 
 #
 # Set XDCPATH to contain necessary repositories.
 #
 XDCPATH = $(BIOS_INSTALL_DIR)/packages
+ifeq ($(PDK_INSTALL_DIR),)
+XDCPATH = $(BIOS_INSTALL_DIR)/packages
+else
+XDCPATH = $(BIOS_INSTALL_DIR)/packages;${PDK_INSTALL_DIR}/packages
+endif
 export XDCPATH
 
 #
@@ -143,12 +145,16 @@ all:
 # build everything in the Bios IPC package
        @$(XDC) -P $(LIST)
 
+interfaces:
+       @echo building interfaces for  ipc packages ...
+       @$(patsubst ${JOBS},,$(XDC)) .interfaces -P $(LIST)
+
 libs:
        @echo "#"
        @echo "# Making $@ ..."
        @$(XDC) .dlls -P $(patsubst %/tests,,$(LIST))
 
-release:
+release: interfaces
        @echo building ipc packages ...
 # create a XDC release for the Bios IPC package
        @$(XDC) release -P $(LIST)