Skip to content
Merged
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
3 changes: 2 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ jobs:
run: |
# Use the system-provided python3 instead of actions/setup-python@v4
python3 --version
python3 -m pip install --break-system-packages --upgrade pip
# Don't upgrade pip. It currently fails to uninstall.
# python3 -m pip install --break-system-packages --upgrade pip
python3 -m pip install --break-system-packages --upgrade pre-commit ruff==${{ env.RUFF_VERSION }}
python3 -m pip install --break-system-packages -r requirements.txt
- name: Lint with flake8
Expand Down
13 changes: 13 additions & 0 deletions pycheribuild/projects/cross/cheribsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -2179,6 +2179,15 @@ def supported_architectures(self) -> "tuple[CrossCompileTarget, ...]":


class BuildFreeBSDReleaseMixin(ReleaseMixinBase):
@classmethod
def setup_config_options(cls, **kwargs) -> None:
super().setup_config_options(**kwargs)
cls.build_vm_images = cls.add_bool_option(
"build-vm-images",
_allow_unknown_targets=True,
help="Build VM images with releases.",
)

def check_system_dependencies(self) -> None:
super().check_system_dependencies()
self.check_required_system_tool("bsdtar", cheribuild_target="bsdtar", apt="libarchive-tools")
Expand Down Expand Up @@ -2244,6 +2253,10 @@ def process(self) -> None:
release_args.set_env(INSTALL="sh " + str(self.source_dir / "tools/install.sh"))
release_args.set_env(XZ_CMD=str(self.objdir / "tmp/legacy/usr/bin/xz -T 0"))

release_args.set_with_options(QEMU=False)
if self.build_vm_images:
release_args.set_with_options(CLOUDWARE=True)

# Need bsdtar for @file support
release_args.set_env(TAR_CMD="bsdtar")

Expand Down