Skip to content

Commit 5198527

Browse files
ci: update MCUXpresso SDK workflow to use west
Co-Authored-By: [email protected] <[email protected]>
1 parent 6172f82 commit 5198527

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.github/workflows/test-build-mcux-sdk.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ jobs:
2424
with:
2525
submodules: true
2626

27-
- uses: actions/checkout@main
28-
with:
29-
repository: nxp-mcuxpresso/mcux-sdk
30-
path: mcux-sdk
27+
- name: Install west
28+
run: |
29+
python3 -m pip install --user west
30+
echo "${HOME}/.local/bin" >> $GITHUB_PATH
3131
32-
- uses: actions/checkout@main
33-
with:
34-
repository: nxp-mcuxpresso/CMSIS_5
35-
path: CMSIS_5
32+
- name: Initialize MCUXpresso SDK
33+
run: |
34+
west init -m https://github.com/nxp-mcuxpresso/mcuxsdk-manifests
35+
west update
3636
3737
- name: Workaround for sources.list
3838
run: sudo sed -i 's|http://azure.archive.ubuntu.com/ubuntu/|http://mirror.arizona.edu/ubuntu/|g' /etc/apt/sources.list
@@ -58,4 +58,4 @@ jobs:
5858
5959
- name: Build wolfboot
6060
run: |
61-
make MCUXSDK=1 MCUXPRESSO="$GITHUB_WORKSPACE/mcux-sdk" MCUXPRESSO_CMSIS="$GITHUB_WORKSPACE/CMSIS_5/CMSIS" ${{inputs.make-args}} V=1
61+
make MCUXSDK=1 MCUXPRESSO="$GITHUB_WORKSPACE/mcuxsdk" MCUXPRESSO_CMSIS="$GITHUB_WORKSPACE/mcuxsdk/core/CMSIS" ${{inputs.make-args}} V=1

arch.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,8 @@ endif
610610

611611
ifeq ($(TARGET),mcxa)
612612
CORTEX_M33=1
613+
MCUXPRESSO_DRIVERS=$(MCUXPRESSO)/devices/MCX/MCXA153
614+
MCUXPRESSO_CMSIS_CORE=$(MCUXPRESSO_CMSIS)/Core
613615
CFLAGS+=\
614616
-I$(MCUXPRESSO_DRIVERS) \
615617
-I$(MCUXPRESSO_DRIVERS)/drivers \
@@ -637,6 +639,8 @@ endif
637639

638640
ifeq ($(TARGET),mcxw)
639641
CORTEX_M33=1
642+
MCUXPRESSO_DRIVERS=$(MCUXPRESSO)/devices/MCX/MCXW71
643+
MCUXPRESSO_CMSIS_CORE=$(MCUXPRESSO_CMSIS)/Core
640644
CFLAGS+=\
641645
-I$(MCUXPRESSO_DRIVERS) \
642646
-I$(MCUXPRESSO_DRIVERS)/drivers \

0 commit comments

Comments
 (0)