Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

laze-project.yml: build context tree by embassy arch, not rust target #170

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
121 changes: 73 additions & 48 deletions laze-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ contexts:

# base context for all RIOT-rs applications
- name: riot-rs

parent: default
env:
RUSTFLAGS:
- "-Clink-arg=--nmagic"
Expand Down Expand Up @@ -154,51 +154,19 @@ contexts:
cmd:
- rust-objdump -S ${out}

- name: cortex-m
- name: nrf
help: Nordic MCU support (based on embassy-nrf)
parent: riot-rs
env:
OBJCOPY: arm-none-eabi-objcopy
RUSTFLAGS:
- -Clink-arg=-Tisr_stack.x
- --cfg context=\"cortex-m\"

- name: thumbv6m-none-eabi
parent: cortex-m
env:
RUSTC_TARGET: thumbv6m-none-eabi
CARGO_TARGET_PREFIX: CARGO_TARGET_THUMBV6M_NONE_EABI
RUSTFLAGS:
- --cfg armv6m

- name: thumbv7em-none-eabi
parent: cortex-m
env:
RUSTC_TARGET: thumbv7em-none-eabi
CARGO_TARGET_PREFIX: CARGO_TARGET_THUMBV7EM_NONE_EABI
RUSTFLAGS:
- "-Ctarget-cpu=cortex-m4"
- --cfg armv7m

- name: thumbv7m-none-eabi
parent: cortex-m
env:
RUSTC_TARGET: thumbv7m-none-eabi
CARGO_TARGET_PREFIX: CARGO_TARGET_THUMBV7M_NONE_EABI
RUSTFLAGS:
- --cfg armv7m

- name: thumbv7em-none-eabihf
parent: cortex-m
env:
RUSTC_TARGET: thumbv7em-none-eabihf
CARGO_ENV_TARGET: CARGO_TARGET_THUMBV7EM_NONE_EABIHF
RUSTFLAGS:
- --cfg armv7m
- name: nrf51
parent: nrf
selects:
- thumbv6m-none-eabi

- name: microbit-base
# this is a context, not a builder, to be used as parent by "microbit" and
# "microbit-qemu"
parent: thumbv6m-none-eabi
parent: nrf51
selects:
- "microbit disabled due to missing nrf51 support in embassy"
env:
Expand All @@ -208,7 +176,9 @@ contexts:
- "-f board/nordic_nrf52_dk.cfg"

- name: nrf52
parent: thumbv7em-none-eabi # actually eabihf, but riot-rs doesn't support hard float yet
parent: nrf
selects:
- thumbv7em-none-eabi # actually eabihf, but riot-rs doesn't support hard float yet
env:
CARGO_RUNNER:
- ${SCRIPTS}/debug-openocd.sh
Expand Down Expand Up @@ -248,8 +218,17 @@ contexts:
cmd:
- probe-rs gdb --chip ${PROBE_RS_CHIP}

- name: rp
ROMemories marked this conversation as resolved.
Show resolved Hide resolved
help: Raspberry Pi pico MCU support (based on embassy-rp)
parent: riot-rs
selects:
- thumbv6m-none-eabi
env:
RUSTFLAGS:
- --cfg context=\"rp\"
ROMemories marked this conversation as resolved.
Show resolved Hide resolved

- name: rp2040
parent: thumbv6m-none-eabi
parent: rp
env:
RUSTFLAGS:
- --cfg context=\"rp2040\"
Expand All @@ -264,17 +243,61 @@ contexts:
cmd:
- probe-rs debug --chip ${PROBE_RS_CHIP} --exe ${out}


modules:
- name: cortex-m
env:
global:
OBJCOPY: arm-none-eabi-objcopy
RUSTFLAGS:
- -Clink-arg=-Tisr_stack.x
- --cfg context=\"cortex-m\"

- name: thumbv6m-none-eabi
depends:
- cortex-m
env:
global:
RUSTC_TARGET: thumbv6m-none-eabi
CARGO_TARGET_PREFIX: CARGO_TARGET_THUMBV6M_NONE_EABI
RUSTFLAGS:
- --cfg armv6m

- name: thumbv7em-none-eabi
depends:
- cortex-m
env:
global:
RUSTC_TARGET: thumbv7em-none-eabi
CARGO_TARGET_PREFIX: CARGO_TARGET_THUMBV7EM_NONE_EABI
RUSTFLAGS:
- "-Ctarget-cpu=cortex-m4"
- --cfg armv7m

- name: thumbv7m-none-eabi
depends:
- cortex-m
env:
global:
RUSTC_TARGET: thumbv7m-none-eabi
CARGO_TARGET_PREFIX: CARGO_TARGET_THUMBV7M_NONE_EABI
RUSTFLAGS:
- --cfg armv7m

- name: thumbv7em-none-eabihf
depends:
- cortex-m
env:
global:
RUSTC_TARGET: thumbv7em-none-eabihf
CARGO_ENV_TARGET: CARGO_TARGET_THUMBV7EM_NONE_EABIHF
RUSTFLAGS:
- --cfg armv7m

- name: release
selects:
- release-arch
- ?silent-panic
- ?lto

- name: release-arch
context: cortex-m

- name: debug-console
context: riot-rs
env:
Expand Down Expand Up @@ -477,7 +500,9 @@ builders:
parent: nrf52840

- name: lm3s6965evb
parent: thumbv7m-none-eabi # actually eabihf, but riot-rs doesn't support hard float yet
parent: riot-rs
selects:
- thumbv7m-none-eabi # actually eabihf, but riot-rs doesn't support hard float yet
disables:
- riot_support
env:
Expand Down
Loading