Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: hysterical kernel config files
Just saw this. Essentially, from what I can gather from old mailing list
posts, the historical kernel configs (and -Os) are not supposed to actually
used except when there's no other option. I have to use an INSTALL_TINY
kernel (which means uncommenting the code in the tree to actually build
those floppy images) for my 486 with 20MB RAM, because the CD drive uses the
old Matsushita CD interface which can't boot :P.
Add the following line to your mk.conf (if you're on a non-NetBSD machine,
make sure build.sh knows about the location to this file), and it should fix
the problems:
COPTS=-Os -Wno-error=uninitialized -Wno-error=maybe-uninitialized
-----Original Message-----
From: Patrick Welche
Sent: Monday, November 24, 2014 12:38 PM
To: current-users%netbsd.org@localhost
Subject: hysterical kernel config files
Musings from some historical kernel config files.
I see that INSTALL kernels no longer use -Os for smaller compiled code.
(INSTALL_TINY and INSTALL_FLOPPY still do but don't include GENERIC)
With -Os, drmkms fails with
--- drm_scatter.o ---
../../../../external/bsd/drm2/drm/drm_scatter.c: In function 'drm_sg_alloc':
../../../../external/bsd/drm2/drm/drm_scatter.c:83:10: error: 'sg' may be
used uninitialized in this function [-Werror=maybe-uninitialized]
dev->sg = sg;
^
cc1: all warnings being treated as errors
options(4) mentions
options MALLOC_NOINLINE
Time critical fixed size memory allocation is performed with MALLOC()
and
FREE(). Normally these expand to inline code, but with MALLOC_NOINLINE
these call the normal malloc() and free() functions. Useful for
install
media kernels, small memory systems and embedded systems.
but AFAICT nothing uses MALLOC_NOINLINE - obsolete?
Cheers,
Patrick
--
William D. Jones
Rowan University | ECE | 2012
Member IEEE
Member Tau Beta Pi
thor0505%comcast.net@localhost
Message sent using 'Windows Live Mail' client.
Home |
Main Index |
Thread Index |
Old Index