| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
oci: link pushed packages to their GitHub repository GHCR connects a package to a repository automatically only when it is pushed with GITHUB_TOKEN. Armbian's CI pushes with a PAT, because the builtin token cannot write org packages, so none of these packages are linked to anything -- and an unlinked package inherits no repository access permissions, which is why reading them needs a bespoke PAT rather than just being a member of the org. Add org.opencontainers.image.source alongside the description annotation that is already set, derived from the OCI coordinates: ghcr.io/armbian/os/kernel-meson64-current:VER -> https://github.com/armbian/os Only for ghcr.io (the link is a GHCR feature) and only when a repo namespace is actually present -- a flat ghcr.io/<owner>/<package> is skipped rather than pointed at a repository that does not exist. OCI_SOURCE_URL overrides, or set it empty to skip. This does NOT make packages public. GitHub publishes every new package as private and exposes no API to change that; visibility is a web-UI action and is one-way. This fixes the permissions half only. armbian/ci#64 reports the private ones so the manual flip stays visible. Verified against every coordinate shape in use: armbian/os/* and rpardini/armbian-git-shallow/* derive correctly, armbian/cache-kernel/* resolves to a repository that exists, and the legacy flat ghcr.io/armbian/<package>, docker.io, and a registry with a port are all skipped. Signed-off-by: Igor Pecovnik <igor@armbian.com> | 1 天前 | |
patching.py: write rejects in unified format Pass --reject-format=unified to patch so reject hunks always carry +/-/@@ prefixes, whatever the input patch format. rich_rejects() keys its per-line colours on those prefixes. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> | 1 天前 | |
u-boot: get the initial bare git tree from a premade ORAS gitball - compile_kernel has pulled a premade git tree from ghcr.io for a while; u-boot has the identical worktree architecture but was still cold-cloning mainline on every empty cache. - The producer side (armbian/shallow) now publishes a single tree seeded with mainline u-boot -- 'master' plus all 533 tags, which is what makes the 'tag:vYYYY.MM' boards a cache hit -- and Radxa's next-dev* branches under 'radxa/*'. Measured: 387 MiB, one packfile. This pulls it. - There is no shallow/full decision for u-boot and so no interactive prompt; one complete tree serves every board. Every *other* u-boot fork Armbian builds (TI, SolidRun, NXP, Xilinx, hardkernel, orangepi-xunlong, CoreELEC, ...) keeps fetching into this same shared tree -- not seeded, but landing on top of mainline's history, so those fetches stay small. - The download/extract/marker logic moves to general/git-oras-tree.sh, taking explicit arguments rather than the five outer-scope variables that kept it kernel-only. kernel_prepare_bare_repo_from_oras_gitball becomes a wrapper (keeping its guards, which assert the decide-function ran) and download_git_kernel_gitball_via_oras is gone, single caller. - The helper adds one thing the Kernel version did not have: replacing a bare tree orphans every worktree registered against it, and fetch_from_repo then dies at git.sh:201, "Bare repo worktree gitdir not found". So the worktree directory's *contents* are purged alongside. Contents only -- these are Docker mountpoints and removing the directory itself is EBUSY in-container. This also fixes the same latent failure on the Kernel path. - `GIT_ORAS_TARBALLS_SHALLOW_BASE_REF` (kernel and u-boot alike) resolves the long-standing "@TODO allow changing this" on base_oras_ref. It selects a mirror, not content. Use if you need to work on the tarballs themselves or use a separate source. - Assisted-by: Claude Opus 5 <noreply@anthropic.com> | 1 天前 | |
chore: update copyright years to 2026 Update all copyright notices in shell scripts from 2025 to 2026. ## Changes - **Igor Pecovnik**: 2013-2025 → 2013-2026 (129 files) - **Ricardo Pardini**: 2023-2025 → 2023-2026, 2020-2025 → 2020-2026 (5 files) ## Additional Improvements Also updated the backtitle in `lib/functions/configuration/interactive.sh`: - Changed title from "Armbian building script" to "Armbian Linux build framework" - Removed docs link for cleaner display - Uses dynamic year calculation with separate declaration (fixes shellcheck SC2155) | 8 个月前 |