Always specify COPTS="-Os" and disable several options and devices

to shrink kernels. Current sun68k bootloader can't load a kernel larger
than ~2MB, and our ever growing kernel have been reached the limit.
This commit is contained in:
tsutsui 2008-04-05 22:08:41 +00:00
parent 8bac8763ae
commit 6976334ea5
6 changed files with 52 additions and 40 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: DISKLESS,v 1.57 2007/10/17 19:57:44 garbled Exp $
# $NetBSD: DISKLESS,v 1.58 2008/04/05 22:08:41 tsutsui Exp $
# DISKLESS - Root and swap on NFS
# Desktop machines only (3/50, 3/60, 3/110)
@ -9,6 +9,8 @@ include "arch/sun3/conf/std.sun3"
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
makeoptions COPTS="-Os" # bootloader has size limit (~2MB)
# Machines to be supported by this kernel
options FPU_EMULATE
options HAVECACHE # Sun3/260 VAC

View File

@ -1,4 +1,4 @@
# $NetBSD: DISKLESS3X,v 1.44 2007/10/17 19:57:44 garbled Exp $
# $NetBSD: DISKLESS3X,v 1.45 2008/04/05 22:08:41 tsutsui Exp $
# DISKLESS - Root and swap on NFS
# Desktop machines only (3/80)
@ -9,6 +9,8 @@ include "arch/sun3/conf/std.sun3x"
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
makeoptions COPTS="-Os" # bootloader has size limit (~2MB)
# Machines to be supported by this kernel
# options FPU_EMULATE # XXX - Ever needed?
# options HAVE_IOCACHE # XXX - Not yet supported.

View File

@ -1,4 +1,4 @@
# $NetBSD: GENERIC,v 1.142 2007/12/31 15:32:07 ad Exp $
# $NetBSD: GENERIC,v 1.143 2008/04/05 22:08:41 tsutsui Exp $
#
# GENERIC machine description file
#
@ -25,7 +25,9 @@ include "arch/sun3/conf/std.sun3"
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
#ident "GENERIC-$Revision: 1.142 $"
#ident "GENERIC-$Revision: 1.143 $"
makeoptions COPTS="-Os" # bootloader has size limit (~2MB)
# Machines to be supported by this kernel
options FPU_EMULATE
@ -42,7 +44,7 @@ options SYSVSHM # System V shared memory
options P1003_1B_SEMAPHORE # p1003.1b semaphore support
options LKM # loadable kernel modules
#options INSECURE # disable kernel security level
options USERCONF # userconf(4) support
#options USERCONF # userconf(4) support
#options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
@ -94,20 +96,20 @@ file-system CD9660 # ISO 9660 + Rock Ridge file system
file-system FDESC # /dev/fd/*
file-system KERNFS # /kern
file-system NULLFS # loopback file system
file-system OVERLAY # overlay file system
#file-system OVERLAY # overlay file system
file-system PROCFS # /proc
file-system UNION # union file system
#file-system UNION # union file system
file-system MFS # memory-based filesystem
file-system PTYFS # /dev/pts/N support
#file-system TMPFS # Efficient memory file-system
#file-system UDF # experimental - OSTA UDF CD/DVD file-system
options NFSSERVER # nfs server support
options QUOTA # FFS quotas
#options QUOTA # FFS quotas
#options FFS_EI # FFS Endian Independant support
options SOFTDEP # FFS soft updates support.
#options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
#options FFS_NO_SNAPSHOT # No FFS snapshot support
options FFS_NO_SNAPSHOT # No FFS snapshot support
# Networking options
options INET # IP protocol stack support
@ -246,12 +248,12 @@ scsibus* at scsi?
sd* at scsibus? target ? lun ? # SCSI disks
st* at scsibus? target ? lun ? # SCSI tapes
cd* at scsibus? target ? lun ? # SCSI CD-ROMs
ch* at scsibus? target ? lun ? # SCSI changer devices
ss* at scsibus? target ? lun ? # SCSI scanners
#ch* at scsibus? target ? lun ? # SCSI changer devices
#ss* at scsibus? target ? lun ? # SCSI scanners
uk* at scsibus? target ? lun ? # unknown SCSI devices
# Memory-disk drivers
pseudo-device md 2
pseudo-device md 1
# Misc.
pseudo-device loop 1 # network loopback
@ -259,18 +261,18 @@ pseudo-device bpfilter # packet filter
#pseudo-device carp # Common Address Redundancy Protocol
pseudo-device sl # CSLIP
pseudo-device ppp # PPP
pseudo-device pppoe # PPP over Ethernet (RFC 2516)
pseudo-device tun # network tunneling over tty
pseudo-device tap # virtual Ethernet
#pseudo-device pppoe # PPP over Ethernet (RFC 2516)
#pseudo-device tun # network tunneling over tty
#pseudo-device tap # virtual Ethernet
#pseudo-device gre # generic L3 over IP tunnel
#pseudo-device ipfilter # ip filter
pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933)
#pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933)
#pseudo-device faith # IPv[46] tcp relay translation i/f
pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation
#pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation
pseudo-device vlan # IEEE 802.1q encapsulation
pseudo-device bridge # simple inter-network bridging
#pseudo-device bridge # simple inter-network bridging
#options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too
pseudo-device agr # IEEE 802.3ad link aggregation
#pseudo-device agr # IEEE 802.3ad link aggregation
pseudo-device rnd # /dev/random and in-kernel generator
pseudo-device pty # pseudo-terminals
@ -288,7 +290,7 @@ pseudo-device vnd # paging to files
#options RF_INCLUDE_INTERDECLUSTER=1
#options RF_INCLUDE_PARITY_DECLUSTERING=1
#options RF_INCLUDE_PARITY_DECLUSTERING_DS=1
pseudo-device fss 4 # file system snapshot device
#pseudo-device fss 4 # file system snapshot device
pseudo-device clockctl # user control of clock subsystem
pseudo-device ksyms # /dev/ksyms
#pseudo-device pf # PF packet filter

