Subject: Re: Duo 230 and MacBSD, kernel compiling
To: None <port-mac68k@NetBSD.ORG, briggs@puma.bevd.blacksburg.va.us>
From: Markus Hitter <M.Hitter@trier.fh-rpl.de>
List: port-mac68k
Date: 03/02/1996 20:24:20
On Feb 28,  6:57pm, Bill Studenmund wrote:
> > Also, does anyone have a MacBSD system that I could use to compile test
> > kernels on?
>
> With an X-compiling environment, you should be able to make all of the
> netbsd programs. The Readme says that kernel compiles don't work yet
> as config hasn't been ported.

Oh. It was not very hard for me to port this 'config' to an RS6000. Patch added
below.

Did someone get sup running on a non-MacBSD machine? I tried it on RS6000 and a
Linux box. On Linux I could at least compile, but not running, too.

============= The patch ==================

diff -rc3 config/config.h config.aix/config.h
*** config/config.h	Sat Oct 14 04:53:39 1995
--- config.aix/config.h	Sat Jan 13 00:30:40 1996
***************
*** 43,48 ****
--- 43,57 ----
   *	$Id: config.h,v 1.18 1995/04/28 06:55:01 cgd Exp $
   */

+ #ifdef _AIX
+ #define __P(x) x
+ #define __dead __volatile
+ #define   NODEV   (dev_t)(-1)
+ #define ALIGNBYTES        (sizeof(int) - 1)
+ #define   ALIGN(p)        (((u_int)(p) + ALIGNBYTES) &~ ALIGNBYTES)
+ #define minor(__x)        (int)((__x)&0xFFFF) /* from AIX */
+ #endif
+
  /*
   * Name/value lists.  Values can be strings or pointers and/or can carry
   * integers.  The names can be NULL, resulting in simple value lists.



-- 
-----------------------------------------------------------------------
 Markus Hitter                 email: hitterm@trier.fh-rpl.de
                               WWW: http://www.trier.fh-rpl.de/~hitterm
 Trier (Germany)               Voice: ++49/0651/828172
-----------------------------------------------------------------------