Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amiga/conf Use m4 instead of cpp to generate the va...



details:   https://anonhg.NetBSD.org/src/rev/b243c4a952ec
branches:  trunk
changeset: 532996:b243c4a952ec
user:      lukem <lukem%NetBSD.org@localhost>
date:      Tue Jun 18 17:39:39 2002 +0000

description:
Use m4 instead of cpp to generate the various kernel configurations,
since cpp is the "C compiler pre-processor", and as such, isn't really
suited to parsing non-C-language files...

diffstat:

 sys/arch/amiga/conf/GENERIC.in |  568 +++++++++++++++++++++++++++++++++++++++++
 sys/arch/amiga/conf/Makefile   |   97 +-----
 2 files changed, 591 insertions(+), 74 deletions(-)

diffs (truncated from 680 to 300 lines):

diff -r 9aedb61dcee3 -r b243c4a952ec sys/arch/amiga/conf/GENERIC.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/amiga/conf/GENERIC.in    Tue Jun 18 17:39:39 2002 +0000
@@ -0,0 +1,568 @@
+# $NetBSD: GENERIC.in,v 1.1 2002/06/18 17:39:39 lukem Exp $
+#
+# GENERIC machine description file
+#
+# This machine description file is used to generate the default NetBSD
+# kernel.  The generic kernel does not include all options, subsystems
+# and device drivers, but should be useful for most applications.
+#
+# The machine description file can be customised for your specific
+# machine to reduce the kernel size and improve its performance.
+#
+# For further information on compiling NetBSD kernels, see the config(8)
+# man page.
+#
+# For further information on hardware support for this architecture, see
+# the intro(4) man page.  For further information about kernel options
+# for this architecture, see the options(4) man page.  For an explanation
+# of each device driver in this file see the section 4 man page for the
+# device.
+
+m4_divert(-1)
+#
+# GENERIC Amiga or DraCo
+#
+# This configuration file contains all possible options
+#
+# make AMIGA extracts the AMIGA configuration file.
+# make DRACO extracts the DRACO configuration file.
+# make GENERIC extracts the GENERIC configuration file.
+# make INSTALL extracts the INSTALL configuration file.
+# make WSCONS extracts the WSCONS configuration file.
+#
+# commit them, too.
+#
+
+# Define XXX_CONFIGURATION
+#
+m4_define(M4_Target`_CONFIGURATION', `')
+
+# If not building AMIGA, set DRACO_CONFIGURATION
+#
+m4_ifelse(M4_Target, `AMIGA', `', `m4_define(`DRACO_CONFIGURATION', `')')
+
+# If not building DRACO, set AMIGA_CONFIGURATION
+#
+m4_ifelse(M4_Target, `DRACO', `', `m4_define(`AMIGA_CONFIGURATION', `')')
+
+# If building WSCONS, uncomment various options
+#
+m4_ifdef(`WSCONS_CONFIGURATION', `m4_define(`WSOFF', `wson')', `m4_define(`WSOFF', `wsoff')')
+
+
+m4_divert(0)m4_dnl
+
+include "arch/amiga/conf/std.amiga"
+
+options        INCLUDE_CONFIG_FILE     # embed config file in kernel binary
+
+#ident                 "GENERIC-$Revision: 1.1 $"
+
+m4_ifdef(`INSTALL_CONFIGURATION', `m4_dnl
+makeoptions    COPTS="-Os"
+')m4_dnl
+
+maxusers       8
+options        RTC_OFFSET=0
+
+#
+# mainboards to support (in addition to Amiga)
+#
+m4_ifdef(`DRACO_CONFIGURATION', `m4_dnl
+options        DRACO
+')m4_dnl
+m4_ifdef(`AMIGA_CONFIGURATION', `m4_dnl
+options        BB060STUPIDROM  # You need this, if you have a non-DraCo
+                               # MC68060 with an OS ROM up to (at least)
+                               # V40 (OS3.1) and want to boot with the
+                               # bootblock.
+                               # You do not need this if you have a DraCo,
+                               # have no 68060 or NEVER use the bootblock
+options        P5PPC68KBOARD   # Phase5 PPC/68K board support
+')m4_dnl
+#
+# processors this kernel should support
+#
+options        M68060          # support for 060
+options        M060SP          # MC68060 software support (Required for 060)
+m4_ifdef(`AMIGA_CONFIGURATION', `m4_dnl
+options        M68040          # support for 040
+options        FPSP            # MC68040 floating point support
+options        M68030          # support for 030
+options        M68020          # support for 020/851
+options        FPU_EMULATE     # FPU emulation
+')m4_dnl
+
+#
+# Networking options
+#
+options        INET            # IP networking support (Required)
+options        INET6           # IPV6
+#options       IPSEC           # IP security
+#options       IPSEC_ESP       # IP security (encryption part; define w/IPSEC)
+#options       IPSEC_DEBUG     # debug for IP security
+#options       GATEWAY         # Packet forwarding
+#options       DIRECTED_BROADCAST      # Broadcast across subnets
+
+m4_ifdef(`INSTALL_CONFIGURATION', `', `m4_dnl
+#options       MROUTING        # Multicast routing
+options        NS              # XNS
+#options       NSIP            # XNS tunneling over IP
+options        ISO,TPIP        # OSI
+#options       EON             # OSI tunneling over IP
+options        CCITT,LLC,HDLC  # X.25
+options        NETATALK        # AppleTalk networking protocols
+#options       TCP_DEBUG       # Record last TCP_NDEBUG packets with SO_DEBUG
+')m4_dnl
+
+options        PPP_BSDCOMP     # BSD-Compress compression support for PPP
+options        PPP_DEFLATE     # Deflate compression support for PPP
+options        PPP_FILTER      # Active filter support for PPP (requires bpf)
+options        PFIL_HOOKS      # pfil(9) packet filter hooks
+options        IPFILTER_LOG    # ipmon(8) log support
+
+# Filesystems
+file-system    FFS             # Berkeley fast file system
+file-system    EXT2FS          # second extended file system (linux)
+#file-system   LFS             # log-structured filesystem (experimental)
+
+m4_ifdef(`INSTALL_CONFIGURATION', `', `m4_dnl
+file-system    MFS             # Memory based filesystem
+')m4_dnl
+
+file-system    NFS             # Network File System client side code
+file-system    ADOSFS          # AmigaDOS file system
+file-system    CD9660          # ISO 9660 + Rock Ridge filesystem
+file-system    MSDOSFS         # MS-DOS filesystem
+
+file-system    KERNFS          # kernel data-structure filesystem
+
+m4_ifdef(`INSTALL_CONFIGURATION', `', `m4_dnl
+file-system    FDESC           # user file descriptor filesystem
+file-system    NULLFS          # loopback filesystem
+file-system    OVERLAY         # overlay filesystem
+#file-system   PORTAL          # Portal filesystem
+file-system    PROCFS          # /proc filesystem
+file-system    UMAPFS          # NULLFS + uid and gid remapping
+file-system    UNION           # union filesystem
+')m4_dnl
+
+# Filesystem options
+
+#options       FFS_EI          # FFS Endian Independant support
+
+m4_ifdef(`INSTALL_CONFIGURATION', `', `m4_dnl
+options        QUOTA           # User and group quotas in FFS
+options        SOFTDEP         # FFS soft updates support.
+options        NFSSERVER       # Network File System server side code
+')m4_dnl
+
+#options       EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
+                               # immutable) behave as system flags.
+
+#
+# Compatibility options for various existing systems
+#
+
+m4_ifdef(`INSTALL_CONFIGURATION', `', `m4_dnl
+#options       TCP_COMPAT_42   # 4.2BSD TCP/IP bug compat. Not recommended.
+options        COMPAT_43       # compatibility with 4.3BSD interfaces
+options        COMPAT_09       # compatibility with NetBSD 0.9
+options        COMPAT_10       # compatibility with NetBSD 1.0
+options        COMPAT_12       # compatibility with NetBSD 1.2
+options        COMPAT_13       # compatibility with NetBSD 1.3
+options        COMPAT_14       # compatibility with NetBSD 1.4
+options        COMPAT_SUNOS    # Support to run Sun (m68k) executables
+options        COMPAT_SVR4     # Support to run SVR4 (m68k) executables
+options        COMPAT_NOMID    # allow nonvalid machine id executables
+#options       COMPAT_LINUX    # Support to run Linux/m68k executables
+')m4_dnl
+
+options        EXEC_AOUT       # 32-bit aout executables (NetBSD-1.5.x)
+options        COMPAT_AOUT_M68K # actually make some system calls work.
+
+m4_ifdef(`INSTALL_CONFIGURATION', `', `m4_dnl
+#
+# Support for System V IPC facilities.
+#
+options        SYSVSHM         # System V-like shared memory
+options        SYSVMSG         # System V-like messages
+options        SYSVSEM         # System V-like semaphores
+#options       SEMMNI=10       # number of semaphore identifiers
+#options       SEMMNS=60       # number of semaphores in system
+#options       SEMUME=10       # max number of undo entries per process
+#options       SEMMNU=30       # number of undo structures in system
+')m4_dnl
+
+#
+# Support for various kernel options
+#
+
+m4_ifdef(`INSTALL_CONFIGURATION', `', `m4_dnl
+options        KTRACE          # system call tracing support
+options        LKM             # Loadable kernel modules
+options        UCONSOLE        # anyone can redirect a virtual console
+')m4_dnl
+#options       INSECURE        # disable kernel security levels
+options        SCSIVERBOSE     # human readable SCSI error messages
+#options       USERCONF        # userconf(4) support
+m4_ifdef(`INSTALL_CONFIGURATION', `m4_dnl
+options        PIPE_SOCKETPAIR # smaller, but slower pipe(2)
+', `m4_dnl
+options        NTP             # NTP phase/frequency locked loop
+#options       PIPE_SOCKETPAIR # smaller, but slower pipe(2)
+')m4_dnl
+
+#
+# Misc. debugging options
+#
+options        DDB             # Kernel debugger
+#options       DDB_HISTORY_SIZE=100    # Enable history editing in DDB
+options        DIAGNOSTIC      # Extra kernel sanity checks
+#options       DEBUG           # Enable misc. kernel debugging code
+#options       SYSCALL_DEBUG   # debug all syscalls.
+#options       SCSIDEBUG       # Add SCSI debugging statements
+#options       PANICBUTTON     # Forced crash via keypress (?)
+
+#
+# Amiga specific options
+#
+#options       LIMITMEM=24     # Do not use more than LIMITMEM MB of the
+                               # first bank of RAM. (default: unlimited)
+#options       NKPTADD=4       # set this for 4 additional KPT pages
+#options       NKPTADDSHIFT=24 # set this for 1 additional KPT page
+                               # per 16 MB (1<<24 bytes) of RAM
+                               # uncomment and decrease this, or uncomment and
+                               # increase NKPTADD if you get "out of PT pages"
+                               # panics.
+
+# ATTENTION: There is NO WARRANTY AT ALL that the sync will be complete
+# before the 10 secondinterval ends, or that KBDRESET does work at all.
+#options       KBDRESET        # sync on Ctrl-Amiga-Amiga
+
+# These options improve performance with the built-in serial port
+# on slower Amigas.  Try the larger buffers first then lev6_defer.
+#options       SERIBUF_SIZE=4096
+#options       SEROBUF_SIZE=32
+#options       LEV6_DEFER      # defers l6 to l4 (below serial l5)
+
+options        RETINACONSOLE   # enable code to allow retina to be console
+m4_ifdef(`AMIGA_CONFIGURATION', `m4_dnl
+options        ULOWELLCONSOLE  # enable code to allow a2410 to be console
+options        CL5426CONSOLE   # Cirrus console
+options        CV64CONSOLE     # CyberVision console
+options        TSENGCONSOLE    # Tseng console
+options        CV3DCONSOLE     # CyberVision 64/3D console
+
+options        GRF_ECS         # Enhanced Chip Set
+options        GRF_NTSC        # NTSC
+options        GRF_PAL         # PAL
+options        GRF_A2024       # Support for the A2024
+options        GRF_AGA         # AGA Chip Set
+options        GRF_AGA_VGA     # AGA VGAONLY timing
+options        GRF_SUPER72     # AGA Super-72
+')m4_dnl
+#options       KFONT_8X11      # 8x11 font
+
+# select a font for the console according to the character set and keymap
+# you want to use
+options        KFONT_CONS_ISO8859_1
+#options         KFONT_CONS_ISO8859_2
+
+# This is how you would tell the kernel the A2410 oscillator frequencies:
+# The used frequencies are the defaults, and do not need option setting
+#options       ULOWELL_OSC1=36000000
+#options       ULOWELL_OSC2=66667000
+
+# This is how you specify the blitting speed, higher values may speed up blits
+# a littel bit.  If you raise this value too much some trash may appear.
+# the commented version is the default.
+#options       RH_MEMCLK=61000000
+# this option enables the 64 bit sprite which does not work
+# for quite a few people.  E.g. The cursor sprite will turn to a block
+# when moved to the top of the screen in X.
+#options       RH_64BIT_SPRITE
+# enables fast scroll code appears to now work on 040 systems.
+#options       RETINA_SPEED_HACK
+# enables the Hardwarecursor which does not work on some systems.
+#options       RH_HARDWARECURSOR
+
+m4_ifdef(`AMIGA_CONFIGURATION', `m4_dnl
+# wscons aware interface to amiga custom chips.
+# If you enable it enable also wskbd.
+#
+m4_ifdef(`WSCONS_CONFIGURATION', `m4_dnl
+amidisplaycc0  at mainbus0             # wscons interface to custom chips
+wsdisplay0     at amidisplaycc0 console ?



Home | Main Index | Thread Index | Old Index