View File

@ -1,4 +1,4 @@
# $NetBSD: GENERIC3X,v 1.99 2007/12/31 15:32:07 ad Exp $
# $NetBSD: GENERIC3X,v 1.100 2008/04/05 22:08:41 tsutsui Exp $
# GENERIC Sun3X (3/80, 3/470)
# Supports root on: ie0, le0, sd*, ...
@ -7,7 +7,9 @@ include "arch/sun3/conf/std.sun3x"
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
#ident "GENERIC3X-$Revision: 1.99 $"
#ident "GENERIC3X-$Revision: 1.100 $"
makeoptions COPTS="-Os" # bootloader has size limit (~2MB)
# Machines to be supported by this kernel
#options FPU_EMULATE # XXX - Ever needed?
@ -24,7 +26,7 @@ options SYSVSHM # System V shared memory
options P1003_1B_SEMAPHORE # p1003.1b semaphore support
options LKM # loadable kernel modules
#options INSECURE # disable kernel security level
options USERCONF # userconf(4) support
#options USERCONF # userconf(4) support
#options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
@ -77,20 +79,20 @@ file-system MSDOSFS # MS-DOS FAT file system
file-system FDESC # /dev/fd/*
file-system KERNFS # /kern
file-system NULLFS # loopback file system
file-system OVERLAY # overlay file system
#file-system OVERLAY # overlay file system
file-system PROCFS # /proc
file-system UNION # union file system
#file-system UNION # union file system
file-system MFS # memory-based filesystem
file-system PTYFS # /dev/pts/N support
#file-system TMPFS # Efficient memory file-system
#file-system UDF # experimental - OSTA UDF CD/DVD file-system
options NFSSERVER # nfs server support
options QUOTA # FFS quotas
#options QUOTA # FFS quotas
#options FFS_EI # FFS Endian Independant support
options SOFTDEP # FFS soft updates support.
#options UFS_DIRHASH # UFS Large Directory Hashing - Experimental
#options FFS_NO_SNAPSHOT # No FFS snapshot support
options FFS_NO_SNAPSHOT # No FFS snapshot support
# Networking options
options INET # IP protocol stack support
@ -234,12 +236,12 @@ scsibus* at scsi?
sd* at scsibus? target ? lun ? # SCSI disks
st* at scsibus? target ? lun ? # SCSI tapes
cd* at scsibus? target ? lun ? # SCSI CD-ROMs
ch* at scsibus? target ? lun ? # SCSI changer devices
ss* at scsibus? target ? lun ? # SCSI scanners
#ch* at scsibus? target ? lun ? # SCSI changer devices
#ss* at scsibus? target ? lun ? # SCSI scanners
uk* at scsibus? target ? lun ? # unknown SCSI devices
# Memory-disk drivers
pseudo-device md 2
pseudo-device md 1
# Misc.
pseudo-device loop 1 # network loopback
@ -247,17 +249,17 @@ pseudo-device bpfilter # packet filter
#pseudo-device carp # Common Address Redundancy Protocol
pseudo-device sl # CSLIP
pseudo-device ppp # PPP
pseudo-device pppoe # PPP over Ethernet (RFC 2516)
pseudo-device tun # network tunneling over tty
pseudo-device tap # virtual Ethernet
#pseudo-device pppoe # PPP over Ethernet (RFC 2516)
#pseudo-device tun # network tunneling over tty
#pseudo-device tap # virtual Ethernet
#pseudo-device gre # generic L3 over IP tunnel
#pseudo-device ipfilter # ip filter
pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933)
#pseudo-device gif # IPv[46] over IPv[46] tunnel (RFC1933)
#pseudo-device faith # IPv[46] tcp relay translation i/f
pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation
#pseudo-device stf # 6to4 IPv6 over IPv4 encapsulation
pseudo-device vlan # IEEE 802.1q encapsulation
pseudo-device bridge # simple inter-network bridging
pseudo-device agr # IEEE 802.3ad link aggregation
#pseudo-device bridge # simple inter-network bridging
#pseudo-device agr # IEEE 802.3ad link aggregation
#options BRIDGE_IPF # bridge uses IP/IPv6 pfil hooks too
pseudo-device rnd # /dev/random and in-kernel generator
@ -276,7 +278,7 @@ pseudo-device vnd # paging to files
#options RF_INCLUDE_INTERDECLUSTER=1
#options RF_INCLUDE_PARITY_DECLUSTERING=1
#options RF_INCLUDE_PARITY_DECLUSTERING_DS=1
pseudo-device fss 4 # file system snapshot device
#pseudo-device fss 4 # file system snapshot device
pseudo-device clockctl # user control of clock subsystem
pseudo-device ksyms # /dev/ksyms
#pseudo-device pf # PF packet filter

