Subject: Re: remove duplication of device majors list.
To: None <chuq@chuq.com>
From: MAEKAWA Masahide <bishop@rr.iij4u.or.jp>
List: tech-kern
Date: 09/04/2002 01:45:28
Chuck Silvers <chuq@chuq.com> wrote:
>how about making MAKEDEV entire table-driven and having the
>script itself common to all platforms?  it would be nice
>to not have to update all the scripts when adding a new driver.
>there would be more to parameterize than just the major numbers,
>but it doesn't seem like there are all *that* many different variants.

How about this?
     http://gehenna.as.wakwak.ne.jp/dev/new-makedev/

MAKEDEV.<arch> - machine dependent part (installed as MAKEDEV)
MAKEDEV.majors - machine dependent major list (generate by devmajors.awk)

machine independent parts:

MAKEDEV.isdn
        pseudo
        scsipi
        subr
        usb
        wscons
        ...

Machine independent parts called from MD-MAKEDEV and shared with all ports.

These are imcomplete yet, but reduced total script size.

--- MAEKAWA Masahide
--- Key fingerprint = BC5E D8CB 816C 2CB5 8560  FDE3 6CB8 BF5D 8D50 F2EE