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

handling.
This commit is contained in:
garbled 2007-12-10 17:57:24 +00:00
parent 30df2bb21e
commit 12d0909e08
1 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/awk -
#
# $NetBSD: MAKEDEV.awk,v 1.18 2007/04/08 09:35:25 scw Exp $
# $NetBSD: MAKEDEV.awk,v 1.19 2007/12/10 17:57:24 garbled Exp $
#
# Copyright (c) 2003 The NetBSD Foundation, Inc.
# All rights reserved.
@ -66,6 +66,8 @@ BEGIN {
majors[1] = "arch/arm/conf/majors.arm32";
else if (machine == "sbmips")
majors[1] = "arch/evbmips/conf/majors.evbmips";
else if ((maarch == "powerpc") && system("test -f '" top "arch/" machine "/conf/majors." machine "'") != 0)
majors[1] = "arch/powerpc/conf/majors.powerpc";
else
majors[1] = "arch/" machine "/conf/majors." machine;
@ -216,7 +218,7 @@ BEGIN {
print "# Generated from:"
# MAKEDEV.awk (this script) RCS Id
ARCSID = "$NetBSD: MAKEDEV.awk,v 1.18 2007/04/08 09:35:25 scw Exp $"
ARCSID = "$NetBSD: MAKEDEV.awk,v 1.19 2007/12/10 17:57:24 garbled Exp $"
gsub(/\$/, "", ARCSID)
print "# " ARCSID