From 1c654c6e7385419832c70b0821f0cf55a5ad1b1e Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Thu, 21 Aug 2025 17:40:06 -0600 Subject: [PATCH] make: Add target to print board configs Add a simple command to print board configs without having to rework anything to generate and use a config file. Signed-off-by: Tim Crawford --- .github/workflows/ci.yml | 3 +++ Makefile | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ddca6aa0f..541281c33 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,6 +59,9 @@ jobs: - name: Install dependencies run: ./scripts/deps.sh + - name: Show config + run: make BOARD=${{ matrix.boards }} show-config + - name: Build firmware run: make BOARD=${{ matrix.boards }} VERBOSE=1 diff --git a/Makefile b/Makefile index d414d4a2a..e519c55c8 100644 --- a/Makefile +++ b/Makefile @@ -61,6 +61,13 @@ SRC += $(foreach src, $(arch-y), $(ARCH_DIR)/$(src)) include $(ARCH_DIR)/toolchain.mk +# TODO: Generate config file as part of build. +.PHONY: show-config +show-config: + $(foreach v, \ + $(sort $(filter CONFIG_%,$(.VARIABLES))), \ + $(info $(v)=$($(v)))) + # The architecture defines build targets, no more is required endif