View File

@ -1,4 +1,4 @@
# $NetBSD: RAMDISK,v 1.47 2007/10/17 19:57:45 garbled Exp $
# $NetBSD: RAMDISK,v 1.48 2008/04/05 22:08:41 tsutsui Exp $
# RAMDISK: Root/swap on ramdisk
# This kernel is used to:
@ -10,6 +10,8 @@ include "arch/sun3/conf/std.sun3"
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
makeoptions COPTS="-Os" # bootloader has size limit (~2MB)
# Machines to be supported by this kernel
# options FPU_EMULATE # No FP code here!
options HAVECACHE # Sun3/260 VAC

View File

@ -1,4 +1,4 @@
# $NetBSD: RAMDISK3X,v 1.35 2007/10/17 19:57:45 garbled Exp $
# $NetBSD: RAMDISK3X,v 1.36 2008/04/05 22:08:41 tsutsui Exp $
# RAMDISK: Root/swap on ramdisk
# This kernel is used to:
@ -10,6 +10,8 @@ include "arch/sun3/conf/std.sun3x"
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
makeoptions COPTS="-Os" # bootloader has size limit (~2MB)
# Machines to be supported by this kernel
# options FPU_EMULATE # XXX - Ever needed?
# options HAVE_IOCACHE # XXX - Not yet supported.