Commit Graph

2797 Commits

Author SHA1 Message Date
kamil
7d75527c60 Allow to use KCOV + kASan together
Stop instrumenting KCOV files with kASan and the other way around.
This fixes booting of the setup of using them together.

In theory the checks could be more fine grained, however there is no good
reason (except extra DIAGNISTIC) for running a kernel sanitizer without
kernel coverage.

Patch by <R3x>
2019-05-22 08:31:25 +00:00
nakayama
43b52312c6 Use ${_TOOL_PREFIX} instead of hardcoding "nb" for consistency. 2019-05-17 13:51:36 +00:00
nakayama
0015932b89 Revert previous.
The binaries created are different, but according to joerg@ there
is no difference in functionality.
2019-05-17 13:44:55 +00:00
nakayama
95541573e2 Rename nb{clang,llvm}-tblgen to ${MACHINE_GNU_PLATFORM}-{clang,llvm}-tblgen
since they contain the default target (e.g. x86_64--netbsd).
2019-05-16 20:00:49 +00:00
christos
3dedd71659 Everyone is using gcc-7 now. 2019-05-11 02:40:31 +00:00
mrg
324b4eb87f add an entry to find upcoming intel-2014 driver. 2019-05-10 06:19:54 +00:00
maya
e5523bd00e G/C unused code.
gcc -combine is no longer a thing, so this entire block isn't usable.
2019-05-09 23:34:51 +00:00
kamil
55506a14cd Fix typo cost -> host 2019-04-19 22:06:03 +00:00
mrg
660c4904e1 switch ia64 to GCC 7. scole@ commited a workaround for the one new problem.
this leaves ppc64 as the only GCC 6 port left.
2019-04-19 21:34:26 +00:00
mrg
6c9d474098 turn on MKCOMPAT for riscv64. 2019-04-18 20:11:57 +00:00
mrg
1ce78da3f1 enable EGL and glamor. partly from maya@.
for x86 and evbarm:
- install headers and libEGL
- install xorg-server glamoregl component
- link xorg drivers against gbm/egl

bonus fix:
- fix some wrongly marked compatx11file files


build tested on shark, sgimips, evbarm64-el, amd64 and i386.
run tested on radeon, intel and nvidia on amd64, including
'modesetting' driver on amd64.  however, my systems disable
it due to llvmpipe so i'm not sure what is happening.
2019-04-16 21:20:50 +00:00
maya
226aa51e27 Don't build compat libraries for riscv, for now. 2019-04-15 15:56:40 +00:00
christos
ac84be3749 Add -r so that we get the location of redefinitions 2019-04-07 19:32:24 +00:00
maya
45fb16f000 Switch everyone to mesa 18. 2019-04-05 15:58:17 +00:00
maya
a63f4c9283 Limit MKLLVMRT being enabled with MKX11 to x86. 2019-04-05 15:22:35 +00:00
maya
a891433074 Frantically revert previous because of missing stuff 2019-04-05 15:11:31 +00:00
maya
6103ba0427 switch everyone to mesa 18. 2019-04-05 15:07:39 +00:00
mrg
36f30ad7ad switch hppa to GCC 7.
note vax atf fails same as GCC 6.  hppa mostly works but has an
atf issue also unrelated to the compiler version

note ia64 mostly builds, but the kernel fails earlier than GCC 6.
2019-04-04 21:31:28 +00:00
christos
5e8867daf8 vax "cough" works, with gcc-7 2019-04-03 21:41:21 +00:00
joerg
b90b6db247 Use and enable MKLLVMRT for HAVE_MESA_VER=18. 2019-04-03 15:26:34 +00:00
joerg
cf000f1761 Provide a default value of no for MKLLVMRT. 2019-04-03 15:23:29 +00:00
joerg
8e36148e18 Document MKLLVM. 2019-04-03 15:17:23 +00:00
joerg
da48f03c8a Revert MKLLVMCMDS changes. 2019-04-03 15:12:44 +00:00
christos
9c552bddf4 re-enable jemalloc. 2019-03-28 15:45:23 +00:00
christos
e11d722853 disable jemalloc again until we can figure out what to do with the bloat
for installer media.
2019-03-28 08:41:50 +00:00
christos
49cb7eb256 back to jemalloc for the masses 2019-03-27 18:41:18 +00:00
christos
8be7033514 undo previous, too much breaks. 2019-03-27 11:15:55 +00:00
christos
a0f2b6a215 jemalloc for everyone! 2019-03-27 02:51:41 +00:00
martin
ea3b107eb2 Switch sparc64 over to newer jemalloc. 2019-03-21 11:14:16 +00:00
mrg
18e2edb50a split MKLLVM into MKLLVM and MKLLVMCMDS, like MKGCC and MKGCCCMDS:
- only build clang or clang-tblgen if MKLLVMCMDS != "no"
- move HAVE_MESA_VER earlier so we can detect mesa 18 and enable
  MKLLVM on platforms that need it
