Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions scripts/collect-board-tier-changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ def main():
continue
if old_stem in merged:
merged[old_stem][0] = old_ext
# The newest hop owns the link, since it produced the tier the
# board ends the window on. But if nothing could link that hop,
# an older one is a better answer than no link at all.
if not merged[old_stem][2] and ref:
merged[old_stem][2] = ref
merged[old_stem][3] = url
else:
merged[old_stem] = [old_ext, new_ext, ref, url]

Expand Down
33 changes: 26 additions & 7 deletions scripts/generate-release-doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,22 @@
r"generate|generation|release|repo|docker|deps|dispatch|sync)(-|$)"
)

# Repos whose entire output belongs to one group regardless of title.
# Repos whose entire output belongs to one group regardless of title. Kernel
# mirrors, firmware-blob collections and out-of-tree drivers whose names the
# pattern below does not reach: 'uwe5622' names the chip, 'mtkbin' and
# 'odroidc2-blobs' name the vendor, and 'phytium-linux-kernel' puts the vendor
# ahead of 'linux'.
REPO_FIXED = {
"armbian/linux": "Kernel and U-Boot",
"armbian/linux-rockchip": "Kernel and U-Boot",
"armbian/phytium-linux-kernel": "Kernel and U-Boot",
"armbian/rkbin": "Kernel and U-Boot",
"armbian/firmware": "Kernel and U-Boot",
"armbian/mtkbin": "Kernel and U-Boot",
"armbian/qcombin": "Kernel and U-Boot",
"armbian/odroidc2-blobs": "Kernel and U-Boot",
"armbian/firmware": "Kernel and U-Boot",
"armbian/sunxi-dt-overlays": "Kernel and U-Boot",
"armbian/uwe5622": "Kernel and U-Boot",
}

# Single-purpose repos supply a fallback when no title rule fires. armbian/build
Expand All @@ -153,11 +163,14 @@
"armbian/docker-armbian-build": "Build framework and CI",
"armbian/sdk": "Build framework and CI",
"armbian/ci": "Build framework and CI",
"armbian/distribution": "Build framework and CI",
"armbian/shallow": "Build framework and CI",
"armbian/configng": "Tooling",
"armbian/imager": "Tooling",
"armbian/documentation": "Tooling",
"armbian/website": "Tooling",
"armbian/armbian-router": "Tooling",
"armbian/scripts": "Tooling",
Comment thread
coderabbitai[bot] marked this conversation as resolved.
}


Expand Down Expand Up @@ -281,10 +294,16 @@ def names_a_board(title, boards, families):


def repo_fixed_group(repo):
"""Kernel-tree, firmware-blob and out-of-tree driver repos, by pattern."""
if repo in REPO_FIXED:
return REPO_FIXED[repo]
name = repo.split("/", 1)[-1].lower()
"""Kernel-tree, firmware-blob and out-of-tree driver repos, by pattern.

Matched case-insensitively: the org spells repos both ways
(MorseMicro-DKMS, sunxi-DT-overlays), and the digest reports whatever
GitHub reports.
"""
lowered = repo.lower()
if lowered in REPO_FIXED:
return REPO_FIXED[lowered]
name = lowered.split("/", 1)[-1]
if name.startswith(("linux-", "wifi-", "rtl", "rtw")) or name.endswith("-dkms"):
return "Kernel and U-Boot"
return None
Expand All @@ -309,7 +328,7 @@ def classify(title, repo, boards, families):
# a board name really does mean a kernel or board change; in configng or
# imager the same words describe the subject of a tooling change. Desktop
# is the one group these repos genuinely also belong to, so it may win.
home = REPO_HOME.get(repo)
home = REPO_HOME.get(repo.lower()) # keys are lowercase; GitHub reports repos in mixed case
if home:
if parts & PREFIX_GROUPS["Desktop"] or RE_DESKTOP.search(low):
return "Desktop"
Expand Down
Loading