summaryrefslogtreecommitdiff
path: root/bootadm/debian/patches/bootadm-avoid-sys_ucode.h.patch
blob: aa987579bfb71ed8423624aeff313db9ee822594 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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>