xref: /netbsd/sys/arch/atari/conf/makeconf (revision bf9ec67e)
1#!/bin/sh
2#	$NetBSD: makeconf,v 1.6 2001/11/20 11:26:10 lukem Exp $
3
4emit_file() {
5	echo "Generating $1"
6	echo '#
7# $NetBSD: makeconf,v 1.6 2001/11/20 11:26:10 lukem Exp $
8#
9# This file was automatically created. Changes will be
10# lost when running makeconf in this directory.
11#
12# Created from:' > $1
13	grep -h '$NetBSD' $2 GENERIC.in | sed -e 's/\$NetBSD/	NetBSD/' >> $1
14	cpp -undef -P $3 2>/dev/null < $2 |
15		sed -e '/\$NetBSD:/d' |
16		awk '{if (NF>1)count=0;else count++;if(count<=1)print}' >> $1
17}
18
19emit_file BOOT FALCON.in "-DINSTALL_KERNEL -DTT030_KERNEL -DFALCON_KERNEL"
20emit_file BOOTX FALCON.in \
21	"-DINSTALL_KERNEL -DINSTALLX_KERNEL -DTT030_KERNEL -DFALCON_KERNEL"
22emit_file ATARITT ATARITT.in "-DTT030_KERNEL"
23emit_file FALCON FALCON.in "-DFALCON_KERNEL"
24emit_file HADES HADES.in "-DHADES_KERNEL"
25emit_file MILAN-ISAIDE MILAN.in "-DMILAN_KERNEL -DMILAN_ISAIDE"
26emit_file MILAN-PCIIDE MILAN.in "-DMILAN_KERNEL -DMILAN_PCIIDE"
27