Skip to content

Commit a4d7eab

Browse files
committed
First commit
1 parent 3a64f96 commit a4d7eab

File tree

9 files changed

+745
-0
lines changed

9 files changed

+745
-0
lines changed

.cproject

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<?fileVersion 4.0.0?>
3+
4+
<cproject>
5+
<storageModule moduleId="org.eclipse.cdt.core.settings">
6+
<cconfiguration id="com.xmos.cdt.toolchain.30841826">
7+
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.xmos.cdt.toolchain.30841826" moduleId="org.eclipse.cdt.core.settings" name="XMOS Compiler Collection (xcc)">
8+
<externalSettings/>
9+
<extensions>
10+
<extension id="com.xmos.cdt.core.XEBinaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
11+
<extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
12+
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
13+
<extension id="com.xmos.cdt.core.XMapErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
14+
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
15+
</extensions>
16+
</storageModule>
17+
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
18+
<configuration artifactName="sw_flashlib_example" buildProperties="" description="" id="com.xmos.cdt.toolchain.30841826" name="XMOS Compiler Collection (xcc)" parent="org.eclipse.cdt.build.core.emptycfg">
19+
<folderInfo id="com.xmos.cdt.toolchain.30841826.1961785845" name="/" resourcePath="">
20+
<toolChain id="com.xmos.cdt.toolchain.331533569" name="com.xmos.cdt.toolchain" superClass="com.xmos.cdt.toolchain">
21+
<targetPlatform archList="all" binaryParser="com.xmos.cdt.core.XEBinaryParser" id="com.xmos.cdt.core.platform.312514423" isAbstract="false" osList="linux,win32,macosx" superClass="com.xmos.cdt.core.platform"/>
22+
<builder arguments="-f Makefile" buildPath="${workspace_loc:/sw_flashlib_example}" command="xmake" id="com.xmos.cdt.builder.base.484433574" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="com.xmos.cdt.builder.base"/>
23+
<tool id="com.xmos.cdt.linker.base.564215645" name="XMOS Mapper" superClass="com.xmos.cdt.linker.base">
24+
<inputType id="com.xmos.cdt.linker.input.xm.71127389" name="XM File"/>
25+
<inputType id="com.xmos.cdt.linker.input.1104586842" superClass="com.xmos.cdt.linker.input">
26+
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
27+
</inputType>
28+
<inputType id="com.xmos.cdt.linker.xnInput.293377365" name="XN File" superClass="com.xmos.cdt.linker.xnInput"/>
29+
<inputType id="com.xmos.cdt.linker.xtaInput.621753651" name="XTA input" superClass="com.xmos.cdt.linker.xtaInput"/>
30+
</tool>
31+
<tool id="com.xmos.cdt.c.compiler.base.372649012" name="XMOS C Compiler" superClass="com.xmos.cdt.c.compiler.base">
32+
<inputType id="com.xmos.cdt.c.compiler.input.1533247653" superClass="com.xmos.cdt.c.compiler.input"/>
33+
<inputType id="com.xmos.cdt.c.compilerXNInput.818861648" name="XN File" superClass="com.xmos.cdt.c.compilerXNInput"/>
34+
</tool>
35+
<tool id="com.xmos.cdt.cpp.compiler.base.1161396055" name="XMOS C++ Compiler" superClass="com.xmos.cdt.cpp.compiler.base">
36+
<inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1553804963" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
37+
</tool>
38+
<tool id="com.xmos.cdt.xc.compiler.base.86146009" name="XMOS XC Compiler" superClass="com.xmos.cdt.xc.compiler.base">
39+
<inputType id="com.xmos.cdt.xc.compiler.input.679575792" name="XC Sources" superClass="com.xmos.cdt.xc.compiler.input"/>
40+
<inputType id="com.xmos.cdt.core.xcCompilerXNInput.258588578" name="XN File" superClass="com.xmos.cdt.core.xcCompilerXNInput"/>
41+
</tool>
42+
<tool id="com.xmos.cdt.core.assembler.base.839004633" name="XMOS Assembler" superClass="com.xmos.cdt.core.assembler.base">
43+
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.1797700444" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
44+
<inputType id="com.xmos.cdt.core.asmXNInput.1869517701" name="XN File" superClass="com.xmos.cdt.core.asmXNInput"/>
45+
</tool>
46+
<tool id="com.xmos.cdt.archiver.base.730151905" name="Archiver" superClass="com.xmos.cdt.archiver.base"/>
47+
</toolChain>
48+
</folderInfo>
49+
</configuration>
50+
</storageModule>
51+
<storageModule moduleId="scannerConfiguration">
52+
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"/>
53+
<profile id="com.xmos.cdt.core.XCManagedMakePerProjectProfile">
54+
<buildOutputProvider>
55+
<openAction enabled="false" filePath=""/>
56+
<parser enabled="false"/>
57+
</buildOutputProvider>
58+
<scannerInfoProvider id="specsFile">
59+
<runAction arguments="-E -v ${plugin_state_location}/specs.xc" command="xcc" useDefault="true"/>
60+
<parser enabled="true"/>
61+
</scannerInfoProvider>
62+
</profile>
63+
<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile">
64+
<buildOutputProvider>
65+
<openAction enabled="true" filePath=""/>
66+
<parser enabled="true"/>
67+
</buildOutputProvider>
68+
<scannerInfoProvider id="specsFile">
69+
<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
70+
<parser enabled="true"/>
71+
</scannerInfoProvider>
72+
</profile>
73+
<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile">
74+
<buildOutputProvider>
75+
<openAction enabled="true" filePath=""/>
76+
<parser enabled="true"/>
77+
</buildOutputProvider>
78+
<scannerInfoProvider id="makefileGenerator">
79+
<runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/>
80+
<parser enabled="true"/>
81+
</scannerInfoProvider>
82+
</profile>
83+
<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile">
84+
<buildOutputProvider>
85+
<openAction enabled="false" filePath=""/>
86+
<parser enabled="false"/>
87+
</buildOutputProvider>
88+
<scannerInfoProvider id="specsFile">
89+
<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
90+
<parser enabled="true"/>
91+
</scannerInfoProvider>
92+
</profile>
93+
<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP">
94+
<buildOutputProvider>
95+
<openAction enabled="false" filePath=""/>
96+
<parser enabled="false"/>
97+
</buildOutputProvider>
98+
<scannerInfoProvider id="specsFile">
99+
<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/>
100+
<parser enabled="true"/>
101+
</scannerInfoProvider>
102+
</profile>
103+
<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC">
104+
<buildOutputProvider>
105+
<openAction enabled="false" filePath=""/>
106+
<parser enabled="false"/>
107+
</buildOutputProvider>
108+
<scannerInfoProvider id="specsFile">
109+
<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/>
110+
<parser enabled="true"/>
111+
</scannerInfoProvider>
112+
</profile>
113+
<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile">
114+
<buildOutputProvider>
115+
<openAction enabled="false" filePath=""/>
116+
<parser enabled="false"/>
117+
</buildOutputProvider>
118+
<scannerInfoProvider id="specsFile">
119+
<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
120+
<parser enabled="true"/>
121+
</scannerInfoProvider>
122+
</profile>
123+
<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP">
124+
<buildOutputProvider>
125+
<openAction enabled="false" filePath=""/>
126+
<parser enabled="false"/>
127+
</buildOutputProvider>
128+
<scannerInfoProvider id="specsFile">
129+
<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/>
130+
<parser enabled="true"/>
131+
</scannerInfoProvider>
132+
</profile>
133+
<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC">
134+
<buildOutputProvider>
135+
<openAction enabled="false" filePath=""/>
136+
<parser enabled="false"/>
137+
</buildOutputProvider>
138+
<scannerInfoProvider id="specsFile">
139+
<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/>
140+
<parser enabled="true"/>
141+
</scannerInfoProvider>
142+
</profile>
143+
</storageModule>
144+
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
145+
<storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
146+
<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
147+
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets">
148+
<buildTargets>
149+
<target name="all" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
150+
<buildCommand>xmake</buildCommand>
151+
<buildArguments>-f .makefile</buildArguments>
152+
<buildTarget>all</buildTarget>
153+
<stopOnError>true</stopOnError>
154+
<useDefaultCommand>false</useDefaultCommand>
155+
<runAllBuilders>true</runAllBuilders>
156+
</target>
157+
<target name="app_uart_test.all" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
158+
<buildCommand>xmake</buildCommand>
159+
<buildArguments>-f Makefile</buildArguments>
160+
<buildTarget>app_uart_test.all</buildTarget>
161+
<stopOnError>true</stopOnError>
162+
<useDefaultCommand>true</useDefaultCommand>
163+
<runAllBuilders>true</runAllBuilders>
164+
</target>
165+
</buildTargets>
166+
</storageModule>
167+
</cconfiguration>
168+
</storageModule>
169+
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
170+
<project id="sw_flashlib_example.null.306906532" name="sw_flashlib_example"/>
171+
</storageModule>
172+
</cproject>

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*/.build_*/*
2+
*/bin/*
3+
*.o
4+
*.xe
5+
*.vcd
6+
*.s
7+
*.xi
8+
*.i
9+
*.a

.project

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<?XL version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>sw_flashlib_example</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
10+
<triggers>clean,full,incremental,</triggers>
11+
<arguments>
12+
<dictionary>
13+
<key>?name?</key>
14+
<value></value>
15+
</dictionary>
16+
<dictionary>
17+
<key>org.eclipse.cdt.make.core.append_environment</key>
18+
<value>true</value>
19+
</dictionary>
20+
<dictionary>
21+
<key>org.eclipse.cdt.make.core.autoBuildTarget</key>
22+
<value>all</value>
23+
</dictionary>
24+
<dictionary>
25+
<key>org.eclipse.cdt.make.core.buildArguments</key>
26+
<value>-f Makefile</value>
27+
</dictionary>
28+
<dictionary>
29+
<key>org.eclipse.cdt.make.core.buildCommand</key>
30+
<value>xmake</value>
31+
</dictionary>
32+
<dictionary>
33+
<key>org.eclipse.cdt.make.core.buildLocation</key>
34+
<value>${workspace_loc:/sw_flashlib_example}</value>
35+
</dictionary>
36+
<dictionary>
37+
<key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
38+
<value>clean</value>
39+
</dictionary>
40+
<dictionary>
41+
<key>org.eclipse.cdt.make.core.contents</key>
42+
<value>org.eclipse.cdt.make.core.activeConfigSettings</value>
43+
</dictionary>
44+
<dictionary>
45+
<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
46+
<value>false</value>
47+
</dictionary>
48+
<dictionary>
49+
<key>org.eclipse.cdt.make.core.enableCleanBuild</key>
50+
<value>true</value>
51+
</dictionary>
52+
<dictionary>
53+
<key>org.eclipse.cdt.make.core.enableFullBuild</key>
54+
<value>true</value>
55+
</dictionary>
56+
<dictionary>
57+
<key>org.eclipse.cdt.make.core.fullBuildTarget</key>
58+
<value>all</value>
59+
</dictionary>
60+
<dictionary>
61+
<key>org.eclipse.cdt.make.core.stopOnError</key>
62+
<value>true</value>
63+
</dictionary>
64+
<dictionary>
65+
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
66+
<value>false</value>
67+
</dictionary>
68+
</arguments>
69+
</buildCommand>
70+
<buildCommand>
71+
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
72+
<arguments>
73+
</arguments>
74+
</buildCommand>
75+
</buildSpec>
76+
<natures>
77+
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
78+
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
79+
<nature>org.eclipse.cdt.core.cnature</nature>
80+
</natures>
81+
</projectDescription>

LICENSE.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Software License Agreement
2+
3+
Copyright (c) 2011, <XMOS Ltd>, All rights reserved.
4+
5+
Additional copyright holders (each contributor holds copyright
6+
over contribution as described in the git commit logs for the repository):
7+
8+
<list additional contributors and github usernames here>
9+
Copyright (c) 2011
10+
11+
The copyright holders hereby grant to any person obtaining a copy of this software (the "Software") and/or its associated
12+
documentation files (the Documentation), the perpetual, irrevocable (except in the case of breach of this license) no-cost,
13+
royalty free, sublicensable rights to use, copy, modify, merge, publish, display, publicly perform, distribute, and/or
14+
sell copies of the Software and the Documentation, together or separately, and to permit persons to whom the Software and/or
15+
Documentation is furnished to do so, subject to the following conditions:
16+
17+
. Redistributions of the Software in source code must retain the above copyright notice, this list of conditions and the
18+
following disclaimers.
19+
20+
. Redistributions of the Software in binary form must reproduce the above copyright notice, this list of conditions and
21+
the following disclaimers in the documentation and/or other materials provided with the distribution.
22+
23+
. Redistributions of the Documentation must retain the above copyright notice, this list of conditions and the following
24+
disclaimers.
25+
26+
Neither the name of XMOS, nor the names of its contributors may be used to endorse or promote products derived from this
27+
Software or the Documentation without specific prior written permission of the copyright holder.
28+
29+
THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
30+
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
31+
CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
32+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR DOCUMENTATION OR THE USE OF OR OTHER
33+
DEALINGS WITH THE SOFTWARE OR DOCUMENTATION.

Makefile

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# This Makefile acts as a composite builder for all the elements
2+
# of this repository.
3+
4+
# It has target patterns for all, clean and test for sub-directories of the
5+
# form dir.target e.g. calling:
6+
#
7+
# xmake app_uart_demo.all
8+
#
9+
# will execute 'xmake all' in the app_uart_demo sub-directory.
10+
#
11+
# In addition the following targets are defined:
12+
#
13+
# all:
14+
#
15+
# This target will build all the applications listed in the BUILD_SUBDIRS
16+
# variable.
17+
#
18+
# plugins:
19+
#
20+
# This target will build all the plugins listed in the PLUGIN_SUBDIRS
21+
# variable
22+
#
23+
# clean:
24+
#
25+
# This target will clean all the applications listed in the BUILD_SUBDIRS
26+
# variable.
27+
#
28+
# clean_plugins:
29+
#
30+
# This target will clean all the plugins listed in the PLUGIN_SUBDIRS
31+
# variable.
32+
#
33+
# test:
34+
#
35+
# This target will make the test make target in all the directories
36+
# listed in TEST_SUBDIRS.
37+
#
38+
39+
TLWARN = $$(warning Source file $1 in top level will not be built)
40+
$(foreach x,$(wildcard *.xc) $(wildcard *.c) $(wildcard *.cpp) $(wildcard *.h) $(wildcard *.S),$(eval $(call TLWARN,$x)))
41+
42+
# This variable should contain a space separated list of all
43+
# the directories containing buildable applications (usually
44+
# prefixed with the app_ prefix)
45+
BUILD_SUBDIRS = app_flashlib_example
46+
47+
# This variable should contain a space separated list of all
48+
# the directories containing buildable plugins (usually
49+
# prefixed with the plugin_ prefix)
50+
PLUGIN_SUBDIRS =
51+
52+
# This variable should contain a space separated list of all
53+
# the directories containing applications with a 'test' make target
54+
TEST_SUBDIRS =
55+
56+
# Provided that the above variables are set you shouldn't need to modify
57+
# the targets below here.
58+
59+
%.all:
60+
cd $* && xmake all
61+
62+
%.clean:
63+
cd $* && xmake clean
64+
65+
%.test:
66+
cd $* && xmake test
67+
68+
all: $(foreach x, $(BUILD_SUBDIRS), $x.all)
69+
plugins: $(foreach x, $(PLUGIN_SUBDIRS), $x.all)
70+
clean: $(foreach x, $(BUILD_SUBDIRS), $x.clean)
71+
clean_plugins: $(foreach x, $(PLUGIN_SUBDIRS), $x.clean)
72+
test: $(foreach x, $(TEST_SUBDIRS), $x.test)

0 commit comments

Comments
 (0)