Add make setenv that can be used in scripts to set the arch, board, and config_name variables

This commit is contained in:
Jeremy Soller 2026-01-22 18:41:14 -07:00
parent 5c3df34508
commit 9b79a537bc
No known key found for this signature in database
GPG Key ID: 670FDFB5428E05CA

View File

@ -106,6 +106,12 @@ else
bash
endif
setenv: FORCE
@echo export ARCH='$(ARCH)'
@echo export BOARD='$(BOARD)'
@echo export CONFIG_NAME='$(CONFIG_NAME)'
@echo BUILD='$(BUILD)'
export RUST_GDB=gdb-multiarch # Necessary when debugging for another architecture than the host
GDB_KERNEL_FILE=recipes/core/kernel/target/$(TARGET)/build/kernel.sym
gdb: FORCE