diff options
author | Sam Leonard <sam.leonard@codethink.co.uk> | 2023-11-07 15:04:11 +0100 |
---|---|---|
committer | Sam Leonard <sam.leonard@codethink.co.uk> | 2024-02-09 12:43:18 +0100 |
commit | cf3beb273b2b81e0928a177bc0e18cf01e24c392 (patch) | |
tree | fd1a58bde8c3dc34f69acd1c27f0dec45bf977bb /src/vmspawn/vmspawn-util.h | |
parent | path-lookup: add runtime_directory for resolving $RUNTIME_DIRECTORY (diff) | |
download | systemd-cf3beb273b2b81e0928a177bc0e18cf01e24c392.tar.xz systemd-cf3beb273b2b81e0928a177bc0e18cf01e24c392.zip |
vmspawn: add swtpm feature
Diffstat (limited to 'src/vmspawn/vmspawn-util.h')
-rw-r--r-- | src/vmspawn/vmspawn-util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vmspawn/vmspawn-util.h b/src/vmspawn/vmspawn-util.h index f2d1b621e2..c3dbdf205b 100644 --- a/src/vmspawn/vmspawn-util.h +++ b/src/vmspawn/vmspawn-util.h @@ -10,6 +10,12 @@ #define ARCHITECTURE_SUPPORTS_SMBIOS 0 #endif +#if defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) +#define ARCHITECTURE_SUPPORTS_TPM 1 +#else +#define ARCHITECTURE_SUPPORTS_TPM 0 +#endif + #if defined(__arm__) || defined(__aarch64__) #define DEFAULT_SERIAL_TTY "ttyAMA0" #elif defined(__s390__) || defined(__s390x__) |