Skip to content

build: align the attach and updiff machinery on infrabase - #374

Merged
daniel-rossier merged 2 commits into
mainfrom
align/updiff-attach-baseline
Nov 7, 2026
Merged

daniel-rossier merged 2 commits into
mainfrom
align/updiff-attach-baseline

Conversation

@daniel-rossier

Copy link
Copy Markdown
Contributor

Aligns the attach and updiff machinery on infrabase (infrabase #70); patch.bbclass, base.bbclass and usr.bbclass are now the same files.

What changes for fetched components (u-boot, qemu, linux, buildroot):

  • updiff finds edits from the attach manifest, not from a diff against ${S}.pristine, so a series updated behind the tree is no longer reverted;
  • several patches of one patch set touching an edited file are merged, and a patch left empty goes away;
  • it refuses a tree built with another series, and an edit on a file whose patches moved;
  • the result line becomes N unchanged, N rewritten, N merged away, N appended.

IB_PATCHDIR goes away for IB_PATCHSET_DIR; nothing here set it.

What stays: the so3 recipe builds in place, with no attach and no patch set. The :lvgl clean of usr-so3 restores from the git index, as so3/usr is versioned here, unlike infrabase.

Tested: U-Boot 2022.04 on a copy of the tree: attach, no edit, edit plus new file; usr-so3 attach and updiff, with :lvgl.

Not tested: no compile and no boot on this branch; the same classes passed a full virt64 build and QEMU boot on infrabase, whose so3 recipes differ.

The classes had fallen behind infrabase since #333. updiff now finds edits
from the attach manifest instead of a diff against ${S}.pristine, so a
series updated behind the tree is no longer reverted, merges the chains
left in one patch set, and refuses a tree built with another series or
edits on a file whose patches moved. The attach and clean guards move to
the shared python helpers, and IB_PATCHDIR, which nothing here sets, gives
way to IB_PATCHSET_DIR.

The so3 recipe stays out of this: it builds in place, with no attach and
no patch set. The :lvgl clean of usr-so3 also stays, as it restores from
the git index because so3/usr is versioned here.
A blank line after the comment blocks of these classes, and a short
description for the two functions local to do_updiff.
@daniel-rossier
daniel-rossier merged commit 36b4414 into main Nov 7, 2026
6 checks passed
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.

1 participant