pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators/gxemul Add a workaround to make NetBSD/arc w...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6c0a61dc25fa
branches: trunk
changeset: 547202:6c0a61dc25fa
user: tsutsui <tsutsui%pkgsrc.org@localhost>
date: Sun Sep 14 06:15:35 2008 +0000
description:
Add a workaround to make NetBSD/arc work with vga/pckbd console.
(set proper ARC environments to avoid cngetc() on boot device detection)
Bump PKGREVISION.
diffstat:
emulators/gxemul/Makefile | 3 +-
emulators/gxemul/distinfo | 3 +-
emulators/gxemul/patches/patch-aa | 42 +++++++++++++++++++++++++++++++++++++++
3 files changed, 46 insertions(+), 2 deletions(-)
diffs (70 lines):
diff -r 1bf37daa3de9 -r 6c0a61dc25fa emulators/gxemul/Makefile
--- a/emulators/gxemul/Makefile Sun Sep 14 05:18:45 2008 +0000
+++ b/emulators/gxemul/Makefile Sun Sep 14 06:15:35 2008 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.37 2008/06/18 21:30:15 minskim Exp $
+# $NetBSD: Makefile,v 1.38 2008/09/14 06:15:35 tsutsui Exp $
#
DISTNAME= gxemul-0.4.6.5
+PKGREVISION= 1
CATEGORIES= emulators
MASTER_SITES= http://gavare.se/gxemul/src/
diff -r 1bf37daa3de9 -r 6c0a61dc25fa emulators/gxemul/distinfo
--- a/emulators/gxemul/distinfo Sun Sep 14 05:18:45 2008 +0000
+++ b/emulators/gxemul/distinfo Sun Sep 14 06:15:35 2008 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.24 2008/06/18 21:30:15 minskim Exp $
+$NetBSD: distinfo,v 1.25 2008/09/14 06:15:35 tsutsui Exp $
SHA1 (gxemul-0.4.6.5.tar.gz) = 9eaee8a7f0ce811199e206b736e87208b0b6fe29
RMD160 (gxemul-0.4.6.5.tar.gz) = edc2a51d13e5c0e85a6cd5ac54d63aa605b22275
Size (gxemul-0.4.6.5.tar.gz) = 2187357 bytes
+SHA1 (patch-aa) = 0274334a1ef8e348ee39194331c3e92660dbda7c
diff -r 1bf37daa3de9 -r 6c0a61dc25fa emulators/gxemul/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/gxemul/patches/patch-aa Sun Sep 14 06:15:35 2008 +0000
@@ -0,0 +1,42 @@
+--- src/promemul/arcbios.c.orig 2007-08-30 05:36:35.000000000 +0900
++++ src/promemul/arcbios.c 2008-02-02 12:13:18.000000000 +0900
+@@ -2211,7 +2211,10 @@
+ }
+
+ if (machine->machine_type == MACHINE_ARC)
+- strlcat(init_bootpath, "\\", bootpath_len);
++ snprintf(init_bootpath + strlen(init_bootpath),
++ bootpath_len - strlen(init_bootpath),
++ "scsi(0)disk(%i)rdisk(0)partition(1)",
++ machine->bootdev_id);
+
+ CHECK_ALLOCATION(machine->bootstr = malloc(ARC_BOOTSTR_BUFLEN));
+
+@@ -2362,20 +2365,17 @@
+ add_environment_string(cpu, "kernname=unix", &addr);
+ } else {
+ char *tmp;
+- size_t mlen = strlen(machine->bootarg) +
+- strlen("OSLOADOPTIONS=") + 2;
++ size_t mlen = ARC_BOOTSTR_BUFLEN;
+ CHECK_ALLOCATION(tmp = malloc(mlen));
+ snprintf(tmp, mlen, "OSLOADOPTIONS=%s", machine->bootarg);
+ store_pointer_and_advance(cpu, &addr2, addr, is64bit);
+ add_environment_string(cpu, tmp, &addr);
+-
+- store_pointer_and_advance(cpu, &addr2, addr, is64bit);
+- add_environment_string(cpu, "OSLOADPARTITION=scsi(0)cdrom(6)"
+- "fdisk(0);scsi(0)disk(0)rdisk(0)partition(1)", &addr);
+-
+ store_pointer_and_advance(cpu, &addr2, addr, is64bit);
+- add_environment_string(cpu, "SYSTEMPARTITION=scsi(0)cdrom(6)"
+- "fdisk(0);scsi(0)disk(0)rdisk(0)partition(1)", &addr);
++ snprintf(tmp, mlen,
++ "OSLOADPARTITION=scsi(0)disk(%d)rdisk(0)partition(1)",
++ machine->bootdev_id);
++ add_environment_string(cpu, tmp, &addr);
++ free(tmp);
+ }
+
+ /* End the environment strings with an empty zero-terminated
+
Home |
Main Index |
Thread Index |
Old Index