feat: add support for RISC-V architecture#303
Conversation
|
Check where you would like a Mattermost message to be sent to when CI completes and this PR is merged
|
9e60eca to
e500f49
Compare
|
can you please run |
a57cc15 to
d51d537
Compare
|
Now lint is passing but there seems to be a lot of test errors. |
|
For testing purposes, I also modified For diff --git a/conf/bootloaders.yaml b/conf/bootloaders.yaml
index d788a6a..e1b15ac 100644
--- a/conf/bootloaders.yaml
+++ b/conf/bootloaders.yaml
@@ -41,6 +41,16 @@ bootloaders:
- usr/lib/shim/shimaa64.efi.signed.latest, bootaa64.efi
- usr/lib/shim/mmaa64.efi, mmaa64.efi
- usr/lib/grub/arm64-efi-signed/grubnetaa64.efi.signed, grubaa64.efi
+ - firmware-platform: uefi
+ packages:
+ - grub-efi-riscv64-bin
+ arch: riscv64
+ arches: riscv64
+ archive: http://ports.ubuntu.com
+ release: noble
+ os: grub-efi
+ files:
+ - usr/lib/grub/riscv64-efi/monolithic/grubnetriscv64.efi, grubriscv64.efi
- firmware-platform: open-firmware
packages:
- grub-ieee1275-binFor diff --git a/src/app/apiclient/types.gen.ts b/src/app/apiclient/types.gen.ts
index 6fa5bb4c3..ae243a609 100644
--- a/src/app/apiclient/types.gen.ts
+++ b/src/app/apiclient/types.gen.ts
@@ -1112,6 +1112,7 @@ export type KnownArchesEnum =
| "armhf"
| "i386"
| "ppc64el"
+ | "riscv64"
| "s390x";
/**
diff --git a/src/app/store/general/types/base.ts b/src/app/store/general/types/base.ts
index c1d996d47..f9fe589e6 100644
--- a/src/app/store/general/types/base.ts
+++ b/src/app/store/general/types/base.ts
@@ -113,6 +113,7 @@ export type KnownArchitecture =
| "armhf"
| "i386"
| "ppc64el"
+ | "riscv64"
| "s390x";
export type KnownArchitecturesState = {I'm not sure this is super helpful but just FYI 😃 |
|
Thanks for the review @bjornt. My approach must have been a bit too agressive as I added |
d51d537 to
25fe8ee
Compare
Signed-off-by: Valentin Haudiquet <valentin.haudiquet@canonical.com>
25fe8ee to
ba38823
Compare
|
I pushed an update to the tests that should fix all failures hopefully 😃 |
Original MP on Launchpad: https://code.launchpad.net/~vhaudiquet/maas/+git/maas/+merge/501672
It might be a bit too agressive as I added riscv64 everywhere I thought it was missing. Someone needs to check if this does not break stuff on other arches, but otherwise it did work on riscv64 during my experiments.
I also only added UEFI TFTP boot on riscv64, and not HTTP boot.