Skip to content

Commit 23680f5

Browse files
Release ARMv7-M and ARMv8-M architecture ports (#249)
* Release ARMv7-M and ARMv8-M architecture ports * Add a pipeline to check ports_arch
1 parent d64ef2a commit 23680f5

File tree

179 files changed

+47913
-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.

179 files changed

+47913
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: ports_arch_check
4+
5+
# Controls when the action will run. Triggers the workflow on push or pull request
6+
# events but only for the master branch
7+
on:
8+
pull_request:
9+
branches: [ master ]
10+
paths:
11+
- ".github/workflows/ports_arch_check.yml"
12+
- 'common/**'
13+
- 'common_modules/**'
14+
- 'common_smp/**'
15+
- 'ports/**'
16+
- 'ports_modules/**'
17+
- 'ports_smp/**'
18+
19+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
20+
jobs:
21+
# This workflow contains a single job called "build"
22+
build:
23+
# The type of runner that the job will run on
24+
runs-on: ubuntu-latest
25+
26+
# Steps represent a sequence of tasks that will be executed as part of the job
27+
steps:
28+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
29+
- name: Checkout sources recursively
30+
uses: actions/checkout@v2
31+
with:
32+
token: ${{ secrets.REPO_SCOPED_TOKEN }}
33+
submodules: true
34+
35+
# Copy ports arch
36+
- name: Copy ports arch
37+
run: |
38+
scripts/copy_armv7_m.sh && scripts/copy_armv8_m.sh && scripts/copy_module_armv7_m.sh
39+
if [[ -n $(git status --porcelain) ]]; then
40+
echo "Ports for ARM architecture is not updated"
41+
exit 1
42+
fi
43+
44+
45+

ports_arch/ARMv7-M/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# ARMv7-M architecture ports
2+
3+
The ThreadX, ThreadX SMP, ThreadX Modules and ThreadX SMP Modules ports for ARMv7 share many files in common.
4+
To make work more efficient these files are internally tracked only once and copied over to specific ports for users.
5+

ports_arch/ARMv7-M/threadx/ac5/example_build/build_threadx.bat

Lines changed: 231 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
armasm -g --cpu=cortex-m4 --cpreproc --apcs=interwork tx_initialize_low_level.s
2+
armcc -c -g --cpu=cortex-m4 -O2 -I../../../../common/inc -I../../inc sample_threadx.c
3+
armlink -d -o sample_threadx.axf --elf --map --ro-base=0x00000000 --rw-base=0x20000000 --first __tx_vectors --datacompressor=off --inline --info=inline --callgraph --list sample_threadx.map tx_initialize_low_level.o sample_threadx.o tx.a
4+

0 commit comments

Comments
 (0)