pmb/parse/arch.py: add riscv64 -> riscv to kernel carch mapping

This fixes both the default riscv64 kernel APKBUILD "_carch" selection and
"pmbootstrap kconfig edit" functionality even after manually corrected
"_carch" variable.

  (native) make menuconfig
  ../Makefile:609: ../arch/riscv64/Makefile: No such file or directory

See also https://github.com/torvalds/linux/tree/master/arch with search
for "riscv"

Reviewed-by: Clayton Craft <clayton@craftyguy.net>
Reviewed-by: Oliver Smith <ollieparanoid@postmarketos.org>
Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C167858205621.22796.14648808830656459528-0@git.sr.ht%3E
This commit is contained in:
Jami Kettunen 2023-03-12 02:37:05 +02:00 committed by Oliver Smith
parent 90ae7f3a79
commit 7186673d59
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,8 @@ def alpine_to_kernel(arch):
"aarch64*": "arm64",
"arm*": "arm",
"ppc*": "powerpc",
"s390*": "s390"
"s390*": "s390",
"riscv64*": "riscv"
}
for pattern, arch_kernel in mapping.items():
if fnmatch.fnmatch(arch, pattern):