Commit Graph

40 Commits

Author SHA1 Message Date
jmcneill
c9f4e317e7 Add HAVE_NVMM and use it to control the build of NVMM related components.
Defined to "yes" on amd64, "no" everywhere else.
2020-09-26 17:49:49 +00:00
jmcneill
0d54a9589a Add HAVE_ACPI and HAVE_UEFI flags to bsd.own.mk and use them to
conditionally include ACPI and UEFI bits instead of relying on adhoc
MACHINE_ARCH tests.
2020-09-12 15:25:41 +00:00
christos
d8e96a2d4f Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules.  This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.
2020-04-04 19:50:53 +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
mrg
21af34482f convert make's HAVE_MESA_VER into mesa_ver for set lists 2019-03-10 11:04:08 +00:00
mrg
a37025c593 introduce MKFIRMWARE that controls where (most) of the contents
of /libdata/firmware and /usr/libdata/firmware are not installed
if set to "no".  from the bsd.README:

MKFIRMWARE      If "no", install the /libdata/firmware directory,
		which is necessary for several drivers: athn(4), bwfm(4),
		ipw(4), iwi(4), iwm(4), iwn(4), otus(4), rtwn(4), urtwn(4),
		wpi(4), ral(4), rum(4), run(4), zyd(4), bcm43xx(4), and
		the Tegra 124 SoC.
		Default: yes on amd64, cobalt, evbarm evbmips, evbppc, hpcarm,
		hppa, i386, mac68k, macppc, sandpoint, and sparc64, no elsewhere.

convert MKRADEONFIRMWARE and MKTEGRAFIRMWARE into FOO.arch lists,
and move their defaults above the general defaults setting.

saves about 12MB in a normal installation for other platforms.
2018-05-31 05:27:45 +00:00
christos
7c00b0fa75 add openssl to the list of selectable variables for sets and fix the sets. 2018-02-08 03:27:50 +00:00
christos
bc55e4eac8 Add MKSTATICPIE 2017-10-08 15:05:19 +00:00
christos
5b3fb03fcc add DTC 2017-06-05 23:44:27 +00:00
christos
9aa6a196f7 need to treat as one word. 2017-04-21 22:46:26 +00:00
christos
b57319ba10 TOOL_SED is bogus when building source sets, use builtins instead. 2017-04-21 15:29:41 +00:00
mrg
7a224e01cd support xorg_server_ver define, currently settable to 110 (1.10.x)
or 118 (1.18.x).
2016-08-16 01:05:19 +00:00
christos
2cbb3786cb Give up and use TOOL_SED again. 2016-05-25 00:14:47 +00:00
christos
3be6f3a78a This should be SED not TOOL_SED since this is what is set from the ${SETSENV}
command in the Makefile!
2016-05-24 19:36:41 +00:00
christos
66411eaee2 document CTF 2016-02-21 04:16:36 +00:00
christos
0487dcd8aa handle both binutils 2.23 and 2.26 2016-01-31 18:41:35 +00:00
mrg
cf4dd8937a remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)
2015-07-23 08:03:24 +00:00
matt
056fcbe0a6 Add g to sed commands so it can deal with more than 2 archdirs. 2015-07-08 01:06:01 +00:00
matt
22d3ec294b Don't put COMPATARCHDIRS or KMODARCHDIRS since we handle them explicitly. 2015-06-22 19:04:21 +00:00
matt
76063e720e Need to check MKCOMPATMODULES as well. 2015-06-22 14:17:04 +00:00
martin
d735c91beb Force ARCHDIR_SUBDIR to empty before including some archdirs.mk - the
different files may set different values (or none at all).
Example: earm has "oabi" as compat, but none as module subdir.
2015-06-22 08:51:42 +00:00
matt
b39f12f817 Using archdirs.mk in compat, automagically generate compat entries for
files tagged with compatfile relative to directories tagged with compatdir.
This also applies to compattestsdirs and compattestsfile when
MKCOMPAT != "no" and MKCOMPATTESTS != "no".
Using archdirs.mk in sys/modules/arch, set list entries are automatically
create for all the other defined variants in ARCHDIR_SUBDIR (if any).
This should cut down on set lists getting out-of-sync a lot.
2015-06-22 05:59:59 +00:00
rjs
550917d61d Build both xf86-video-radeon drivers for amd64 and i386, just build the
old one for other ports.
2015-05-28 14:36:44 +00:00
mrg
aaabec45f9 two changes to radeon drm firmware:
- only install it by default on x86, set new MKRADEONFIRMWARE variable
- install in /libdata, so that separate /usr systems work

