Skip to content

fix: list supported boards when BOARD is missing - #401

Open
giri256 wants to merge 1 commit into
adafruit:masterfrom
giri256:fix/list-supported-boards
Open

fix: list supported boards when BOARD is missing#401
giri256 wants to merge 1 commit into
adafruit:masterfrom
giri256:fix/list-supported-boards

Conversation

@giri256

@giri256 giri256 commented Jul 27, 2026

Copy link
Copy Markdown

Fixes #392

Commit 2d68ec5 moved board-specific configuration earlier in the Makefile and removed the existing board validation block. As a result, running bare make reaches the MCU selector with an empty MCU_SUB_VARIANT and reports Sub Variant is unknown instead of showing the supported boards.

This restores validation before board.mk is loaded. The supported list is derived from actual src/boards/*/board.mk files, so it stays current as boards are added or removed. Missing and invalid BOARD values now both produce actionable output and preserve a nonzero exit.

Verification with GNU Make 4.3:

  • bare make lists all 49 supported boards and exits with BOARD not defined
  • make BOARD=not_a_board lists the same choices and exits with Invalid BOARD specified
  • make -n BOARD=feather_nrf52840_express clean
  • make -n BOARD=feather_nrf52832 clean

Signed-off-by: p1 <giridharpavan593@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Running make does _not_ give a list of boards, as it should according to documentation.

2 participants