mirror of
https://github.com/systemd/systemd
synced 2025-10-06 00:13:24 +02:00
vmspawn: add machine types for m68k/sparc64 and default to 'none' if unknown
Qemu has a 'none' machine that can be used for very basic booting on weird arches, just default to that unless otherwise specified
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
|
||||
#if defined(__x86_64__) || defined(__i386__)
|
||||
# define QEMU_MACHINE_TYPE "q35"
|
||||
#elif defined(__arm__) || defined(__aarch64__) || defined(__riscv) || defined(__loongarch64)
|
||||
#elif defined(__arm__) || defined(__aarch64__) || defined(__riscv) || defined(__loongarch64) || defined(__m68k__)
|
||||
# define QEMU_MACHINE_TYPE "virt"
|
||||
#elif defined(__s390__) || defined(__s390x__)
|
||||
# define QEMU_MACHINE_TYPE "s390-ccw-virtio"
|
||||
@@ -43,8 +43,10 @@
|
||||
# define QEMU_MACHINE_TYPE "pseries"
|
||||
#elif defined(__mips__)
|
||||
# define QEMU_MACHINE_TYPE "malta"
|
||||
#elif defined(__sparc__)
|
||||
# define QEMU_MACHINE_TYPE "sun4u"
|
||||
#else
|
||||
# error "No qemu machine defined for this architecture"
|
||||
# define QEMU_MACHINE_TYPE "none"
|
||||
#endif
|
||||
|
||||
typedef struct OvmfConfig {
|
||||
|
Reference in New Issue
Block a user