]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/commitdiff
makefile: Update makefile template to create lib directory 3.43.00.01 3.43.01.02
authorSam Nelson <sam.nelson@ti.com>
Fri, 27 May 2016 18:07:30 +0000 (14:07 -0400)
committerAngela Stegmaier <angelabaker@ti.com>
Fri, 27 May 2016 18:13:39 +0000 (13:13 -0500)
Without this, build will fail, when building for A15 targets alone

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
packages/ti/sdo/ipc/makefile_gccArmLto.xdt
packages/ti/sdo/utils/makefile_gccArmLto.xdt

index 4ea8ee52af17b23bca139a79b18251c151907fce..d37e5233649e87f524097cd40897dc025633f7fe 100644 (file)
@@ -1,6 +1,6 @@
 %%{
 /*
- * Copyright (c) 2012-2015 Texas Instruments Incorporated - http://www.ti.com
+ * Copyright (c) 2012-2016 Texas Instruments Incorporated - http://www.ti.com
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -95,10 +95,12 @@ AR = `CGEN`/`TARGET.arBin.cmd` `TARGET.ar.opts`
 %}
 DEL = cmd.exe /q /c del /f
 CP = cmd.exe /q /c copy /Y
+MKDIR = mkdir
 %}
 %else {
 DEL = rm -f
 CP = cp -f
+MKDIR = mkdir -p
 %}
 
 define RM
@@ -169,3 +171,12 @@ clean:
 %for (var i = 0; i < OBJS.length; i++) {
        @-$(call RM, `OBJS[i]`)
 %}
+%if (Build.$private.libDir != null) {
+
+# create output directories
+ifneq ($(MAKECMDGOALS),clean)
+ifeq ($(wildcard `Build.$private.libDir`),)
+    $(shell $(MKDIR) `Build.$private.libDir`)
+endif
+endif
+%}
index 9f03148c30c228591005a6703e4877a3a4d2a3fb..daa3cd03025af9f8720b5210b55b947f1366c41e 100644 (file)
@@ -1,6 +1,6 @@
 %%{
 /*
- * Copyright (c) 2013, Texas Instruments Incorporated
+ * Copyright (c) 2013-2016, Texas Instruments Incorporated
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -82,10 +82,12 @@ AR = `CGEN`/`TARGET.arBin.cmd` `TARGET.ar.opts`
 %}
 DEL = cmd.exe /q /c del /f
 CP = cmd.exe /q /c copy /Y
+MKDIR = mkdir
 %}
 %else {
 DEL = rm -f
 CP = cp -f
+MKDIR = mkdir -p
 %}
 
 define RM
@@ -156,3 +158,12 @@ clean:
 %for (var i = 0; i < OBJS.length; i++) {
        @-$(call RM, `OBJS[i]`)
 %}
+%if (Build.$private.libDir != null) {
+
+# create output directories
+ifneq ($(MAKECMDGOALS),clean)
+ifeq ($(wildcard `Build.$private.libDir`),)
+    $(shell $(MKDIR) `Build.$private.libDir`)
+endif
+endif
+%}