Files
LithosAnanke/mk/boards.mk
T
Claude 3bd81097e1 chore(license): an SPDX header on every source file that had none (LicenseRef-Starship-1.0) [skip ci]
The header scan (Captain Bob, 2026-11-10): 788 source files -- 351 with the
SL-1.0 header, 12 with the old name (docs/working/experiments, kept by
ruling), 31 under someone else's licence (tools/kconfig, Linux's, GPL-2.0:
kept), and 394 with none. Ruled: the SPDX form; capsules (.4th, .f18) and
proofs (.thy) left for a ruling of their own (mkcapsule's 64x16 block format,
content-addressed capsules).

253 files now begin
    SPDX-License-Identifier: LicenseRef-Starship-1.0
    Copyright (c) 2023-2026 Robert A. James
as a /* */ block (C, headers, assembly, linker scripts) or # lines (scripts,
Makefiles, Kconfig; below a shebang or a coding line); tools/mkcapsule.c,
which had the copyright line, gets the SPDX line only.

Not touched: docs/working/ (archive and old campaign material, as the
ruling kept the experiments); v4/system/post_cases.c (generated by
v4/tools/mkpost.py, "do not edit" -- the generator has the header).

Comments only: the kernel builds on amd64, aarch64, riscv64; make -C v4
test-32: 39 programs, 0 failures; every changed script parses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GE3SDvQn5EoxdGufk84zz2
2026-11-10 04:12:49 +00:00

57 lines
1.7 KiB
Makefile

# SPDX-License-Identifier: LicenseRef-Starship-1.0
# Copyright (c) 2023-2026 Robert A. James
# Board target table — T= selects board, sets ARCH + BOARD + BOARD_NAME.
# Included early by both Makefile and Makefile.starkernel, before arch
# normalization runs. Each Makefile applies board-specific flag overrides
# after its own arch block.
#
# Adding a new board: add an ifeq block here, then add compiler-flag
# overrides in the board-override sections of Makefile and
# Makefile.starkernel if the board needs tuning beyond the arch default.
ifdef T
ifeq ($(T),qemu)
ARCH ?= amd64
BOARD := qemu
BOARD_NAME := QEMU x86_64
CROSS_COMPILE :=
else ifeq ($(T),pc)
ARCH ?= amd64
BOARD := pc
BOARD_NAME := x86_64 PC (native)
CROSS_COMPILE :=
else ifeq ($(T),pi4)
ARCH ?= aarch64
BOARD := pi4
BOARD_NAME := Raspberry Pi 4 (Cortex-A72)
CROSS_COMPILE := aarch64-linux-gnu-
else ifeq ($(T),pi5)
ARCH ?= aarch64
BOARD := pi5
BOARD_NAME := Raspberry Pi 5 (Cortex-A76)
CROSS_COMPILE := aarch64-linux-gnu-
else ifeq ($(T),milkv)
ARCH ?= riscv64
BOARD := milkv
BOARD_NAME := Milk-V Pioneer (SG2042 RISC-V 64)
CROSS_COMPILE := riscv64-linux-gnu-
# ── Future boards (uncomment + add flag overrides in Makefile / Makefile.starkernel) ──
# else ifeq ($(T),zynq7020)
# ARCH ?= arm
# BOARD := zynq7020
# BOARD_NAME := Xilinx Zynq-7020 (Cortex-A9, 32-bit)
# CROSS_COMPILE := arm-linux-gnueabihf-
# # NOTE: requires removing the 32-bit guardrail and adding armhf toolchain support
else
$(error Unknown board target T='$(T)'. Supported: qemu pc pi4 pi5 milkv)
endif
endif # ifdef T