blob: 4e65a2715e8ca56582846e8fb66b0c561b8eb8d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/sh
# $NetBSD: makeconf,v 1.7 2009/01/24 00:19:47 abs Exp $
emit_file() {
echo "Generating $1"
echo '#
# $NetBSD: makeconf,v 1.7 2009/01/24 00:19:47 abs Exp $
#
# This file was automatically created. Changes will be
# lost when running makeconf in this directory.
#
# Created from:' > $1
if [ $2 != GENERIC.in ] ; then
grep -h '$NetBSD' $2 GENERIC.in | sed -e 's/\$NetBSD/ NetBSD/' >> $1
else
grep -h '$NetBSD' GENERIC.in | sed -e 's/\$NetBSD/ NetBSD/' >> $1
fi
cpp -undef -P $3 2>/dev/null < $2 |
sed -e '/\$NetBSD:/d' |
awk '{if (NF>1)count=0;else count++;if(count<=1)print}' >> $1
}
emit_file SMALL030 GENERIC.in "-DSMALL030_KERNEL -DTT030_KERNEL -DFALCON_KERNEL"
emit_file ATARITT GENERIC.in "-DTT030_KERNEL"
emit_file FALCON GENERIC.in "-DFALCON_KERNEL"
emit_file HADES HADES.in "-DHADES_KERNEL"
emit_file MILAN-ISAIDE MILAN.in "-DMILAN_KERNEL -DMILAN_ISAIDE"
emit_file MILAN-PCIIDE MILAN.in "-DMILAN_KERNEL -DMILAN_PCIIDE"
|