The NetBSD Project

CVS log for src/etc/MAKEDEV.awk

[BACK] Up to [] / src / etc

Request diff between arbitrary revisions

Default branch: MAIN
Current tag: MAIN

Revision 1.28 / (download) - annotate - [select for diffs], Sun Nov 3 12:03:35 2019 UTC (3 months, 2 weeks ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-20191119, HEAD
Changes since 1.27: +14 -3 lines
Diff to previous 1.27 (colored)

PR port-arm/54640: hack to work around conditional RAW_PART definition in

Recognize this special case and skip lines between #ifndef RAW_PART and
the next #endif.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Oct 28 02:53:29 2019 UTC (3 months, 3 weeks ago) by ozaki-r
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

Allow including numbers in %XXX_chr% parameter (for upcoming vio9p driver)

Revision 1.26 / (download) - annotate - [select for diffs], Thu Jun 13 20:54:04 2019 UTC (8 months, 1 week ago) by christos
Branch: MAIN
CVS Tags: netbsd-9-base
Branch point for: netbsd-9
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

Fix aarch64

Revision 1.25 / (download) - annotate - [select for diffs], Fri Sep 19 09:01:05 2014 UTC (5 years, 5 months ago) by matt
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.24: +7 -4 lines
Diff to previous 1.24 (colored)

Teach this to deal with the use of include in majors files.

Revision 1.24 / (download) - annotate - [select for diffs], Mon May 20 11:37:02 2013 UTC (6 years, 9 months ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

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

Revision 1.23 / (download) - annotate - [select for diffs], Sun Apr 14 13:47:37 2013 UTC (6 years, 10 months ago) by skrll
Branch: MAIN
CVS Tags: khorben-n900
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

Match all the arm machines to get the majors.arm32 file

Revision 1.22 / (download) - annotate - [select for diffs], Fri Apr 12 12:30:18 2013 UTC (6 years, 10 months ago) by skrll
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

Find the right majors files for earm*

Revision 1.21 / (download) - annotate - [select for diffs], Tue Mar 30 07:30:03 2010 UTC (9 years, 10 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

make sure we pickup the powerpc majors file on powerpc64.

from in PR#43074.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Apr 30 13:10:49 2008 UTC (11 years, 9 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base2, mjf-devfs2-base, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase
Branch point for: matt-nb5-mips64
Changes since 1.19: +2 -9 lines
Diff to previous 1.19 (colored)

Convert TNF licenses to new 2 clause variant

Revision 1.19 / (download) - annotate - [select for diffs], Mon Dec 10 17:57:24 2007 UTC (12 years, 2 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf
Branch point for: yamt-pf42, mjf-devfs2, mjf-devfs
Changes since 1.18: +4 -2 lines
Diff to previous 1.18 (colored)

Change to deal with the shared powerpc majors file, copied from the arm32

Revision 1.18 / (download) - annotate - [select for diffs], Sun Apr 8 09:35:25 2007 UTC (12 years, 10 months ago) by scw
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, hpcarm-cleanup
Branch point for: matt-armv6
Changes since 1.17: +3 -6 lines
Diff to previous 1.17 (colored)

Remove support for NetBSD/{,evb}sh5.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Mar 9 13:57:54 2007 UTC (12 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.16: +8 -2 lines
Diff to previous 1.16 (colored)

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.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jun 14 20:47:46 2005 UTC (14 years, 8 months ago) by he
Branch: MAIN
CVS Tags: netbsd-4-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.15: +6 -3 lines
Diff to previous 1.15 (colored)

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.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Apr 22 23:02:39 2004 UTC (15 years, 10 months ago) by enami
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored)

The char position passed to substr() should be 1 origion.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Mar 18 22:51:59 2004 UTC (15 years, 11 months ago) by enami
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.13: +46 -15 lines
Diff to previous 1.13 (colored)

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).

Revision 1.13 / (download) - annotate - [select for diffs], Tue Mar 16 23:08:10 2004 UTC (15 years, 11 months ago) by enami
Branch: MAIN
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored)

Add missing close().

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jan 14 20:37:51 2004 UTC (16 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.11: +38 -4 lines
Diff to previous 1.11 (colored)

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

Revision 1.11 / (download) - annotate - [select for diffs], Fri Dec 19 06:04:16 2003 UTC (16 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.10: +48 -12 lines
Diff to previous 1.10 (colored)

* 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%
* Whitespace & regex tweaks.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Dec 8 23:49:25 2003 UTC (16 years, 2 months ago) by dmcmahill
Branch: MAIN
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored)

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.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Oct 28 11:34:14 2003 UTC (16 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

the arm ports are 'arm' and 'armeb'
pointed out by Shoichi Miyake

Revision 1.8 / (download) - annotate - [select for diffs], Sun Oct 26 13:40:46 2003 UTC (16 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.7: +7 -7 lines
Diff to previous 1.7 (colored)

style nits - use / re / instead of "re" for constant REs

Revision 1.7 / (download) - annotate - [select for diffs], Fri Oct 24 19:57:36 2003 UTC (16 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.6: +4 -7 lines
Diff to previous 1.6 (colored)

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

Revision 1.6 / (download) - annotate - [select for diffs], Fri Oct 24 08:27:26 2003 UTC (16 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.5: +19 -14 lines
Diff to previous 1.5 (colored)

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

Revision 1.5 / (download) - annotate - [select for diffs], Sun Oct 19 19:07:26 2003 UTC (16 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.4: +65 -14 lines
Diff to previous 1.4 (colored)

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

Revision 1.4 / (download) - annotate - [select for diffs], Fri Oct 17 19:01:49 2003 UTC (16 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.3: +27 -4 lines
Diff to previous 1.3 (colored)

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

Revision 1.3 / (download) - annotate - [select for diffs], Wed Oct 15 21:40:49 2003 UTC (16 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored)

minor KNF

Revision 1.2 / (download) - annotate - [select for diffs], Wed Oct 15 19:43:00 2003 UTC (16 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.1: +28 -1 lines
Diff to previous 1.1 (colored)

read the MD MAKEDEV.conf file and appropriately massage the template
contents; outputs fully functional MAKEDEV script now

Revision 1.1 / (download) - annotate - [select for diffs], Mon Oct 13 09:37:45 2003 UTC (16 years, 4 months ago) by jdolecek
Branch: MAIN

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

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

CVSweb <>