From 9b79a537bcac15b9064c1a28b01ae80589d486f2 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 22 Jan 2026 18:41:14 -0700 Subject: [PATCH] Add make setenv that can be used in scripts to set the arch, board, and config_name variables --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 3cdef5c2c..e9a4fb9e3 100644 --- a/Makefile +++ b/Makefile @@ -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