Skip to content

Commit 42ceb8e

Browse files
committed
Initial upload
0 parents  commit 42ceb8e

File tree

203 files changed

+60349
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

203 files changed

+60349
-0
lines changed

.github/workflows/GPR-example.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Build and execute GPR example
2+
on:
3+
workflow_run:
4+
workflows: ["Build CDE plugins for Linux x86_64"]
5+
types:
6+
- completed
7+
8+
permissions: write-all
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-22.04
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
# Activate the package manager and install the required build tools
19+
- name: Activate vcpkg
20+
uses: ARM-software/cmsis-actions/vcpkg@v1
21+
with:
22+
config: "./vcpkg-configuration.json"
23+
24+
- name: Activate Arm tool license
25+
uses: ARM-software/cmsis-actions/armlm@v1
26+
27+
- name: Build the GPR application
28+
run: |
29+
cbuild ./GPR/example/mdk/ACI-Example.csolution.yml --packs --context .+AN552_ACI --rebuild
30+
31+
# Upload the generated ACI-Example.axf binary as ACI-GPR-Example.axf artifact.
32+
# Set the maximum retention period of 90 days.
33+
- name: Upload the GPR axf binary
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: ACI-GPR-Example.axf
37+
path: GPR/example/mdk/out/ACI-Example/AN552_ACI/ACI-Example.axf
38+
retention-days: 90
39+
40+
# Download the GPR plugin artifact
41+
- name: Download the GPR plugin
42+
uses: actions/download-artifact@v4
43+
with:
44+
run-id: ${{ github.event.workflow_run.id }}
45+
github-token: ${{ github.token }}
46+
name: cde_plugin_aci_gpr-linux_x86_64.so
47+
path: GPR/plugin/build/
48+
49+
# Execute the GPR example with AVH-Model and GPR plugin
50+
- name: Execute the GPR example
51+
run: |
52+
FVP_Corstone_SSE-300 \
53+
-a ./GPR/example/mdk/out/ACI-Example/AN552_ACI/ACI-Example.axf \
54+
--plugin ./CDE_Utils/Linux64/GCC_10.3/CDELoader.so \
55+
-C cpu0.has_cde=1 \
56+
-C mps3_board.telnetterminal0.start_telnet=0 \
57+
-C mps3_board.uart0.out_file=- \
58+
-C cpu0.cde_impl_name="ACI GPR Library" \
59+
-C CDE.CDELoader.aci_object_files="[./GPR/plugin/build/cde_plugin.so]" \
60+
-C CDE.CDELoader.aci_parameters="COPRO=1" \
61+
-C core_clk.mul=10000000 \
62+
--simlimit 300 --stat

