Skip to content
Merged
Show file tree
Hide file tree
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
9 changes: 8 additions & 1 deletion ports/zephyr-cp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ifeq ($(DEBUG),1)
WEST_CMAKE_ARGS += -Dzephyr-cp_EXTRA_CONF_FILE=$(DEBUG_CONF_FILE)
endif

.PHONY: $(BUILD)/zephyr-cp/zephyr/zephyr.elf flash recover debug debug-jlink debugserver attach run run-sim clean menuconfig all clean-all test fetch-port-submodules
.PHONY: $(BUILD)/zephyr-cp/zephyr/zephyr.elf flash recover debug debug-jlink debugserver attach run run-sim clean menuconfig all clean-all sim clean-sim test fetch-port-submodules

$(BUILD)/zephyr-cp/zephyr/zephyr.elf:
python cptools/pre_zephyr_build_prep.py $(BOARD)
Expand Down Expand Up @@ -87,6 +87,13 @@ all:
clean-all:
rm -rf build build-*

# Build all sim boards concurrently using the same jobserver as `make all`.
sim:
+python cptools/build_all_boards.py --vendor native --continue-on-error

clean-sim:
rm -rf $(wildcard build-native_*)

test: build-native_native_sim/zephyr-cp/zephyr/zephyr.exe
pytest cptools/tests
pytest tests/ -v
2 changes: 2 additions & 0 deletions ports/zephyr-cp/boards/adafruit_feather_nrf52840_uf2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ CONFIG_BT_BROADCASTER=y
CONFIG_BT_OBSERVER=y
CONFIG_BT_EXT_ADV=y

CONFIG_USE_DT_CODE_PARTITION=y

CONFIG_BOARD_SERIAL_BACKEND_CDC_ACM=n
9 changes: 9 additions & 0 deletions ports/zephyr-cp/cptools/build_all_boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,12 @@ def main():
action="store_true",
help="Continue building remaining boards even if one fails",
)
parser.add_argument(
"--vendor",
type=str,
default=None,
help="Only build boards from this vendor (e.g. 'native' for sim boards)",
)

args = parser.parse_args()

Expand All @@ -439,6 +445,9 @@ def main():
# Discover all boards
boards = discover_boards(port_dir)

if args.vendor:
boards = [(v, b) for v, b in boards if v == args.vendor]

if not boards:
print("ERROR: No boards found!")
return 1
Expand Down
Loading
Loading