Skip to content

Commit

Permalink
doc: add SEDEBUG option in mkosi Makefile
Browse files Browse the repository at this point in the history
- Added SEDEBUG option for s390x PeerPod image via mkosi

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
  • Loading branch information
huoqifeng committed Jun 21, 2024
1 parent a7d8654 commit 169d4fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/cloud-api-adaptor/podvm-mkosi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ include ../Makefile.defaults
ATTESTER ?= none
ARCH ?= $(subst x86_64,amd64,$(shell uname -m))
BUILDER = fedora-binaries-builder-$(ARCH)
SEDEBUG ?= false

REGISTRY ?= quay.io/confidential-containers
PODVM_DISTRO ?= fedora
Expand Down Expand Up @@ -71,7 +72,11 @@ image-debug:
touch resources/buildDebugImage
rm -rf ./build
@echo "Building debug image..."
ifeq ($(ARCH),s390x)
ifeq ($(SEDEBUG),true)
touch resources/buildS390xImage
sudo mkosi --profile debug.conf
sudo -E ../hack/build-s390x-se-image.sh
else ifeq ($(ARCH),s390x)
touch resources/buildS390xImage
sudo mkosi --profile debug.conf
sudo -E ../hack/build-s390x-image.sh
Expand Down
3 changes: 2 additions & 1 deletion src/cloud-api-adaptor/podvm-mkosi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ make fedora-binaries-builder
ATTESTER=se-attester make binaries
make image
# make image-debug
# SEDEBUG=true make image-debug
```

The final output is `build/podvm-s390x.qcow2` for `image-debug` or `build/podvm-s390x-se.qcow2` for `make image`, which can be used as the Pod VM image in libvirt environment.
The final output is `build/podvm-s390x.qcow2` or `build/podvm-s390x-se.qcow2`, which can be used as the Pod VM image in libvirt environment.

0 comments on commit 169d4fd

Please sign in to comment.