Bug 480256 - Fix pattern for finding platform libraries
authorDoug Schaefer <dschaefer@qnx.com>
Wed, 21 Oct 2015 01:20:45 +0000 (21:20 -0400)
committerGerrit Code Review @ Eclipse.org <gerrit@eclipse.org>
Wed, 21 Oct 2015 02:30:40 +0000 (22:30 -0400)
Change-Id: I781651c1204a7fb348271b69817260f0bf3beb81

toolchains/arduino/org.eclipse.cdt.arduino.core/templates/board.mk

index 0d1b43e..e2c8974 100644 (file)
@@ -34,14 +34,14 @@ LIBRARIES_OBJS = \
 <#list libraries_srcs as file>
 <#assign cpp = file?matches("${libraries_path}/(.*?)/.*?/(.*)\\.cpp")>
 <#if !cpp>
-<#assign cpp = file?matches("${platform_path}/libraries/(.*?)/.*?/(.*)\\.cpp")>
+<#assign cpp = file?matches("${platform_path}/libraries/(.*?)/(.*)\\.cpp")>
 </#if>
 <#if cpp>
        ${build_path}/libraries/${cpp?groups[1]}/${cpp?groups[2]}.cpp.o \
 </#if>
 <#assign c = file?matches("${libraries_path}/(.*?)/.*?/(.*)\\.c")>
 <#if !c>
-<#assign c = file?matches("${platform_path}/libraries/(.*?)/.*?/(.*)\\.c")>
+<#assign c = file?matches("${platform_path}/libraries/(.*?)/(.*)\\.c")>
 </#if>
 <#if c>
        ${build_path}/libraries/${c?groups[1]}/${c?groups[2]}.c.o \
@@ -107,7 +107,7 @@ ${build_path}/platform/${S?groups[1]}.S.o: ${file}
 <#list libraries_srcs as file>
 <#assign cpp = file?matches("${libraries_path}/(.*?)/.*?/(.*)\\.cpp")>
 <#if !cpp>
-<#assign cpp = file?matches("${platform_path}/libraries/(.*?)/.*?/(.*)\\.cpp")>
+<#assign cpp = file?matches("${platform_path}/libraries/(.*?)/(.*)\\.cpp")>
 </#if>
 <#if cpp>
 ${build_path}/libraries/${cpp?groups[1]}/${cpp?groups[2]}.cpp.o: ${file}
@@ -117,7 +117,7 @@ ${build_path}/libraries/${cpp?groups[1]}/${cpp?groups[2]}.cpp.o: ${file}
 </#if>
 <#assign c = file?matches("${libraries_path}/(.*?)/.*?/(.*)\\.c")>
 <#if !c>
-<#assign c = file?matches("${platform_path}/libraries/(.*?)/.*?/(.*)\\.c")>
+<#assign c = file?matches("${platform_path}/libraries/(.*?)/(.*)\\.c")>
 </#if>
 <#if c>
 ${build_path}/libraries/${c?groups[1]}/${c?groups[2]}.c.o: ${file}