summaryrefslogtreecommitdiffstats
path: root/src/config/cloud
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/cloud')
-rw-r--r--src/config/cloud/aws.ipxe4
-rw-r--r--src/config/cloud/ioapi.h13
2 files changed, 15 insertions, 2 deletions
diff --git a/src/config/cloud/aws.ipxe b/src/config/cloud/aws.ipxe
index 6c007398e..c1f40f340 100644
--- a/src/config/cloud/aws.ipxe
+++ b/src/config/cloud/aws.ipxe
@@ -1,7 +1,7 @@
#!ipxe
-echo Amazon EC2 - iPXE boot via user-data
-echo CPU: ${cpuvendor} ${cpumodel}
+echo Amazon EC2 ${product} - iPXE boot via user-data
+echo CPU: ${buildarch} ${cpuvendor} ${cpumodel}
ifstat ||
set attempt:int8 1
diff --git a/src/config/cloud/ioapi.h b/src/config/cloud/ioapi.h
index ba0896a9a..3ab05082f 100644
--- a/src/config/cloud/ioapi.h
+++ b/src/config/cloud/ioapi.h
@@ -4,4 +4,17 @@
#ifdef PLATFORM_pcbios
#undef PCIAPI_PCBIOS
#define PCIAPI_CLOUD
+#define PCIAPI_RUNTIME_ECAM
+#define PCIAPI_RUNTIME_PCBIOS
+#define PCIAPI_RUNTIME_DIRECT
+#endif
+
+/* Work around missing PCI host bridge drivers in the cut-down UEFI found
+ * in some AWS EC2 instances.
+ */
+#ifdef PLATFORM_efi
+#undef PCIAPI_EFI
+#define PCIAPI_CLOUD
+#define PCIAPI_RUNTIME_EFI
+#define PCIAPI_RUNTIME_ECAM
#endif