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

This commit is contained in:
skrll 2013-04-14 13:47:37 +00:00
parent 18e8a81233
commit 5441b5c8c7
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/awk -
#
# $NetBSD: MAKEDEV.awk,v 1.22 2013/04/12 12:30:18 skrll Exp $
# $NetBSD: MAKEDEV.awk,v 1.23 2013/04/14 13:47:37 skrll Exp $
#
# Copyright (c) 2003 The NetBSD Foundation, Inc.
# All rights reserved.
@ -55,7 +55,7 @@ BEGIN {
# file with major definitions
majors[0] = "conf/majors"
if ((maarch == "arm" || maarch == "armeb" || maarch == "earm" || maarch == "earmeb") && system("test -f '" top "arch/" machine "/conf/majors." machine "'") != 0)
if (index(maarch, "arm") != 0 && system("test -f '" top "arch/" machine "/conf/majors." machine "'") != 0)
majors[1] = "arch/arm/conf/majors.arm32";
else if (machine == "sbmips")
majors[1] = "arch/evbmips/conf/majors.evbmips";
@ -211,7 +211,7 @@ BEGIN {
print "# Generated from:"
# MAKEDEV.awk (this script) RCS Id
ARCSID = "$NetBSD: MAKEDEV.awk,v 1.22 2013/04/12 12:30:18 skrll Exp $"
ARCSID = "$NetBSD: MAKEDEV.awk,v 1.23 2013/04/14 13:47:37 skrll Exp $"
gsub(/\$/, "", ARCSID)
print "# " ARCSID