Commit Graph

173 Commits

Author SHA1 Message Date
matt bab7f424b2 Add a commented out CWARNFLAGS to enable -Wc++-compat but don't treat them
as errors.
2014-09-05 06:52:12 +00:00
skrll 673e836663 More tidyup after joerg's copy&paste disaster. I have ddb symbols again. 2014-08-21 07:57:25 +00:00
joerg 64bc057870 Drop stray } 2014-08-20 22:02:20 +00:00
joerg a26164117a Reorganize symbol table embedding. The existing option SYMTAB_SPACE is
replaced by the make option COPY_SYMTAB set to any value. The copy of
the symbol table is no longer put into a buffer in kern_ksyms.o, but a
small helper object. This object is build first with a dummy size, then
the kernel is linked to compute the real dimension of the symbol table
buffer. After that, the helper object is rebuild and the kernel linked
again.
2014-08-17 21:17:43 +00:00
joerg dad6006456 The bpendtsleep label has been gone for a long time, so cleanup the
associated hack here.
2014-08-08 14:42:58 +00:00
martin ecad429601 As discussed on tech-toolchain, offer a new make variable MKKDEBUG - if
set to "yes", kernel builds will gain debug info and a netbsd.gdb will
be created (same as adding "makeoptions DEBUG=-g" to the config file).
2014-05-05 19:06:29 +00:00
ozaki-r e451c2b3be Do COMPILE_CTFCONVERT on vers.o as same as other targets
Otherwise, we will get the error when building a kernel with -V MKDTRACE:
  ERROR: nbctfmerge: Input file vers.o was partially built from C sources,
  but no CTF data was present
2014-03-10 02:36:50 +00:00
ozaki-r 09938a932a Use CTFMFLAGS, not CTFFLAGS, for CTFMERGE 2014-03-10 02:04:29 +00:00
joerg 9c3fd52490 Introduce GENASSYM_CPPFLAGS for options during genassym processing.
Consistently drop assembler flags.
2014-03-04 14:58:14 +00:00
mbalmer 57b6509ecb revert previous 2013-10-18 08:06:06 +00:00
mbalmer b2f05d7f17 add a device-major for lua(4) 2013-10-18 08:03:48 +00:00
joerg 3657cb7f1d Update LLVM/Clang snapshot to r191105. This brings in a better detection
of unused static variables and functions. Disable this for some external
code and for ioconf.c in the kernel.
2013-09-21 22:28:12 +00:00
skrll 6a24930e6a Fix debug kernel builds when the automatic symbol table resizing kicks in.
Previously, the TAIL/HEAD link steps were being executed twice and the
(relinked/stripped) kernel would overwrite the debug version.

