Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit 27c32a9

Browse files
authored
Merge pull request #43 from openhwgroup/18_add_gcc
#18 Integrate CORE-V GNU-based toolchain (by Embecosm)
2 parents dd282a1 + 0e8357c commit 27c32a9

File tree

14 files changed

+459
-5
lines changed

14 files changed

+459
-5
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
Manifest-Version: 1.0
22
Automatic-Module-Name: org.openhwgroup.corev.ide.toolchain.gnu.core
33
Bundle-ManifestVersion: 2
4-
Bundle-SymbolicName: org.openhwgroup.corev.ide.toolchain.gnu.core
4+
Bundle-SymbolicName: org.openhwgroup.corev.ide.toolchain.gnu.core;singleton:=true
55
Bundle-Version: 0.1.0.qualifier
66
Bundle-Name: %Bundle-Name
77
Bundle-Vendor: %Bundle-Vendor
88
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
9+
Require-Bundle: org.eclipse.cdt.core;bundle-version="0.0.0",
10+
org.eclipse.cdt.managedbuilder.core;bundle-version="0.0.0"

bundles/org.openhwgroup.corev.ide.toolchain.gnu.core/OSGI-INF/l10n/bundle.properties

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,10 @@
1313
###############################################################################
1414

1515
Bundle-Vendor = OpenHW Group
16-
Bundle-Name = OpenHW Group CORE-V IDE GNU ToolChain Core
16+
Bundle-Name = OpenHW Group CORE-V IDE GNU ToolChain Core
17+
toolChain.name = CORE-V GNU Embedded GCC
18+
19+
configuration.elf.debug.name = Debug
20+
configuration.elf.release.name = Release
21+
22+
toolChain.llvm.name = CORE-V LLVM-based ToolChain