.github/workflows/MVE-example.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Build and execute MVE example
2+
on:
3+
workflow_run:
4+
workflows: ["Build CDE plugins for Linux x86_64"]
5+
types:
6+
- completed
7+
8+
permissions: write-all
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-22.04
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
# Activate the package manager and install the required build tools
19+
- name: Activate vcpkg
20+
uses: ARM-software/cmsis-actions/vcpkg@v1
21+
with:
22+
config: "./vcpkg-configuration.json"
23+
24+
- name: Activate Arm tool license
25+
uses: ARM-software/cmsis-actions/armlm@v1
26+
27+
- name: Build the MVE application
28+
run: |
29+
cbuild ./MVE/example/mdk/ACI-Example.csolution.yml --packs --context .+AN552_ACI --rebuild
30+
31+
# Upload the generated ACI-Example.axf binary as ACI-MVE-Example.axf artifact.
32+
# Set the maximum retention period of 90 days.
33+
- name: Upload the MVE axf binary
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: ACI-MVE-Example.axf
37+
path: MVE/example/mdk/out/ACI-Example/AN552_ACI/ACI-Example.axf
38+
retention-days: 90
39+
40+
# Download the MVE plugin artifact
41+
- name: Download the MVE plugin
42+
uses: actions/download-artifact@v4
43+
with:
44+
run-id: ${{ github.event.workflow_run.id }}
45+
github-token: ${{ github.token }}
46+
name: cde_plugin_aci_mve-linux_x86_64.so
47+
path: MVE/plugin/build/
48+
49+
# Execute the MVE example with AVH-Model and MVE plugin
50+
- name: Execute the MVE example
51+
run: |
52+
FVP_Corstone_SSE-300 \
53+
-a ./MVE/example/mdk/out/ACI-Example/AN552_ACI/ACI-Example.axf \
54+
--plugin ./CDE_Utils/Linux64/GCC_10.3/CDELoader.so \
55+
-C cpu0.has_cde=1 \
56+
-C mps3_board.telnetterminal0.start_telnet=0 \
57+
-C mps3_board.uart0.out_file=- \
58+
-C cpu0.cde_impl_name="ARM_2D_RGB565_ACI" \
59+
-C CDE.CDELoader.aci_object_files="[./MVE/plugin/build/cde_plugin.so]" \
60+
-C CDE.CDELoader.aci_parameters="COPRO=1" \
61+
-C core_clk.mul=10000000 \
62+
--simlimit 300 --stat
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build CDE plugins for Linux x86_64
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-22.04
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
# Generate the CDE plugin (SO) for the GPR example.
19+
- name: Build the GPR plugin
20+
run: |
21+
cd GPR/plugin
22+
make
23+
24+
# Upload the generated cde_plugin.so as cde_plugin_aci_gpr-linux_x86_64.so artifact.
25+
# Set the maximum retention period of 90 days.
26+
- name: Upload the GPR plugin
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: cde_plugin_aci_gpr-linux_x86_64.so
30+
path: GPR/plugin/build/cde_plugin.so
31+
retention-days: 90
32+
33+
# Generate the CDE plugin (SO) for the MVE example.
34+
- name: Build the MVE plugin
35+
run: |
36+
cd MVE/plugin
37+
make
38+
39+
# Upload the generated cde_plugin.so as cde_plugin_aci_mve-linux_x86_64.so artifact.
40+
# Set the maximum retention period of 90 days.
41+
- name: Upload the MVE plugin
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: cde_plugin_aci_mve-linux_x86_64.so
45+
path: MVE/plugin/build/cde_plugin.so
46+
retention-days: 90
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Build CDE plugins for Windows AMD64
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
10+
jobs:
11+
build:
12+
runs-on: windows-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
# Install the Minimal SYStem 2 on Windows for building Linux software.
19+
# Install gcc and make.
20+
- name: Set up MSYS2
21+
uses: msys2/setup-msys2@v2
22+
with:
23+
update: true
24+
install: >-
25+
mingw-w64-x86_64-gcc
26+
mingw-w64-x86_64-make
27+
28+
# Generate the CDE plugin (DLL) for the GPR example.
29+
- name: Build the GPR plugin
30+
run: |
31+
cd GPR/plugin
32+
mingw32-make
33+
34+
# Upload the generated cde_plugin.dll as cde_plugin_aci_gpr-win_amd64.dll artifact.
35+
# Set the maximum retention period of 90 days.
36+
- name: Upload the GPR plugin
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: cde_plugin_aci_gpr-win_amd64.dll
40+
path: GPR/plugin/build/cde_plugin.dll
41+
retention-days: 90
42+
43+
# Generate the CDE plugin (DLL) for the MVE example.
44+
- name: Build the MVE plugin
45+
run: |
46+
cd MVE/plugin
47+
mingw32-make
48+
49+
# Upload the generated cde_plugin.dll as cde_plugin_aci_mve-win_amd64.dll artifact.
50+
# Set the maximum retention period of 90 days.
51+
- name: Upload the MVE plugin
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: cde_plugin_aci_mve-win_amd64.dll
55+
path: MVE/plugin/build/cde_plugin.dll
56+
retention-days: 90

.gitignore

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Prerequisites
2+
*.d
3+
4+
# Object files
5+
*.o
6+
*.ko
7+
*.obj
8+
*.elf
9+
10+
# Linker output
11+
*.ilk
12+
*.map
13+
*.exp
14+
15+
# Precompiled Headers
16+
*.gch
17+
*.pch
18+
19+
# Libraries
20+
*.lib
21+
*.a
22+
*.la
23+
*.lo
24+
25+
# Shared objects (inc. Windows DLLs)
26+
*.dll
27+
*.so
28+
*.so.*
29+
*.dylib
30+
31+
# Executables
32+
*.exe
33+
*.out
34+
*.app
35+
*.i*86
36+
*.x86_64
37+
*.hex
38+
39+
# Debug files
40+
*.dSYM/
41+
*.su
42+
*.idb
43+
*.pdb
44+
45+
# Kernel Module Compile Results
46+
*.mod*
47+
*.cmd
48+
.tmp_versions/
49+
modules.order
50+
Module.symvers
51+
Mkfile.old
52+
dkms.conf
53+
*.dbgconf
54+
*@*
55+
Objects
56+
*.scvd
57+
*.uvgui.*
58+
*.uvguix.*
59+
*.db
60+
61+
RTE_Components.h
62+
Pre_Include_Global.h
63+
.DS_Store

0 commit comments

Comments
 (0)