Commit Graph

25 Commits

Author SHA1 Message Date
matt e8e589879a Teach this to deal with the use of include in majors files. 2014-09-19 09:01:05 +00:00
mbalmer 199f668519 Rename the 'gpio' group to '_gpio' as new group names should start with an
underscore.  While here, fix the awk script to properly expand such group
names.
2013-05-20 11:37:02 +00:00
skrll 5441b5c8c7 Match all the arm machines to get the majors.arm32 file 2013-04-14 13:47:37 +00:00
skrll 79d4c5e554 Find the right majors files for earm* 2013-04-12 12:30:18 +00:00
mrg 99c2a7aed7 make sure we pickup the powerpc majors file on powerpc64.
from dennis.c.ferguson@gmail.com in PR#43074.
2010-03-30 07:30:03 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
garbled 12d0909e08 Change to deal with the shared powerpc majors file, copied from the arm32
handling.
2007-12-10 17:57:24 +00:00
scw 5764a76889 Remove support for NetBSD/{,evb}sh5. 2007-04-08 09:35:21 +00:00
dsl 5c2f2286e3 Add a globally applied substitution pattern for the console major number.
Use it when creating a temporary node for the console.
MAKEDEV -M should now output what it is doing.
2007-03-09 13:57:54 +00:00
he c4f693fe6b Make a simple fix for inculsion of disklabel.h. Since this script
doesn't do CPP conditionals, just avoid trying to "include" files
in the newly established nbinclude area, the in-tree version in the
normal place should work fine.

Fixes build problem for (among several others) cats.
2005-06-14 20:47:46 +00:00
enami 9f8afc0e9b The char position passed to substr() should be 1 origion. 2004-04-22 23:02:39 +00:00
enami ef38ad00a0 Search and replace by hand rather than using gsub() in loop. This reduces
number of search and prevents DFA cache overflow (and script runs faster).
2004-03-18 22:51:59 +00:00
enami 3ad4f06f88 Add missing close(). 2004-03-16 23:08:10 +00:00
jdolecek d68daf2dd5 put a 'Generated from' with RCS Ids of MAKEDEV.awk, MAKEDEV.tmpl and the
MD MAKEDEV.conf into the generated file

don't copy the 'PLEASE RUN ...' paragraph to the generated file

don't copy the list of individual devices to the generated file -
the info is available in MAKEDEV(8) for those who need it
2004-01-14 20:37:51 +00:00
lukem 4ddba21b9a * Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
  user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
  appropriately.
* Whitespace & regex tweaks.
2003-12-19 06:04:16 +00:00
dmcmahill 5d0ac15aa1 Improve the portability of this script by escaping some {'s and }'s used
in a regex.  Works with Solaris awk as well as gawk now.
2003-12-08 23:49:25 +00:00
jdolecek 0ff71b5cba the arm ports are 'arm' and 'armeb'
pointed out by Shoichi Miyake
2003-10-28 11:34:14 +00:00
jdolecek b1210ba8ee style nits - use / re / instead of "re" for constant REs 2003-10-26 13:40:46 +00:00
jdolecek dd2276a2ee make friendlier to objdir builds; now expect the caller to set ETCDIR
to the directory with src/etc; top of kernel sources is assumed
to be ETCDIR/../sys

fix error message for case when platform MAKEDEV.conf is not found
2003-10-24 19:57:36 +00:00
jdolecek 53d9446257 fix handling of ARM ports' majors file
fix handling of sbmips majors - it uses the evbmips majors

fetch information about platform RAW_PART, and make it available
to MAKEDEV.tmpl
2003-10-24 08:27:26 +00:00
jdolecek 7a46124ea4 determine the platform number of disk partitions by looking
at MAXPARTITIONS/OLDMAXPARTITIONS in kernel sources, so that it wouldn't
need to be specified separately in MAKEDEV.conf

change platform MAKEDEV.conf to contain only MD targets and nothing else;
simplify the parsing in MAKEDEV.awk accordingly
2003-10-19 19:07:26 +00:00
jdolecek edf6a76108 improve error checking, and bail out early, instead of looping
when filtering the template, leave only the wanted makedisk_p*() routine
in the output
as pointed out by David Laight

also make it mandatory for MACHINE and MACHINE_ARCH to be set in
environment; it would be possible to use use uname -p/-m, but better
to catch possible cross-build mistakes sooner than later
2003-10-17 19:01:49 +00:00
itojun 89159c0540 minor KNF 2003-10-15 21:40:49 +00:00
jdolecek 401cc27682 read the MD MAKEDEV.conf file and appropriately massage the template
contents; outputs fully functional MAKEDEV script now
2003-10-15 19:43:00 +00:00
jdolecek 5351b51128 the main parts of new unified MAKEDEV framework - MAKEDEV template
and script for generating the MD MAKEDEV
this is work in progress, some parts are still missing
2003-10-13 09:37:45 +00:00