bundles/org.openhwgroup.corev.ide.toolchain.gnu.core/build.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ output.. = bin/
1616
bin.includes = META-INF/,\
1717
.,\
1818
OSGI-INF/,\
19-
about.html
19+
about.html,\
20+
plugin.xml,\
21+
templates/
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<?eclipse version="3.4"?>
3+
<!--
4+
Copyright (c) 2020 ArSysOp and others
5+
6+
This program and the accompanying materials are made available under the
7+
terms of the Eclipse Public License 2.0 which is available at
8+
https://www.eclipse.org/legal/epl-2.0/.
9+
10+
SPDX-License-Identifier: EPL-2.0
11+
12+
Contributors:
13+
Alexander Fedorov (ArSysOp) - initial API and implementation
14+
-->
15+
<plugin>
16+
<extension
17+
point="org.eclipse.cdt.managedbuilder.core.buildDefinitions">
18+
<managedBuildRevision
19+
fileVersion="4.0.0">
20+
</managedBuildRevision>
21+
<toolChain
22+
id="org.openhwgroup.corev.ide.mbs.gnu.core.toolchain.base"
23+
isAbstract="false"
24+
name="%toolChain.name"
25+
superClass="ilg.gnumcueclipse.managedbuild.cross.riscv.toolchain.base">
26+
</toolChain>
27+
<projectType
28+
buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe"
29+
id="org.openhwgroup.corev.ide.mbs.gnu.core.toolchain.elf"
30+
isAbstract="false"
31+
isTest="false">
32+
<configuration
33+
artifactExtension="elf"
34+
buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug"
35+
cleanCommand="${cross_rm} -rf"
36+
id="org.openhwgroup.corev.ide.toolchain.gnu.core.elf.debug"
37+
name="%configuration.elf.debug.name"
38+
parent="cdt.managedbuild.config.gnu.base">
39+
<toolChain
40+
id="org.openhwgroup.corev.ide.toolchain.gnu.core.toolchain.exe.debug"
41+
superClass="org.openhwgroup.corev.ide.mbs.gnu.core.toolchain.base">
42+
</toolChain>
43+
</configuration>
44+
<configuration
45+
artifactExtension="elf"
46+
buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release"
47+
cleanCommand="${cross_rm} -rf"
48+
id="org.openhwgroup.corev.ide.toolchain.gnu.core.elf.release"
49+
name="%configuration.elf.release.name"
50+
parent="cdt.managedbuild.config.gnu.base">
51+
<toolChain
52+
id="org.openhwgroup.corev.ide.toolchain.gnu.core.toolchain.exe.release"
53+
superClass="org.openhwgroup.corev.ide.mbs.gnu.core.toolchain.base">
54+
</toolChain>
55+
</configuration>
56+
</projectType>
57+
</extension>
58+
59+
<extension
60+
point="org.eclipse.cdt.managedbuilder.core.buildDefinitions">
61+
<managedBuildRevision
62+
fileVersion="4.0.0">
63+
</managedBuildRevision>
64+
<toolChain
65+
id="org.openhwgroup.corev.ide.mbs.llvm.core.toolchain.base"
66+
isAbstract="false"
67+
name="%toolChain.llvm.name"
68+
superClass="ilg.gnumcueclipse.managedbuild.cross.riscv.toolchain.base">
69+
</toolChain>
70+
<projectType
71+
buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe"
72+
id="org.openhwgroup.corev.ide.mbs.llvm.core.toolchain.elf"
73+
isAbstract="false"
74+
isTest="false">
75+
<configuration
76+
artifactExtension="elf"
77+
buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug"
78+
cleanCommand="${cross_rm} -rf"
79+
id="org.openhwgroup.corev.ide.toolchain.llvm.core.elf.debug"
80+
name="%configuration.elf.debug.name"
81+
parent="cdt.managedbuild.config.gnu.base">
82+
<toolChain
83+
id="org.openhwgroup.corev.ide.toolchain.llvm.core.toolchain.exe.debug"
84+
superClass="org.openhwgroup.corev.ide.mbs.llvm.core.toolchain.base">
85+
</toolChain>
86+
</configuration>
87+
<configuration
88+
artifactExtension="elf"
89+
buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release"
90+
cleanCommand="${cross_rm} -rf"
91+
id="org.openhwgroup.corev.ide.toolchain.llvm.core.elf.release"
92+
name="%configuration.elf.release.name"
93+
parent="cdt.managedbuild.config.gnu.base">
94+
<toolChain
95+
id="org.openhwgroup.corev.ide.toolchain.llvm.core.toolchain.exe.release"
96+
superClass="org.openhwgroup.corev.ide.mbs.llvm.core.toolchain.base">
97+
</toolChain>
98+
</configuration>
99+
</projectType>
100+
</extension>
101+
102+
<extension point="org.eclipse.cdt.core.templates">
103+
<template
104+
filterPattern=".*gcc"
105+
id="org.openhwgroup.corev.ide.mbs.gnu.core.templates.HelloCOREVWorld_C_Project"
106+
location="$nl$/templates/projects/HelloWorld_C_Project/template.xml"
107+
projectType="org.eclipse.cdt.build.core.buildArtefactType.exe">
108+
</template>
109+
</extension>
110+
<extension point="org.eclipse.cdt.core.templateAssociations">
111+
<template
112+
id="org.openhwgroup.corev.ide.mbs.gnu.core.templates.HelloCOREVWorld_C_Project">
113+
<toolChain
114+
id="org.openhwgroup.corev.ide.mbs.gnu.core.toolchain.base">
115+
</toolChain>
116+
<toolChain
117+
id="org.openhwgroup.corev.ide.mbs.llvm.core.toolchain.base">
118+
</toolChain>
119+
</template>
120+
</extension>
121+
122+
</plugin>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
###############################################################################
2+
# Copyright (c) 2020 ArSysOp and others
3+
#
4+
# This program and the accompanying materials are made available under the
5+
# terms of the Eclipse Public License 2.0 which is available at
6+
# https://www.eclipse.org/legal/epl-2.0/.
7+
#
8+
# SPDX-License-Identifier: EPL-2.0
9+
#
10+
# Contributors:
11+
# Alexander Fedorov (ArSysOp) - initial API and implementation
12+
###############################################################################
13+
14+
#Template Default Values
15+
hello_corev_c_project_label=Hello World CORE-V C Project
16+
hello_corev_c_project_description=A skeletal Managed C Hello World project for CORE-V. Creates a folder for sources and another for include.
17+
hello_corev_c_basics.label=Basic Settings
18+
hello_corev_c_basics_description=Basic properties of a project
19+
hello_corev_c_author_label=Author
20+
hello_corev_c_author_description=Name of the author
21+
hello_corev_c_copyright_label=Copyright notice
22+
hello_corev_c_copyright_description=Your copyright notice
23+
hello_corev_c_copyright_default=Your copyright notice
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<!--
3+
Copyright (c) 2020 ArSysOp and others
4+
5+
This program and the accompanying materials are made available under the
6+
terms of the Eclipse Public License 2.0 which is available at
7+
https://www.eclipse.org/legal/epl-2.0/.
8+
9+
SPDX-License-Identifier: EPL-2.0
10+
11+
Contributors:
12+
Alexander Fedorov (ArSysOp) - initial API and implementation
13+
-->
14+
<template
15+
type="ProjTempl"
16+
version="1.0"
17+
supplier="Eclipse.org"
18+
revision="0.1"
19+
author="Alexander Fedorov (ArSysOp)"
20+
copyright="Copyright (c) 2020 ArSysOp and others. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-2.0/
21+
22+
SPDX-License-Identifier: EPL-2.0"
23+
id="hello_corev_c_project"
24+
label="%hello_corev_c_project_label"
25+
description="%hello_corev_c_project_description"
26+
help="help.html">
27+
28+
<property-group
29+
id="basics"
30+
label="%hello_corev_c_basics_label"
31+
description="%hello_corev_c_basics_description"
32+
type="PAGES-ONLY"
33+
help="help.html">
34+
<property
35+
id="author"
36+
label="%hello_corev_c_author_label"
37+
description="%hello_corev_c_author_description"
38+
type="input"
39+
pattern=".*"
40+
default=""
41+
hidden="false"
42+
persist="true" />
43+
<property
44+
id="copyright"
45+
label="%hello_corev_c_copyright_label"
46+
description="%hello_corev_c_copyright_description"
47+
type="input"
48+
pattern=".*"
49+
default="%hello_corev_c_copyright_default"
50+
hidden="false"
51+
persist="true" />
52+
</property-group>
53+
54+
<process type="org.eclipse.cdt.managedbuilder.core.NewManagedProject">
55+
<simple
56+
name="name"
57+
value="$(projectName)" />
58+
<simple
59+
name="artifactExtension"
60+
value="elf" />
61+
<simple
62+
name="isCProject"
63+
value="true" />
64+
</process>
65+
66+
</template>
67+
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
Manifest-Version: 1.0
22
Automatic-Module-Name: org.openhwgroup.corev.ide.toolchain.gnu.ui
33
Bundle-ManifestVersion: 2
4-
Bundle-SymbolicName: org.openhwgroup.corev.ide.toolchain.gnu.ui
4+
Bundle-SymbolicName: org.openhwgroup.corev.ide.toolchain.gnu.ui;singleton:=true
55
Bundle-Version: 0.1.0.qualifier
66
Bundle-Name: %Bundle-Name
77
Bundle-Vendor: %Bundle-Vendor
88
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
9+
Require-Bundle: org.eclipse.cdt.managedbuilder.ui;bundle-version="0.0.0",
10+
org.eclipse.core.runtime;bundle-version="0.0.0",
11+
org.eclipse.jface;bundle-version="0.0.0"

