Baptiste Daroussin
af38028d11
Make all shared library a relative symlink
...
This makes sysroot usable for cross building, it also removes the need for
_SHLIBDIRPREFIX (keeps its definition since picobsd uses it and I have no time
to test it)
Differential Revision: https://reviews.freebsd.org/D2920
Submitted by: imp, adrian
Tested by: adrian
2015-06-27 23:28:56 +00:00
Andrew Turner
61b9bd2303
Sort the cpu architectures by name rather than a combination of
...
alphabetical order and appending new architectures to the end of the list.
Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation
2015-06-25 16:47:11 +00:00
Simon J. Gerraty
cc2520d2f3
Fix generation of src.conf.5
...
Since makeman turns all options on, we need to guard somethings from
make(showconfig)
2015-06-22 20:21:57 +00:00
Simon J. Gerraty
7090067b2a
Appy := to dependent opts once value determined.
...
This is needed to fix output from 'make showconfig'
2015-06-22 19:01:09 +00:00
Baptiste Daroussin
a82117a6af
Simplify code to install manpages and it symlinks
...
Use the bmake's .for multi variable loops to simplify and make the code more
readable
2015-06-21 22:42:55 +00:00
Baptiste Daroussin
5428abe13d
Simplify symlinks on include files by using bmake's multivariable .for loops
2015-06-21 22:27:52 +00:00
Simon J. Gerraty
916c1cd0ab
Deal with MAKEOBJDIRPREFIX
...
MAKEOBJDIRPREFIX does not really fit our model.
Use it to set OBJROOT to about where user expects
and set MAKEOBJDIR to do what we want.
2015-06-20 21:48:07 +00:00
Baptiste Daroussin
729c67f5a7
Use .CURDIR in soelim's include path instead of SRCDIR
...
This fixes build when a user has defined SRCDIR in make.conf as required by
some ports
2015-06-20 00:17:57 +00:00
Simon J. Gerraty
daf514d0bb
Move include of make.conf back to its old position.
...
This means moving include of local.sys.mk and src.sys.mk too.
Introduce new includes to take the early slot, for the purpose
of being able to influence toolchains and the like.
Differential Revision: D2860
Reviewed by: imp
2015-06-19 14:56:24 +00:00
Simon J. Gerraty
da27fc718f
Normally a staging conflict causes an error.
...
When bootstrapping different options, it is handy to be able to
make those warnings.
2015-06-16 23:06:43 +00:00
Warner Losh
32c88b5252
Remove old fmake. It wasn't built by default for some time. Users that
...
really need it can find it in the devel/fmake port or pkg install fmake.
Note: This commit is orthogonal to the question 'can we fmake buildworld'.
Differential Revision: https://reviews.freebsd.org/D2840
2015-06-16 20:58:33 +00:00
Baptiste Daroussin
c0b575998b
Register libpanel into the available libraries
2015-06-15 21:20:21 +00:00
Simon J. Gerraty
31277fe3a0
Skip MAKE_PRINT_VAR_ON_ERROR unless we are doing META_MODE
...
with all the recursion in normal build it is too much noise.
2015-06-15 21:09:18 +00:00
Simon J. Gerraty
c1cb0d799b
do not include src.opts.mk from here
2015-06-15 19:23:47 +00:00
Enji Cooper
c4af37bb9a
Ensure TESTSDIR is defined before bsd.test.mk is .include'd
...
MFC after: 1 week
2015-06-15 07:13:23 +00:00
Enji Cooper
61099d9aab
Remove ALLOW_DEPRECATED_ATF_TOOLS/ATFFILE support from atf.test.mk
...
The legacy atf tools were removed in atf 0.20
MFC after: 2 weeks
2015-06-15 06:38:59 +00:00
Simon J. Gerraty
8311337d35
Avoid trailing white-space
2015-06-14 03:28:48 +00:00
Simon J. Gerraty
704b4cac9d
Watch out for bin/cat in host stage tree
2015-06-14 03:28:25 +00:00
Simon J. Gerraty
71c66d9edc
Avoid anoying warning
2015-06-14 03:27:22 +00:00
Adrian Chadd
26b05dff32
Fix incorrect library path.
2015-06-13 22:36:42 +00:00
Simon J. Gerraty
fe137a9992
We no longer need CSU_DIR.i386
...
and until there is an alternative we need MK_INSTALL_AS_USER=yes
2015-06-13 19:52:35 +00:00
Simon J. Gerraty
ccfb965433
Add META_MODE support.
...
Off by default, build behaves normally.
WITH_META_MODE we get auto objdir creation, the ability to
start build from anywhere in the tree.
Still need to add real targets under targets/ to build packages.
Differential Revision: D2796
Reviewed by: brooks imp
2015-06-13 19:20:56 +00:00
Simon J. Gerraty
4b9775d88c
Use ${CRUNCHGEN} rather than bare word.
...
Reviewed by: brooks
2015-06-13 15:36:13 +00:00
Simon J. Gerraty
ab21b9ab84
Do not override variables on command line that build needs to change.
...
It is sufficient to explicitly set DEPENDFILE in env for each sub-make.
2015-06-11 21:11:33 +00:00
Andrew Turner
d1f83b466c
Enable clang on armeb, it is now able to build targeting armeb. This is
...
the last arm platform to move away from gcc.
Tested by: jmg
2015-06-11 16:49:14 +00:00
Simon J. Gerraty
e5b44e3743
With MK_AUTO_OBJ=yes objdir is created during sys.mk
...
If a makefile sets NO_OBJ, we should honor that by setting
.OBJDIR back to .CURDIR
2015-06-11 13:53:15 +00:00
Simon J. Gerraty
92f755617b
For debugging we sometimes run makefiles forcing level > 0
...
Ensure setup that should have happened at level 0 is done.
2015-06-11 13:51:52 +00:00
Simon J. Gerraty
10b60135a9
Mention what 'common' is for
2015-06-10 19:36:53 +00:00
Simon J. Gerraty
dccf7cedd2
combine two comments
2015-06-10 19:31:10 +00:00
Simon J. Gerraty
940a3032cb
Explain in a nutshell why we destroy
2015-06-10 19:26:49 +00:00
Simon J. Gerraty
f5374544f1
Building on fmake is no longer possible so removed tests for bmake.
2015-06-10 18:14:38 +00:00
Simon J. Gerraty
4cc6b8394f
If MK_AUTO_OBJ==yes, it is done before bsd.obj.mk included
2015-06-10 18:09:05 +00:00
Simon J. Gerraty
b56a78b69e
Let people use this with MAKEOBJDIRPREFIX if they really want to
2015-06-10 13:14:24 +00:00
Simon J. Gerraty
6251c65a82
Latest dirdeps.mk sets DEP_RELDIR for itself.
...
This helps guard against bugs in manually edited Makefile.depend
files, and avoids the need to call realpath from the Makefile.depend file.
2015-06-08 23:34:04 +00:00
Simon J. Gerraty
924b88f687
Watchout for bogus MAN
2015-06-08 23:32:27 +00:00
Simon J. Gerraty
d800e67729
Add support for dependent options
...
Reviewed by: imp
2015-06-06 01:18:28 +00:00
Simon J. Gerraty
1e34437637
Add dependent option STAGING_MAN/STAGING
...
Use a single mlinks set, since some libs (eg. libc) do cross section
links.
2015-06-04 19:11:56 +00:00
Bryan Drewery
b322948ef6
Similar to r280178, don't hide command for building static library.
2015-06-02 19:05:02 +00:00
Simon J. Gerraty
8bf4a1b89c
Handle multiple sections in MLINKS
2015-05-31 07:16:31 +00:00
Simon J. Gerraty
09cdd180a2
Stage man pages.
2015-05-31 03:13:24 +00:00
Baptiste Daroussin
8faa40d1a0
Switch to mandoc's version of makewhatis(8), whatis(1), apropos(1) utilities.
...
This change among other things improve search capabilities over the manpages
allowing fine grain query.
A new build option WITHOUT_MANDOCDB has been added to keep the ancient version
of the database and the tools. The plan is to entirely remove this option before
11.0-RELEASE.
Differential Revision: https://reviews.freebsd.org/D2603
2015-05-30 17:41:37 +00:00
Simon J. Gerraty
58073855a4
Do not override variables on command line that build needs to change.
...
It is sufficient to explicitly set DEPENDFILE in env for each sub-make.
2015-05-30 17:29:51 +00:00
Simon J. Gerraty
fdfa61c3ab
Test that .CURDIR is component of (or matches) .OBJDIR
2015-05-30 17:27:52 +00:00
Simon J. Gerraty
6332aaacb4
Use SRCTOP when defining ROOTOBJDIR
...
Excplicitly check rather than assume that .CURDIR is
a component of .OBJDIR
Otherwise check for OBJTOP and if that is a match use it.
2015-05-30 15:13:18 +00:00
Simon J. Gerraty
883e6bfbb1
Define SRCTOP in src.sys.mk
...
Because src.sys.mk should only ever be found in the src tree
we can use its position (.PARSEDIR) to set SRCTOP.
Reviewed by: bapt, imp
2015-05-30 15:08:52 +00:00
Simon J. Gerraty
10e781d1ba
Allow AUTO_OBJ with out META_MODE.
...
Remove frobbing of SRCCONF etc - not strictly relevant to meta mode.
2015-05-29 06:45:32 +00:00
Simon J. Gerraty
b17ff922d4
Merge from head
2015-05-26 21:52:57 +00:00
Simon J. Gerraty
c4a81da0c8
Include bsd.mkopt.mk before local.sys.mk
...
Also use __DEFAULT_DEPENDENT_OPTIONS for options that
generally depend on META_MODE.
Deal with MK_META_MODE and MK_AUTO_OBJ directly.
Also allow MK_META_FILES if no -B
this is very handy for getting meta files from say buildworld
2015-05-26 21:51:36 +00:00
Simon J. Gerraty
6d5e42ed3a
include local.meta.sys.mk
2015-05-26 21:47:43 +00:00
Simon J. Gerraty
43f42ca719
always filter out dirdeps.cache*meta
2015-05-26 21:47:12 +00:00