(this still doesn't solve PR#49811, which possibly could be handled by
having them being a kernel module loaded by /boot.)
2015-04-26 21:37:22 +00:00
mrg
50e581ea01 add build framework to choose between xf86-video-ati 6.x (UMS/KMS)
and 7.x (KMS only), and switch x86 to the latest (KMS only) version.

(if someone can make x86 install both radeon_drv.so.[67] and leave
the default symlink to .7, that would be nice.  renaming it so that
it's easier to choose via xorg.conf is a little more tricky..)
2015-03-01 07:46:04 +00:00
joerg
e20abf3ab1 Adjust trigger variable for unwind.h to follow changes in libc. 2014-01-26 21:33:53 +00:00
christos
2b043c75b6 eliminate use of bsd.sys.mk from Makefiles 2014-01-16 01:15:32 +00:00
joerg
aa6e9499ca Rename USE_LIBGCC to HAVE_LIBGCC and retry using it as flag on unwind.h. 2013-10-14 16:00:16 +00:00
mrg
0ca6164e56 rename (new) xorg_drivers to xorg_server -- platforms that build the
actual Xorg server (aka "xfree86 server").

move the list of these platforms from xorg-server/Makefile.common to
bsd.own.mk, so that we can access it easily in distrib.

this should fix most of the current build failures.
2013-06-12 21:35:29 +00:00
mrg
4af42f384d add support for MKXORG_DRIVERS/xorg_drivers keyword, and use it to
mark the xf86-input-mouse files not all platforms use.
2013-06-10 05:04:00 +00:00
matt
62c1b69ff1 Add an arch64 flag for use by mips set lists (and powerpc) 2013-04-30 20:54:22 +00:00
matt
b1fc1f902f Explicitly make MKSOFTFLOAT a mkvar.
Add support for endian={1234,4321}
Add EABI flag for ARM.
2013-04-30 16:26:26 +00:00
nakayama
f34b355a3e Follow the change from HAS_SSP to HAVE_SSP. 2013-01-28 13:46:47 +00:00
alnsn
ffd8736098 Build sljit test when MKSLJIT != no and set MKSLJIT to yes on amd64 and i386. 2012-11-05 00:57:39 +00:00
he
786e1278a2 Make sure the value of MKCOMPATMODULES gets imported into sets.subr,
so that the "compatmodules" keyword is properly handled when creating
the set lists.  Fixes the build for evbppc.
2011-11-02 14:42:43 +00:00
mrg
c23dc553e9 obsolete now useless (and wrongly set to "219" :-) HAVE_BINUTILS.
switch the sense of the gdb and gcc tests to list the platforms not
switched to gcc 4.5 or gdb 7, which is now:

GCC 4.1:
.if ${MACHINE_ARCH} == "alpha"	|| \
    ${MACHINE_CPU}  == "arm"	|| \
    ${MACHINE_CPU}  == "m68k"	|| \
    ${MACHINE_CPU}  == "vax"

GDB 6:
.if ${MACHINE_ARCH} == "alpha"	|| \
    ${MACHINE_ARCH} == "hppa"	|| \
    ${MACHINE_CPU}  == "mips"	|| \
    ${MACHINE_CPU}  == "sh3"	|| \
    ${MACHINE_ARCH} == "vax"

let's go, people!  (-:
2011-10-31 08:14:43 +00:00
he
a16282018d Introduce the "ssp" attribute derived from HAS_SSP from <bsd.sys.mk>.
Use it to flag entries which should only be included if the target platform
supports SSP.  Fixes the build for a bunch of architectures.
2010-12-28 09:15:24 +00:00
cegger
c67c15c2cc fix build.sh -N 4 distribution failure:
+ echo 'MKSOLARIS=yes'
xargs: unterminated quote
2010-03-22 12:03:04 +00:00
tron
11300caff5 "dtrace,zfs" means "MKDTRACE=yes" *and* "MKZFS=yes" which is not what
we want. Invent a flag "solaris" which is the or of those two flags.
2010-03-03 16:13:42 +00:00
uebayasi
e08ad0e79f Move make variable extraction & conversion logic from here-documented make
-f- command to an isolated makefile.  The list of non-_MKVARS.* variables
are concentrated there.

No functional changes.
2009-12-10 15:51:24 +00:00