ci / test (push) Successful in 18s
ci / mcdc (push) Successful in 19s
ci / bench (push) Successful in 9s
ci / qemu-tools (push) Successful in 53s
ci / kernel-symbols (push) Successful in 1m25s
ci / patches-apply (push) Successful in 21s
ci / prune-artifacts (push) Skipped
ci / kernel-build (push) Skipped
ci / quality (push) Successful in 46s
ci / badges (push) Skipped
One kernel flash for everything later work needs (rebuild M0, d09 M0-2): - warden_defconfig: cgroup v2 controllers (MEMCG, CGROUP_PIDS, CGROUP_SCHED, FAIR_GROUP_SCHED, CFS_BANDWIDTH), the byte-metering match symbols (XT_MATCH_CGROUP, XT_CONNMARK, XT_MARK, IP6_NF_MANGLE), IKCONFIG and IKCONFIG_PROC, XT_MATCH_OWNER, the raw tables and the CT target (the NOTRACK for flare-edge#537), NAMESPACES with its five sub-options (USER_NS stays closed at boot by a sysctl), PSI, and the nftables set (NF_TABLES, ip and ip6 families, NFT_CT, NFT_MASQ, NFT_NAT, NFT_LIMIT, NFT_SOCKET, NFT_REJECT). TIME_NS and RT_GROUP_SCHED are explicitly unset. HW_RANDOM_ROCKCHIP is built in as a probe for the hardware RNG. - build/required-symbols.txt and probe-symbols.txt are the source of record; build-kernel.sh asserts both against the final .config instead of a hand-written list (olddefconfig drops an unknown or unsatisfied symbol without a word). - WARDEN_CONFIG_ONLY=1 stops after that assertion (a seconds-long CI gate) and, like a full build, writes the final .config and its sha256 (CONFIG_OUT), the digest firmware images record as KCONFIG_SHA256. - clk_core_mcu_rtc gets CLK_IGNORE_UNUSED like clk_core_mcu, in the patch and in the enablement source it documents, so 6.18 keeps the HPMCU mtime clock up. - CI: a kernel-symbols job expands the real configuration and asserts the lists on every push; offline tests prove the assertion fires for every failure shape. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cxh2piVufTWbzKTmUafTkk
55 lines
2.3 KiB
Bash
55 lines
2.3 KiB
Bash
# shellcheck shell=bash
|
|
# Shared by build-kernel.sh and the symbol tests (tests/required-symbols/).
|
|
#
|
|
# build/required-symbols.txt is the source of record for every kernel symbol
|
|
# the platform needs (rebuild M0, names.md 21.1). Format, one item per line:
|
|
#
|
|
# CONFIG_X=y assert the symbol is =y in the final .config
|
|
# # CONFIG_X is not set assert the symbol is NOT set (an explicit unset)
|
|
# ## tier R section header (R required, C recommended,
|
|
# A assertion only / derived, never in a defconfig)
|
|
# # any other text comment
|
|
# (blank lines ignored)
|
|
#
|
|
# build/probe-symbols.txt has the same format for tier P: symbols built into
|
|
# the test kernel to run a probe. They are asserted like the others, and join
|
|
# required-symbols.txt only when the probe passes.
|
|
|
|
# req_assertions FILE: print the assertion lines of FILE.
|
|
req_assertions() {
|
|
grep -E '^(CONFIG_[A-Za-z0-9_]+=[ymn]|# CONFIG_[A-Za-z0-9_]+ is not set)$' "$1" || true
|
|
}
|
|
|
|
# req_assert_config CONFIG LIST...: check each assertion of each LIST against
|
|
# CONFIG (a final .config). Prints one FATAL line per failure and returns 1 if
|
|
# any failed. A missing or empty LIST is itself a failure (fail closed).
|
|
req_assert_config() {
|
|
local cfg="$1" list line opt n bad=0
|
|
shift
|
|
[ -s "$cfg" ] || { echo "FATAL: config '$cfg' is missing or empty" >&2; return 1; }
|
|
for list in "$@"; do
|
|
[ -f "$list" ] || { echo "FATAL: symbol list '$list' is missing" >&2; return 1; }
|
|
n=0
|
|
while IFS= read -r line; do
|
|
n=$((n + 1))
|
|
case "$line" in
|
|
CONFIG_*=*)
|
|
grep -qxF "$line" "$cfg" || {
|
|
echo "FATAL: required option $line is not in the final .config (unmet Kconfig dependency, or the symbol does not exist?)" >&2
|
|
bad=1
|
|
} ;;
|
|
"# CONFIG_"*" is not set")
|
|
# An unset holds if the symbol is absent or shown as "is not set";
|
|
# only a live =value fails (a dependency may hide the symbol).
|
|
opt="${line#\# }"; opt="${opt% is not set}"
|
|
grep -qE "^$opt=" "$cfg" && {
|
|
echo "FATAL: option $opt must not be set but is in the final .config" >&2
|
|
bad=1
|
|
} ;;
|
|
esac
|
|
done < <(req_assertions "$list")
|
|
[ "$n" -gt 0 ] || { echo "FATAL: symbol list '$list' holds no assertions" >&2; return 1; }
|
|
done
|
|
return "$bad"
|
|
}
|