illumos-packaging/bootadm/debian/patches/bootadm-avoid-sys_ucode.h.p...

25 lines
830 B
Diff

Index: bootadm/usr/src/cmd/boot/bootadm/bootadm.c
===================================================================
--- bootadm.orig/usr/src/cmd/boot/bootadm/bootadm.c 2013-05-13 16:06:09.472271912 +0400
+++ bootadm/usr/src/cmd/boot/bootadm/bootadm.c 2013-05-13 16:15:11.856230842 +0400
@@ -68,7 +68,18 @@
#endif
#if !defined(_OPB)
-#include <sys/ucode.h>
+#define UCODE_INSTALL_PATH "platform/i86pc/ucode"
+#define UCODE_VENDORS \
+static struct { \
+ char *filestr; \
+ char *extstr; \
+ char *vendorstr; \
+ int supported; \
+} ucode_vendors[] = { \
+ { "intel", "txt", "GenuineIntel", 1 }, \
+ { "amd", "bin", "AuthenticAMD", 1 }, \
+ { NULL, NULL, NULL, 0 } \
+}
#endif
#include <pwd.h>