Skip to content

cheribsd-release: build vm images #413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

brooksdavis
Copy link
Member

In conjunction with the changes in
CTSRD-CHERI/cheribsd#2360 this produces ciimages/FreeBSD-15.0-CURRENT-arm64-aarch64c-BASIC-CI-ufs.raw.xz in the output directory for cheribsd-release-morello-purecap. The result is untested, but likely a usable starting point if cross build actually works.

I think we'll likely require some manual testing before this lands or it needs to got under a switch, but it should let people try it out.

@brooksdavis
Copy link
Member Author

Yeah, a bit more poking shows there's no METALOG use in the disk image so ownership will all be wrong so I need to clean that up on the CheriBSD side (or see if the foundation has a WIP far enough along to help).

@brooksdavis brooksdavis force-pushed the release-vm-images branch 2 times, most recently from 5688006 to c9d0bab Compare March 14, 2025 22:22
@brooksdavis brooksdavis requested a review from jrtc27 April 1, 2025 18:01
@brooksdavis brooksdavis force-pushed the release-vm-images branch 3 times, most recently from 8ac2066 to d6e56a8 Compare April 4, 2025 18:27
F824 Doesn't seem to understand methods of modifying a variable that
aren't direct assignment.

./pycheribuild/projects/run_fvp.py:292:21: F824 `nonlocal extra_args` is unused: name is never assigned in scope
                    nonlocal extra_args
                    ^
./pycheribuild/projects/run_qemu.py:447:13: F824 `nonlocal have_9pfs_support` is unused: name is never assigned in scope
            nonlocal have_9pfs_support
            ^
./pycheribuild/projects/run_qemu.py:448:13: F824 `nonlocal have_smbfs_support` is unused: name is never assigned in scope
            nonlocal have_smbfs_support
            ^
./pycheribuild/projects/run_qemu.py:449:13: F824 `nonlocal qemu_command` is unused: name is never assigned in scope
            nonlocal qemu_command
            ^
4     F824 `nonlocal extra_args` is unused: name is never assigned in scope
Error: Process completed with exit code 1.
I've put support behind a flag as older CheriBSD trees will break
without patchs.

If you add the flag

--cheribsd-release/build-vm-images

to a cheribsd-release-* target and the source tree supports it, an image
or images will be built as part of the release process.
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.

2 participants