Skip to content

Do not fetch QEMU's ROM submodules - #204

Merged
Victor-Jung merged 1 commit into
pulp-platform:develfrom
gamzeisl:gisl/fix-qemu-submodules
Aug 19, 2026
Merged

Do not fetch QEMU's ROM submodules#204
Victor-Jung merged 1 commit into
pulp-platform:develfrom
gamzeisl:gisl/fix-qemu-submodules

Conversation

@gamzeisl

Copy link
Copy Markdown
Contributor

Fixes the toolchain build, which currently fails due to QEMU submodules.

The QEMU checkout ran git submodule update --init --recursive, which descends into roms/edk2 and from there into edk2's own submodules. One of those pins cmocka to https://git.cryptomilk.org/projects/cmocka.git, which no longer serves a git repository, so the clone aborts.

The ROM submodules are not needed. QEMU's configure initialises what the build requires — ui/keycodemapdb, meson, dtc, capstone, slirp and the berkeley float libraries — through scripts/git-submodule.sh, and roms/edk2 is not among them. Dropping the line also saves fetching ~20 firmware submodules on every image build.

Fixed

  • Do not fetch QEMU's ROM submodules when building the toolchain.

The QEMU checkout ran `git submodule update --init --recursive`, which
descends into roms/edk2 and from there into edk2's own submodules. One of
those pins cmocka to https://git.cryptomilk.org/projects/cmocka.git, which
no longer serves a git repository, so the clone fails and the container image
cannot be built on any architecture.
None of the ROM submodules are needed. QEMU's configure initialises exactly
what the build requires - ui/keycodemapdb, meson, dtc, capstone, slirp and
the berkeley float libraries - through scripts/git-submodule.sh, and
roms/edk2 is never among them.
@coderabbitai

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 6724565a-ade4-4b66-a471-1b47bb5e90e0

📥 Commits

Reviewing files that changed from the base of the PR and between bf64cfa and 77ad65e.

📒 Files selected for processing (1)
  • Makefile

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Updated the QEMU source checkout process to avoid initializing recursive submodules when cloning the stable-6.1 branch.

Walkthrough

The Makefile now performs only a shallow clone of QEMU’s stable-6.1 branch. It no longer enters the checkout directory or initializes recursive submodules.

Changes

QEMU checkout

Layer / File(s)Summary
Simplify clone command
Makefile
The QEMU clone command retains the shallow stable-6.1 clone and removes directory entry and recursive submodule initialization.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk:⚪ Minimal · up to 77ad6

This localized build change avoids fetching unnecessary QEMU ROM submodules and addresses the reported toolchain build failure; no actionable merge-blocking risk remains beyond normal checks and review.

Suggested reviewers:runwangdl

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check nameStatusExplanation
Title check✅ PassedThe title clearly states the main change: avoiding QEMU ROM submodule fetching.
Description check✅ PassedThe description directly explains the build failure, the unnecessary ROM submodules, and the intended fix.
Docstring Coverage✅ PassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gamzeisl

gamzeisl commented Aug 19, 2026

Copy link
Copy Markdown
ContributorAuthor

Verified as part of another branch, which contains this commit: the container image builds successfully (run).

@Victor-JungVictor-Jung left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good change, thanks for fixing this before I bump into the issue 😁

@Victor-Jung
Victor-Jung merged commit 3d553a6 into pulp-platform:develAug 19, 2026
50 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BugSomething isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants

@gamzeisl@Victor-Jung