diff options
author | Sam Nelson <sam.nelson@ti.com> | 2016-05-27 14:07:30 -0400 |
---|---|---|
committer | Angela Stegmaier <angelabaker@ti.com> | 2016-05-27 13:13:39 -0500 |
commit | 9e6ebc02c14ed4150dad5d45d8a7e35258bf37ad (patch) | |
tree | 258d1b909682d91fe11924272c3ff7f42df489ee | |
parent | ae13735e0baed6edff5f61687eb017141e2a7c7a (diff) | |
download | ipc-9e6ebc02c14ed4150dad5d45d8a7e35258bf37ad.tar.gz |
makefile: Update makefile template to create lib directory3.43.01.023.43.00.01
Without this, build will fail, when building for A15 targets alone
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
-rw-r--r-- | packages/ti/sdo/ipc/makefile_gccArmLto.xdt | 13 | ||||
-rw-r--r-- | packages/ti/sdo/utils/makefile_gccArmLto.xdt | 13 |
2 files changed, 24 insertions, 2 deletions
diff --git a/packages/ti/sdo/ipc/makefile_gccArmLto.xdt b/packages/ti/sdo/ipc/makefile_gccArmLto.xdt index 4ea8ee5..d37e523 100644 --- a/packages/ti/sdo/ipc/makefile_gccArmLto.xdt +++ b/packages/ti/sdo/ipc/makefile_gccArmLto.xdt @@ -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 +%} diff --git a/packages/ti/sdo/utils/makefile_gccArmLto.xdt b/packages/ti/sdo/utils/makefile_gccArmLto.xdt index 9f03148..daa3cd0 100644 --- a/packages/ti/sdo/utils/makefile_gccArmLto.xdt +++ b/packages/ti/sdo/utils/makefile_gccArmLto.xdt @@ -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 +%} |