diff options
author | Helmut Grohne <helmut@subdivi.de> | 2023-01-17 10:33:10 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2023-01-17 10:33:10 +0100 |
commit | 0564f314afc45b757a5813e5c6e485dc343a6b2d (patch) | |
tree | d931df1469f993ace06028f3af63f44247f84803 | |
parent | f524f063ea335221c1ee2a74ba18f7b5a808fdb5 (diff) | |
download | debvm-0564f314afc45b757a5813e5c6e485dc343a6b2d.tar.gz |
expand architecture coverage
Give an example of how to use it with ports and add a few
architecture-specific cases. Note that m68k and sparc64 do not actually
work, because they lack PCI.
-rwxr-xr-x | bin/debvm-create | 12 | ||||
-rwxr-xr-x | bin/debvm-run | 10 |
2 files changed, 22 insertions, 0 deletions
diff --git a/bin/debvm-create b/bin/debvm-create index 95305a9..2e838f2 100755 --- a/bin/debvm-create +++ b/bin/debvm-create @@ -101,6 +101,12 @@ Any positional arguments passed here will be treated as mirror specifications by =back +=head1 EXAMPLES + +In order to create images for Debian ports architectures, you can pass two options to mmdebstrap: + + debvm-create ... -- http://deb.debian.org/debian-ports --keyring=/usr/share/keyrings/debian-ports-archive-keyring.gpg + =head1 SEE ALSO debvm-run(1) mmdebstrap(1) @@ -216,6 +222,9 @@ case "$ARCHITECTURE" in armhf) KERNEL_ARCH=armmp ;; + hppa) + KERNEL_ARCH=parisc + ;; i386) KERNEL_ARCH=686-pae ;; @@ -225,6 +234,9 @@ case "$ARCHITECTURE" in mipsel) KERNEL_ARCH=4kc-malta ;; + ppc64) + KERNEL_ARCH=powerpc64 + ;; ppc64el) KERNEL_ARCH=powerpc64le ;; diff --git a/bin/debvm-run b/bin/debvm-run index e36ea60..3c3e528 100755 --- a/bin/debvm-run +++ b/bin/debvm-run @@ -241,9 +241,16 @@ else QEMU=qemu-system-arm set -- -machine virt -cpu max "$@" ;; + powerpc) + QEMU=qemu-system-ppc + MAX_SMP=1 + ;; ppc64el) QEMU=qemu-system-ppc64 ;; + m68k) + MAX_SMP=1 + ;; mips64el) MAX_SMP=1 set -- -cpu 5KEc "$@" @@ -254,6 +261,9 @@ else riscv64) set -- -machine virt "$@" ;; + sparc64) + MAX_SMP=1 + ;; esac fi if test -z "$MAX_SMP" || test "$MAX_SMP" -gt 1; then |