summaryrefslogtreecommitdiff
path: root/src/shared/gpt.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-11-18 11:30:15 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-11-19 18:49:46 +0100
commit6b47cc9897a5d9eac120d24dc62fe0822f324a30 (patch)
treeb12377127dcf73a5fa9914734ee75b76224d422e /src/shared/gpt.c
parenta7f787d607415d6ed518abfc78693e2702300493 (diff)
downloadsystemd-6b47cc9897a5d9eac120d24dc62fe0822f324a30.tar.gz
shared/gpt: add entries for a bunch of architectures
I don't think we want people to send us pull requests over the next two years. Let's just make something up ourselves, this is going to have at least as good results, and will be much quicker. Note that this only includes architectures for which there's some indication that they are in active use. In architecture.h there are some more esoteric ones like ARC_BE. We can add those if there's some actual user demand. In particular, I included everything on the Debian "List of official ports" [1] and a few other arches that we have received patches for in recent times. [1] https://www.debian.org/ports/#portlist-released
Diffstat (limited to 'src/shared/gpt.c')
-rw-r--r--src/shared/gpt.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/shared/gpt.c b/src/shared/gpt.c
index d9d55b84bd..00ce666105 100644
--- a/src/shared/gpt.c
+++ b/src/shared/gpt.c
@@ -23,12 +23,22 @@
{ GPT_USR_##arch##_VERITY_SIG, "usr-" name "-verity-sig" }
const GptPartitionType gpt_partition_type_table[] = {
+ _GPT_ARCH_SEXTET(ALPHA, "alpha"),
+ _GPT_ARCH_SEXTET(ARC, "arc"),
_GPT_ARCH_SEXTET(ARM, "arm"),
_GPT_ARCH_SEXTET(ARM_64, "arm64"),
_GPT_ARCH_SEXTET(IA64, "ia64"),
_GPT_ARCH_SEXTET(LOONGARCH64, "loongarch64"),
+ _GPT_ARCH_SEXTET(MIPS_LE, "mips-le"),
+ _GPT_ARCH_SEXTET(MIPS64_LE, "mips64-le"),
+ _GPT_ARCH_SEXTET(PPC, "ppc"),
+ _GPT_ARCH_SEXTET(PPC64, "ppc64"),
+ _GPT_ARCH_SEXTET(PPC64LE, "ppc64-le"),
_GPT_ARCH_SEXTET(RISCV32, "riscv32"),
_GPT_ARCH_SEXTET(RISCV64, "riscv64"),
+ _GPT_ARCH_SEXTET(S390, "s390"),
+ _GPT_ARCH_SEXTET(S390X, "s390x"),
+ _GPT_ARCH_SEXTET(TILEGX, "tilegx"),
_GPT_ARCH_SEXTET(X86, "x86"),
_GPT_ARCH_SEXTET(X86_64, "x86-64"),
#ifdef GPT_ROOT_NATIVE
@@ -56,12 +66,22 @@ const GptPartitionType gpt_partition_type_table[] = {
};
#define _GPT_ALL_ARCHES(type,suffix) \
+ GPT_##type##_ALPHA##suffix, \
+ GPT_##type##_ARC##suffix, \
GPT_##type##_ARM##suffix, \
GPT_##type##_ARM_64##suffix, \
GPT_##type##_IA64##suffix, \
GPT_##type##_LOONGARCH64##suffix, \
+ GPT_##type##_MIPS_LE##suffix, \
+ GPT_##type##_MIPS64_LE##suffix, \
+ GPT_##type##_PPC##suffix, \
+ GPT_##type##_PPC64##suffix, \
+ GPT_##type##_PPC64LE##suffix, \
GPT_##type##_RISCV32##suffix, \
GPT_##type##_RISCV64##suffix, \
+ GPT_##type##_S390##suffix, \
+ GPT_##type##_S390X##suffix, \
+ GPT_##type##_TILEGX##suffix, \
GPT_##type##_X86##suffix, \
GPT_##type##_X86_64##suffix