SDOCM00114110 IPC custom build failure with XDCtools core product
[ipc/ipcdev.git] / packages / ti / sdo / ipc / makefile_gccArmLto.xdt
index 3876d175db6da842f7a853db90270c80c964e06a..0181edcb3114f56f05b4435c2cb4893455e18d7f 100644 (file)
 %%}
 %%{
     var File = xdc.module("xdc.services.io.File");
-
     var BIOS = xdc.module("ti.sysbios.BIOS");
-
     var Build = xdc.module("ti.sdo.ipc.Build");
-
     var TARGET = $args[0];
-
     var XDCROOT = String(environment['xdc.rootDir'] + '/packages/').replace(/\\/g, "/");
 
     var XOPTS = '-I "' + XDCROOT + '"'
@@ -68,11 +64,10 @@ XDC_ROOT  = `XDCROOT`
 BUILD_DEFS = `Build.getDefs()`
 
 BIOS_INC  = -I"`xdc.getPackageRepository("ti.sysbios")`"
-
+TARGET_INC  = -I"`xdc.getPackageRepository("ti.targets")`"
 IPC_INC    = -I"`xdc.getPackageRepository("ti.sdo.ipc")`"
-
 UTILS_INC    = -I"`xdc.getPackageRepository("ti.sdo.utils")`"
-
+INCS = $(BIOS_INC) $(TARGET_INC) $(IPC_INC) $(UTILS_INC)
 
 CC = `CGEN`/`TARGET.ccBin.cmd` $(CCOPTS) -I `CGEN`/arm-none-eabi/include
 ASM = `CGEN`/`TARGET.asmBin.cmd` $(CCOPTS) -I `CGEN`/arm-none-eabi/include
@@ -96,12 +91,12 @@ endef
 
 define ASSEMBLE
        @echo asm`TARGET.suffix` $< ...
-       @$(ASM) $(BUILD_DEFS) `XOPTS` $(BIOS_INC) $<
+       @$(ASM) $(BUILD_DEFS) `XOPTS` $(INCS) $<
 endef
 
 define COMPILE
        @echo cl`TARGET.suffix` $< ...
-       @$(CC) $(BUILD_DEFS) `XOPTS` $(BIOS_INC) $(IPC_INC) $(UTILS_INC) $<
+       @$(CC) $(BUILD_DEFS) `XOPTS` $(INCS) $<
 endef
 
 %var LIB = "ipc.a" + TARGET.suffix;