Subject: re: MIPS cleanup/rototill and support for mips32/mips64
To: Simon Burge <simonb@wasabisystems.com>
From: matthew green <mrg@eterna.com.au>
List: port-hpcmips
Date: 03/14/2002 00:15:38
   
   > At Thu, 07 Mar 2002 09:25:08 +0900,
   > FUKAUMI Naoki wrote:
   > > I saw sys/lkm/compat/ultrix/Makefile and I made patch:
   > > 
   > > Index: sys/lkm/netinet/if_ipl/Makefile
   > (snip)
   > 
   > Oh... I found that all lkm module (for mips) have same problem. ;)
   > Here is the patch. (Include previous netinet/if_ipl/Makefile diff)
   > But I don't know this is the best solution...
   
   How does the patch below look?  I think this is a better general
   solution to the problem...

seems the right answer to me.
    
   +#ifdef _LKM
   +/* Assume all CPU architectures are valid for LKM's */
   +#define	MIPS1	1
   +#define	MIPS3	1
   +#define	MIPS4	1
   +#define	MIPS32	1
   +#define	MIPS64	1
   +#endif
   +
    #if (MIPS1 + MIPS3 + MIPS4 + MIPS32 + MIPS64) == 0
    #error at least one of MIPS1, MIPS3, MIPS4, MIPS32 or MIPS64 must be specified
    #endif
   


.mrg.