pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/xentools45 xentools45: fix building seabios w...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4b22eeedd874
branches:  trunk
changeset: 309929:4b22eeedd874
user:      maya <maya%pkgsrc.org@localhost>
date:      Thu Jun 28 02:26:49 2018 +0000

description:
xentools45: fix building seabios with newer iasl.
(on xentools46, 48 we have seabios disabled)

OEM Table ID is expected to be 8 characters.

mysteriously, even upstream is broken.
bump PKGREVISION.

diffstat:

 sysutils/xentools45/Makefile                                      |   6 +-
 sysutils/xentools45/distinfo                                      |   6 +-
 sysutils/xentools45/patches/patch-firmware_hvmloader_Makefile     |  36 +++++++--
 sysutils/xentools45/patches/patch-qemu-xen_hw_i386_ssdt_misc.dsl  |  16 ++++
 sysutils/xentools45/patches/patch-qemu-xen_hw_i386_ssdt_pcihp.dsl |  15 ++++
 5 files changed, 66 insertions(+), 13 deletions(-)

diffs (133 lines):

diff -r cb8ec1a78172 -r 4b22eeedd874 sysutils/xentools45/Makefile
--- a/sysutils/xentools45/Makefile      Thu Jun 28 01:11:29 2018 +0000
+++ b/sysutils/xentools45/Makefile      Thu Jun 28 02:26:49 2018 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.58 2018/06/27 10:44:15 maya Exp $
+# $NetBSD: Makefile,v 1.59 2018/06/28 02:26:49 maya Exp $
 
 VERSION=       4.5.5
-PKGREVISION=   10
+PKGREVISION=   11
 VERSION_IPXE=  9a93db3f0947484e30e753bbd61a10b17336e20e
 
 DISTNAME=              xen-${VERSION}
@@ -20,7 +20,7 @@
 
 # XXX add version check: Xen requires dev86 >= 0.16.14
 BUILD_DEPENDS+= dev86-[0-9]*:../../devel/dev86 # needed to build firmware
-#.if !exists(/usr/bin/iasl) # XXX broken with iasl 20171110
+#.if !exists(/usr/bin/iasl) # NetBSD ships a broken iasl
 BUILD_DEPENDS+= acpica-utils-[0-9]*:../../sysutils/acpica-utils
 #.endif
 DEPENDS+=   ${PYPKGPREFIX}-curses>=0:../../devel/py-curses
diff -r cb8ec1a78172 -r 4b22eeedd874 sysutils/xentools45/distinfo
--- a/sysutils/xentools45/distinfo      Thu Jun 28 01:11:29 2018 +0000
+++ b/sysutils/xentools45/distinfo      Thu Jun 28 02:26:49 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.33 2018/01/27 19:11:41 abs Exp $
+$NetBSD: distinfo,v 1.34 2018/06/28 02:26:49 maya Exp $
 
 SHA1 (ipxe-git-9a93db3f0947484e30e753bbd61a10b17336e20e.tar.gz) = fecadf952821e830ce1a1d19655288eef8488f88
 RMD160 (ipxe-git-9a93db3f0947484e30e753bbd61a10b17336e20e.tar.gz) = 539bfa12db7054228250d6dd380bbf96c1a040f8
@@ -38,7 +38,7 @@
 SHA1 (patch-examples_Makefile) = 5fe7bb876d254cf0c4f774ed0f08dcaea5b355ff
 SHA1 (patch-firmware_etherboot_Makefile) = f55e14948b7191e533a82b8fc3575f1052f23c45
 SHA1 (patch-firmware_etherboot_patches_series) = 2fa1342c78094c6dd5d60a07c236c4a1c0599fc4
-SHA1 (patch-firmware_hvmloader_Makefile) = bc5e81ddfc5e95887c2af4bb32eced9c5748b3c6
+SHA1 (patch-firmware_hvmloader_Makefile) = 029877d4f0f5955a01512c7e79ae12d31f318da5
 SHA1 (patch-hotplug_NetBSD_Makefile) = 6f6ec768b595c332a8757437a64509c0370e52da
 SHA1 (patch-hotplug_NetBSD_block) = f7ef26d13578b00138f459f6d16662d53820458c
 SHA1 (patch-hotplug_NetBSD_vif-bridge) = ac4cc7446715330b504b8cce8cbd47c8035cf33c
@@ -73,6 +73,8 @@
 SHA1 (patch-qemu-xen-traditional_i386-dm_hookstarget.mak) = 50c6bc068406effe94b638ffced7d8edf5729717
 SHA1 (patch-qemu-xen-traditional_xen-hooks.mak) = ccc055fdb56ee796e1464f709aa576ab8cd9c6f1
 SHA1 (patch-qemu-xen_audio_audio.c) = 8452d63fe90e38a64111d0cf425bacd565fe6d82
+SHA1 (patch-qemu-xen_hw_i386_ssdt_misc.dsl) = 309c8785a4c7d947fc31bdc513adc789b68c69ba
+SHA1 (patch-qemu-xen_hw_i386_ssdt_pcihp.dsl) = fd8768f997c9baee5e5681676e90b58e3162e2e5
 SHA1 (patch-qemu-xen_qemu-doc.texi) = 721e80d15ac30ac71df3d6c4c485b0bf70897cf9
 SHA1 (patch-qemu-xen_util_hbitmap.c) = 5a495ae2b47d1ff6dd342633b8d655582f21dffe
 SHA1 (patch-qemu-xen_xen-hvm.c) = 11d4deb5de577e8beb2d1c6c3ca886e3d7563f8a
diff -r cb8ec1a78172 -r 4b22eeedd874 sysutils/xentools45/patches/patch-firmware_hvmloader_Makefile
--- a/sysutils/xentools45/patches/patch-firmware_hvmloader_Makefile     Thu Jun 28 01:11:29 2018 +0000
+++ b/sysutils/xentools45/patches/patch-firmware_hvmloader_Makefile     Thu Jun 28 02:26:49 2018 +0000
@@ -1,13 +1,33 @@
-$NetBSD: patch-firmware_hvmloader_Makefile,v 1.1 2015/01/20 16:42:13 bouyer Exp $
+$NetBSD: patch-firmware_hvmloader_Makefile,v 1.2 2018/06/28 02:26:49 maya Exp $
+
+Fix for newer iasl. From royger upstream.
+https://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=858dbaaeda33b05c1ac80aea0ba9a03924e09005
 
---- firmware/hvmloader/Makefile.orig   2015-01-12 17:53:24.000000000 +0100
-+++ firmware/hvmloader/Makefile        2015-01-19 13:16:37.000000000 +0100
-@@ -26,7 +26,7 @@
- # The HVM loader is started in 32-bit mode at the address below:
- LOADADDR = 0x100000
+--- firmware/hvmloader/acpi/Makefile.orig      2016-09-20 05:59:24.000000000 +0000
++++ firmware/hvmloader/acpi/Makefile
+@@ -21,14 +21,14 @@ include $(XEN_ROOT)/tools/firmware/Rules
+ C_SRC = build.c dsdt_anycpu.c dsdt_15cpu.c static_tables.c dsdt_anycpu_qemu_xen.c
+ OBJS  = $(patsubst %.c,%.o,$(C_SRC))
  
 -CFLAGS += $(CFLAGS_xeninclude)
 +CFLAGS += $(CFLAGS_xeninclude) $(EXTRA_CFLAGS)
  
- OBJS  = hvmloader.o mp_tables.o util.o smbios.o 
- OBJS += smp.o cacheattr.o xenbus.o
+ vpath iasl $(PATH)
+ all: acpi.a
+ 
+ ssdt_s3.h ssdt_s4.h ssdt_pm.h ssdt_tpm.h: %.h: %.asl iasl
+       iasl -vs -p $* -tc $<
+-      sed -e 's/AmlCode/$*/g' $*.hex >$@
++      sed -e 's/AmlCode/$*/g' -e 's/_aml_code//g' $*.hex >$@
+       rm -f $*.hex $*.aml
+ 
+ mk_dsdt: mk_dsdt.c
+@@ -45,7 +45,7 @@ dsdt_%cpu.asl: dsdt.asl mk_dsdt
+ 
+ $(filter dsdt_%.c,$(C_SRC)): %.c: iasl %.asl
+       iasl -vs -p $* -tc $*.asl
+-      sed -e 's/AmlCode/$*/g' $*.hex >$@
++      sed -e 's/AmlCode/$*/g' -e 's/_aml_code//g' $*.hex >$@
+       echo "int $*_len=sizeof($*);" >>$@
+       rm -f $*.aml $*.hex
+ 
diff -r cb8ec1a78172 -r 4b22eeedd874 sysutils/xentools45/patches/patch-qemu-xen_hw_i386_ssdt_misc.dsl
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools45/patches/patch-qemu-xen_hw_i386_ssdt_misc.dsl  Thu Jun 28 02:26:49 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-qemu-xen_hw_i386_ssdt_misc.dsl,v 1.1 2018/06/28 02:26:49 maya Exp $
+
+Fix seabios build with newer iasl.
+Length was previously truncated to 8 characters.
+
+--- qemu-xen/hw/i386/ssdt-misc.dsl.orig        2016-07-27 17:50:05.000000000 +0000
++++ qemu-xen/hw/i386/ssdt-misc.dsl
+@@ -15,7 +15,7 @@
+ 
+ ACPI_EXTRACT_ALL_CODE ssdp_misc_aml
+ 
+-DefinitionBlock ("ssdt-misc.aml", "SSDT", 0x01, "BXPC", "BXSSDTSUSP", 0x1)
++DefinitionBlock ("ssdt-misc.aml", "SSDT", 0x01, "BXPC", "BXSSDTSU", 0x1)
+ {
+ 
+ /****************************************************************
diff -r cb8ec1a78172 -r 4b22eeedd874 sysutils/xentools45/patches/patch-qemu-xen_hw_i386_ssdt_pcihp.dsl
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools45/patches/patch-qemu-xen_hw_i386_ssdt_pcihp.dsl Thu Jun 28 02:26:49 2018 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-qemu-xen_hw_i386_ssdt_pcihp.dsl,v 1.1 2018/06/28 02:26:49 maya Exp $
+
+Fix seabios build with newer iasl.
+
+--- qemu-xen/hw/i386/ssdt-pcihp.dsl.orig       2016-07-27 17:50:05.000000000 +0000
++++ qemu-xen/hw/i386/ssdt-pcihp.dsl
+@@ -15,7 +15,7 @@
+ 
+ ACPI_EXTRACT_ALL_CODE ssdp_pcihp_aml
+ 
+-DefinitionBlock ("ssdt-pcihp.aml", "SSDT", 0x01, "BXPC", "BXSSDTPCIHP", 0x1)
++DefinitionBlock ("ssdt-pcihp.aml", "SSDT", 0x01, "BXPC", "BXSSDTPC", 0x1)
+ {
+ 
+ /****************************************************************



Home | Main Index | Thread Index | Old Index