Subject: _SUN3_ vs. _SUN3X_ problem on lkm build (Re: CVS commit: syssrc)
To: None <port-sun3@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-sun3
Date: 02/08/2001 00:42:41
In <200102041016.MAA02711@netbsd.hut.fi>
jmc@netbsd.org wrote:

> Module Name:	syssrc
> Committed By:	jmc
> Date:		Sun Feb  4 10:16:03 UTC 2001
> 
> Modified Files:
> 	syssrc/sys/arch/sun3/include: vmparam.h
> 
> Log Message:
> In the LKM section add some things the LKM's need (since they aren't
> defining _SUN3_ or _SUN3X_ generally to pickup the full vmparam.h
> 
> Added MAXDSIZ (set to sun3's limit) and VM_NFREELIST

Generating assym.h from genassym.cf under lkm/compat directories
also requires -D_SUN3_ or -D_SUN3X_.
(It fails but does not cause error..)

I'd like to add

.if (${MACHINE} == "sun3")
CPPFLAGS+=-D_SUN3_
.endif

to sys/lkm/compat/Makefile.inc rather than putting
"#if defined(_LKM)" to each header files.

Comments?
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp