NetBSD/sys/arch/atari/conf/makeconf
abs 3a821eebde - Merge ATARITT.in and FALCON.in into GENERIC.in so we can generate
a sane kernel config which defines both of them
- Cleanup all the #if defined(FOO) entries to be consistent and have
  a matching /* FOO */ on the #endif line
- No change to generated ATARITT/FALCON/HADES/MILAN-ISAIDE/MILAN-PCIIDE
- Rename BOOT to SMALL030 and trim a little more to save space.
- Drop BOOTX
2009-01-24 00:19:47 +00:00

29 lines
951 B
Bash

#!/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"