diff options
Diffstat (limited to 'bootadm/debian/patches/bootadm-avoid-sys_ucode.h.patch')
-rw-r--r-- | bootadm/debian/patches/bootadm-avoid-sys_ucode.h.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/bootadm/debian/patches/bootadm-avoid-sys_ucode.h.patch b/bootadm/debian/patches/bootadm-avoid-sys_ucode.h.patch new file mode 100644 index 0000000..aa98757 --- /dev/null +++ b/bootadm/debian/patches/bootadm-avoid-sys_ucode.h.patch @@ -0,0 +1,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> |