Skip to content

Commit

Permalink
add Teensy 41 script (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
v923z authored Mar 7, 2024
1 parent 1cdc4f3 commit 692d248
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ jobs:
if: always()
run: ./scripts/samd/sparkfun_thing_plus.sh

- name: Compile for Teensy 41
if: always()
run: ./scripts/mimxrt/teensy41.sh

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down
14 changes: 14 additions & 0 deletions scripts/mimxrt/mimxrt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

# This file is part of the micropython-builder project,
# https://github.com/v923z/micropython-builder
# The MIT License (MIT)
# Copyright (c) 2024 Zoltán Vörös

source ./scripts/init.sh

build_mimxrt() {
make ${MAKEOPTS} -C micropython/ports/mimxrt BOARD=$1 USER_C_MODULES=../../../ulab all CFLAGS_EXTRA=-DULAB_HASH_STRING=$ulab_hash
copy_files mimxrt/build-$1/firmware.hex $1
clean_up mimxrt build-$1
}
10 changes: 10 additions & 0 deletions scripts/mimxrt/teensy41.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# This file is part of the micropython-builder project,
# https://github.com/v923z/micropython-builder
# The MIT License (MIT)
# Copyright (c) 2024 Zoltán Vörös

source ./scripts/mimxrt/mimxrt.sh

build_mimxrt "TEENSY41"

0 comments on commit 692d248

Please sign in to comment.