bundles/org.openhwgroup.corev.ide.toolchain.gnu.ui/build.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ output.. = bin/
1616
bin.includes = META-INF/,\
1717
.,\
1818
OSGI-INF/,\
19-
about.html
19+
about.html,\
20+
plugin.xml
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<?eclipse version="3.4"?>
3+
<!--
4+
Copyright (c) 2020 ArSysOp and others
5+
6+
This program and the accompanying materials are made available under the
7+
terms of the Eclipse Public License 2.0 which is available at
8+
https://www.eclipse.org/legal/epl-2.0/.
9+
10+
SPDX-License-Identifier: EPL-2.0
11+
12+
Contributors:
13+
Alexander Fedorov (ArSysOp) - initial API and implementation
14+
-->
15+
<plugin>
16+
<extension
17+
point="org.eclipse.cdt.managedbuilder.ui.newWizardPages">
18+
<wizardPage
19+
ID="org.openhwgroup.corev.ide.mbs.gnu.ui.wizard.page.setup"
20+
operationClass="org.openhwgroup.corev.ide.internal.toolchain.gnu.ui.wizards.GnuToolchainOperation"
21+
pageClass="org.openhwgroup.corev.ide.internal.toolchain.gnu.ui.wizards.GnuToolchainWizardPage">
22+
<toolchain
23+
toolchainID="org.openhwgroup.corev.ide.mbs.gnu.core.toolchain.base">
24+
</toolchain>
25+
<toolchain
26+
toolchainID="org.openhwgroup.corev.ide.mbs.llvm.core.toolchain.base">
27+
</toolchain>
28+
</wizardPage>
29+
</extension>
30+
31+
</plugin>

bundles/org.openhwgroup.corev.ide.toolchain.gnu.ui/src/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)