XXX this is all ugly.
2013-08-09 09:08:47 +00:00
matt beba19ed6e Use += for SYSTEM_DEP not ?= 2013-07-17 14:05:43 +00:00
apb f669c7071f Add references to ${_NETBSD_VERSION_DEPENDS} for files that
need to be re-created when the NetBSD version changes.  They
will also be re-created when any build settings are changed.
2012-11-04 11:12:31 +00:00
joerg c14f2d4ef8 Deal with optional HAVE_GCC. 2012-08-10 16:05:26 +00:00
matt 2b5bbd5317 Enable -fno-common for GCC compiled kernels 2012-07-27 05:40:51 +00:00
martin 997712ca59 Redo rev 1.154 by using an explicit MKSHNOECHO that does not output anything. 2012-03-25 09:15:20 +00:00
joerg 0e8643658c Don't pass assembler flags to genassym, it doesn't compile. 2012-03-25 06:55:19 +00:00
uebayasi f464a5fd74 Don't print blank lines when !CTFCONVERT. 2012-03-25 01:56:02 +00:00
bsh f4eb9f64cb adjust the size of db_symtab space automatically.
proposed on tech-toolchain@, and got no objections.
2012-03-19 05:38:26 +00:00
matt 1d7f24ead8 Change old-style function defintions to C89 prototypes.
Approved by releng.
2012-02-12 16:34:06 +00:00
christos 1c2efa29c7 -Wold-style-definitions for i386 and amd64 2012-02-03 23:39:26 +00:00
joerg 417b55d96e Move Clang-warning flags for ah_regdomain.c into sys/conf, they are
platform independent. Use the selective -Wno-* flags instead of
-Wno-error.
2011-12-19 14:06:16 +00:00
joerg 41c1da9cfb Allow analyze to work by including bsd.clang-analyze.mk for kernels 2011-09-25 22:26:33 +00:00
plunky f2d8d4c1c1 for multi-cpu machines, cpu_hatch() straddles the init of
__stack_chk_guard, so ensure stack protection is disabled
on x86 architectures (I don't know about other archs)
2011-08-31 20:16:43 +00:00
jmcneill eb0ad8c7a7 let kernel makefile override *.d targets 2011-08-28 23:15:53 +00:00
christos 26b068fc42 Remove gcc-4.5 hacks 2011-08-18 02:19:20 +00:00
jmcneill 747111eaaf let md makefile add newvers.sh flags by setting NVFLAGS 2011-08-11 22:37:57 +00:00
joerg 53cc155f3b Restrict -Wno-array-bounds to tulip.c with gcc. 2011-08-09 13:02:53 +00:00
uebayasi 3abce800c0 Define SYMTAB_SPACE in opt_ksyms.h, not opt_ddbparam.h. Ensure
that ddb(4) code is independent of SYMTAB_SPACE value.
2011-07-28 13:42:16 +00:00
mrg 0514da4400 adb_kbd.c and adb_ms.c need -Wno-cast-qual due to sysctl const issue. 2011-07-07 08:47:22 +00:00
mrg fc8b9ddc0c apply some -Wno-foo to 3 files that are non-trivial to solve, for GCC 4.5. 2011-07-04 13:00:19 +00:00
mrg 8f161cd6d3 remove all the code that supported HAVE_GCC=3. mostly from chuq. 2011-06-20 06:52:36 +00:00
matt 3a0f273eba If dbsym fails, not fail the command, remove the target too so that the
next invokation will try to remake it.
2011-06-17 21:19:42 +00:00
joerg 94dd60a9c3 Don't duplicate -Werror here, bsd.sys.mk already provides it 2011-05-30 03:12:43 +00:00
joerg a216da57a6 Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
joerg d3630a7492 Reorder flag order to not depend on -Wextra being applied before
-Wno-sign-compare
2011-05-23 13:55:55 +00:00
joerg abe88b5ff5 Inherit SSP settings from bsd.sys.mk 2011-05-22 20:49:46 +00:00
joerg 188ae306aa Spell --fatal-warnings with two hyphens 2011-05-19 21:24:55 +00:00
joerg eab53d10cd Add support for source specific AFLAGS and COPTS. 2011-05-17 07:16:02 +00:00
jakllsch 7124327c01 Make ${DBSYM} failure fatal. 2011-05-11 16:03:56 +00:00
plunky 676a6668e7 correct comment 2011-04-30 19:21:09 +00:00
matt d6c7c66ed9 If generating a gdb kernel and using dbsym, insert the symbols into it.
(This is useful when using the .gdb with an emulator so that ddb in the
emulator will have symbols).
2011-02-17 18:47:13 +00:00
matt 802fd8b955 If using a kernel ldscript, make sure it's added to the list of kernel
dependencies.
2011-01-04 01:52:30 +00:00
matt d24d5902b3 Kernels modules are c99 (gnu99) just like the kernel.
Add(move) -std=gnu99 to CPPFLAGS (from COPTS).
2011-01-02 19:24:47 +00:00
njoly 3a3fc358b3 Use 'a && b && ...' contructs for running multiple commands on a single line
in Makefiles, to properly detect/report failures.
2010-03-05 23:06:49 +00:00
darran 6a9056a926 DTrace: Add an SDT (Statically Defined Tracing) provider framework, and
implement most of the proc provider.  Adds proc:::create, exec,
exec_success, exec_faillure, signal_send, signal_discard, signal_handle,
lwp_create, lwp_start, lwp_exit.
2010-03-01 21:10:13 +00:00
tron 34ce7b691c "cgd.c" doesn't use variable size stack allocations anymore. 2009-11-10 20:24:50 +00:00
cube 2a75637a75 Nothing has used config_time.h since 1/8/2008. 2009-05-13 18:06:26 +00:00