Skip to content

Commit 2bfa255

Browse files
committed
Simplify lib-hal Eclipse project config
Clean up lib-hal Eclipse project metadata: add MakeErrorParser and VCErrorParser entries, remove many detailed tool/option/input definitions (streamlining toolChain), and simplify targetPlatform and builder settings. Remove the rtc source entry from source path list and delete the .settings/language.settings.xml file (removing per-user/generated language settings). These changes reduce IDE-specific clutter and redundant configuration in the repository.
1 parent 4a846aa commit 2bfa255

2 files changed

Lines changed: 5 additions & 68 deletions

File tree

lib-hal/.cproject

Lines changed: 5 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -11,76 +11,25 @@
1111
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
1212
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
1313
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
14+
<extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
15+
<extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
1416
</extensions>
1517
</storageModule>
1618
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
1719
<configuration artifactName="${ProjName}" buildProperties="" description="" id="cdt.managedbuild.toolchain.gnu.cross.base.999241968" name="GD32" optionalBuildProperties="" parent="org.eclipse.cdt.build.core.emptycfg">
1820
<folderInfo id="cdt.managedbuild.toolchain.gnu.cross.base.999241968.1716299757" name="/" resourcePath="">
19-
<toolChain id="cdt.managedbuild.toolchain.gnu.cross.base.1726496984" name="Cross GCC" superClass="cdt.managedbuild.toolchain.gnu.cross.base">
21+
<toolChain id="cdt.managedbuild.toolchain.gnu.cross.base.1726496984" name="Cross GCC">
2022
<option id="cdt.managedbuild.option.gnu.cross.prefix.459106786" name="Prefix" superClass="cdt.managedbuild.option.gnu.cross.prefix"/>
2123
<option id="cdt.managedbuild.option.gnu.cross.path.1891194822" name="Path" superClass="cdt.managedbuild.option.gnu.cross.path"/>
22-
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="cdt.managedbuild.targetPlatform.gnu.cross.1217131762" isAbstract="false" osList="all" superClass="cdt.managedbuild.targetPlatform.gnu.cross"/>
23-
<builder arguments="-f Makefile.GD32" id="cdt.managedbuild.builder.gnu.cross.1675894502" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="cdt.managedbuild.builder.gnu.cross"/>
24-
<tool id="cdt.managedbuild.tool.gnu.cross.c.compiler.184355345" name="Cross GCC Compiler" superClass="cdt.managedbuild.tool.gnu.cross.c.compiler">
25-
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="gnu.c.compiler.option.include.paths.984611657" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath">
26-
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/lib-gd32/include}&quot;"/>
27-
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/include}&quot;"/>
28-
</option>
29-
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="gnu.c.compiler.option.preprocessor.def.symbols.2090552718" name="Defined symbols (-D)" superClass="gnu.c.compiler.option.preprocessor.def.symbols" useByScannerDiscovery="false" valueType="definedSymbols">
30-
<listOptionValue builtIn="false" value="GD32"/>
31-
<listOptionValue builtIn="false" value="DISABLE_FS"/>
32-
<listOptionValue builtIn="false" value="DISABLE_TFTP"/>
33-
<listOptionValue builtIn="false" value="BOARD_GD32F450VI"/>
34-
<listOptionValue builtIn="false" value="GD32F450"/>
35-
<listOptionValue builtIn="false" value="ENABLE_TFTP_SERVER"/>
36-
</option>
37-
<inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.1829124642" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
38-
</tool>
39-
<tool id="cdt.managedbuild.tool.gnu.cross.cpp.compiler.1999212737" name="Cross G++ Compiler" superClass="cdt.managedbuild.tool.gnu.cross.cpp.compiler">
40-
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="gnu.cpp.compiler.option.include.paths.1027715438" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath">
41-
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/firmware-template-gd32/include}&quot;"/>
42-
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/lib-gd32/include}&quot;"/>
43-
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/lib-gd32/gd32f4xx/CMSIS}&quot;"/>
44-
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/lib-gd32/gd32f4xx/CMSIS/GD/GD32F4xx/Include}&quot;"/>
45-
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/lib-gd32/gd32f4xx/GD32F4xx_standard_peripheral/Include}&quot;"/>
46-
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/lib-display/include}&quot;"/>
47-
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/lib-hal/include}&quot;"/>
48-
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/lib-network/include}&quot;"/>
49-
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/include}&quot;"/>
50-
</option>
51-
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="gnu.cpp.compiler.option.preprocessor.def.476854465" name="Defined symbols (-D)" superClass="gnu.cpp.compiler.option.preprocessor.def" useByScannerDiscovery="false" valueType="definedSymbols">
52-
<listOptionValue builtIn="false" value="GD32"/>
53-
<listOptionValue builtIn="false" value="DISABLE_FS"/>
54-
<listOptionValue builtIn="false" value="DISABLE_TFTP"/>
55-
<listOptionValue builtIn="false" value="GD32F450"/>
56-
<listOptionValue builtIn="false" value="BOARD_GD32F450VI"/>
57-
<listOptionValue builtIn="false" value="ENABLE_TFTP_SERVER"/>
58-
</option>
59-
<inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.114698089" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
60-
</tool>
61-
<tool id="cdt.managedbuild.tool.gnu.cross.c.linker.625011113" name="Cross GCC Linker" superClass="cdt.managedbuild.tool.gnu.cross.c.linker"/>
62-
<tool id="cdt.managedbuild.tool.gnu.cross.cpp.linker.2109248068" name="Cross G++ Linker" superClass="cdt.managedbuild.tool.gnu.cross.cpp.linker">
63-
<inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.1717053554" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
64-
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
65-
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
66-
</inputType>
67-
</tool>
68-
<tool id="cdt.managedbuild.tool.gnu.cross.archiver.1668910868" name="Cross GCC Archiver" superClass="cdt.managedbuild.tool.gnu.cross.archiver"/>
69-
<tool id="cdt.managedbuild.tool.gnu.cross.assembler.1161044830" name="Cross GCC Assembler" superClass="cdt.managedbuild.tool.gnu.cross.assembler">
70-
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="gnu.both.asm.option.include.paths.720794551" name="Include paths (-I)" superClass="gnu.both.asm.option.include.paths" valueType="includePath">
71-
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/lib-gd32/include}&quot;"/>
72-
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/include}&quot;"/>
73-
</option>
74-
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.1824760631" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
75-
</tool>
24+
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="cdt.managedbuild.targetPlatform.gnu.cross.1217131762" isAbstract="false" osList="all"/>
25+
<builder arguments="-f Makefile.GD32" id="cdt.managedbuild.builder.gnu.cross.1675894502" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true"/>
7626
</toolChain>
7727
</folderInfo>
7828
<sourceEntries>
7929
<entry excluding="rtc|console|debug|src" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
8030
<entry excluding="uart0" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="console"/>
8131
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="console/uart0"/>
8232
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="debug"/>
83-
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="rtc"/>
8433
<entry excluding="gd32" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
8534
<entry excluding="com0" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src/gd32"/>
8635
</sourceEntries>

lib-hal/.settings/language.settings.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)