- move the clang commands and headers into llvmcmds group
- only build the clang specific LLVM libraries if MKLLVMCMDS != "no"

much of this work came from maya@'s github commit
f90685c11d4460d3098fa35f48b58d1893e974e0, reworked for HAVE_MESA_VER
and llvmcmds vs MKCLANG.


build tested on several platforms and on amd64 and i386 with several
different build options (clang build, gcc build, gcc build with llvm
libs).
2019-03-20 22:51:37 +00:00
mrg
d8f51e97eb install transset. 2019-03-11 09:20:13 +00:00
mrg
45a98ae559 fix a bunch of man page transforms.
XXX X11MANCPP=yes has only one use left, maybe it can go away!
2019-03-11 06:25:55 +00:00
mrg
47a40b7ad1 export HAVE_MESA_VER for use in makefiles and set lists. 2019-03-10 11:02:46 +00:00
mrg
e3ecb7100d move mesa10 build into .old scheme:
- add ${X11SRCDIR.MesaLib.old} and introduce ${X11SRCDIR.Mesa} as an
  alias for either the former or the non old.  this allows many of
  the makefiles to simply use ${X11SRCDIR.Mesa} (but does not really
  enable much sharing of makefiles, but reduces their diffs.)

- use mesa-which.mk to define ${OLD_PREFIX} to either "" or ".old",
  and to know if to build 'dri7' (.old only.)  ${OLD_PREFIX} is used
  by other code (eg, LIBDPLIBS) to pick the right subdir.
2019-03-10 02:29:52 +00:00
christos
1d3883b194 Switch i386 and aarch64 to jemalloc (really I could switch everyone at this
point).
2019-03-09 17:59:28 +00:00
christos
6f80f650ef Back to using jemalloc for x86_64; all problems have been resolved. 2019-03-08 20:35:10 +00:00
christos
dce236fdab Switch back amd64 to the old jemalloc. We have some pthread unit-tests
failing.
2019-03-04 21:19:58 +00:00
christos
78fb378311 switch amd64 to jemalloc-5.1.0 2019-03-04 17:32:46 +00:00
mrg
4e3bdd6e1c switch 32 bit arm, m68* and sh3 to GCC 7.
reverse the polarity now that few ports remain: hppa, vax, ia64 and ppc64
2019-03-04 01:14:31 +00:00
mrg
8fc8a45971 xorg-server 1.20.4 is now current. 2019-03-03 22:02:49 +00:00
kamil
0fe7e51662 Add KCOV - kernel code coverage tracing device
The KCOV driver implements collection of code coverage inside the kernel.
It can be enabled on a per process basis from userland, allowing the kernel
program counter to be collected during syscalls triggered by the same
process.

The device is oriented towards kernel fuzzers, in particular syzkaller.

Currently the only supported coverage type is -fsanitize-coverage=trace-pc.

The KCOV driver was initially developed in Linux. A driver based on the
same concept was then implemented in FreeBSD and OpenBSD.

Documentation is borrowed from OpenBSD and ATF tests from FreeBSD.

This patch has been prepared by Siddharth Muralee, improved by <maxv>
and polished by myself before importing into the mainline tree.

All ATF tests pass.
2019-02-23 03:10:05 +00:00
maya
53ba185d70 Use GCC 7 on riscv, it is not supported on 6. 2019-02-09 21:05:48 +00:00
mrg
fccd79354b switch ppc64 back to gcc7, it was an accident. 2019-02-09 00:59:30 +00:00
mrg
b4f3db3927 switch aarch64, alpha, i386, mips, powerpc, sparc, sparc64,
and x86_64 to GCC 7.
2019-02-08 09:35:00 +00:00
mrg
6c19d726c3 move OBJECT_FMTS setting after MKCOMPAT default, so it works.
should fix mips64 builds.
2019-02-06 11:05:30 +00:00
mrg
3deb71eabd re-do version 1.1098 properly:
- fix OBJECT_FMTS if mips64 and !MKCOMPAT
2019-02-05 04:47:59 +00:00
mrg
d70ad97c73 revert previous for now. 2019-02-04 00:34:12 +00:00
mrg
82dcfee30d don't add elf64 to OBJECT_FMTS if !MKCOMPAT and mips64. 2019-02-04 00:06:14 +00:00
scole
9943d7ba24 don't disable MKRUMP by default for ia64 as it can at least build now 2019-01-30 22:51:33 +00:00
scole
fff7694413 remove "MKLINT.ia64=no" as default is no anyway, and should compile on 64 bit host now 2019-01-29 19:40:42 +00:00