matt
af8f0546ca
Make disklabel a MI tool. It will use MACHINE/MACHINE_ARCH to determine
...
the disklabel params as well as allowing command-line options of -M <machine>
and -B {le,be} to specify MACHINE and byteorder to be used.
2013-05-03 16:05:11 +00:00
matt
86313270f0
Use !empty(MACHINE_ARCH:Mearm*) instead of ${MACHINE_ARCH:Mearm*} != ""
2013-05-03 15:55:21 +00:00
matt
9244b4d1cb
Allow use of a different by using KLINK_MACHINE instead.
...
If it's not set, KLINK_MACHINE is set to ${MACHINE}
2013-05-02 04:14:28 +00:00
joerg
c7fbe15f37
MKLIBCXX and MKLIBSTDCXX
2013-04-28 04:44:21 +00:00
joerg
2fa1d2471b
Introduce MKLIBSTDCXX, defaulting to yes.
2013-04-28 04:05:37 +00:00
joerg
ecb06a3b09
Add build glue for libc++.
2013-04-27 23:02:17 +00:00
matt
ba99357d47
Default MKCOMPAT to no for earm
2013-04-27 08:42:44 +00:00
riastradh
f85ea5612a
Move addition of -g to CSHLIBFLAGS later in bsd.lib.mk.
...
It is now past any conditionals where its emptiness or nonemptiness can
influence the decision of what objects get built.
Fixes MKDEBUG=yes build on vax (PR 47700).
2013-04-22 22:16:14 +00:00
christos
247331174c
Install shlibdir debug links
2013-04-11 01:27:47 +00:00
christos
287e82f1db
add new libevent2 libraries.
2013-04-11 01:27:46 +00:00
uebayasi
b6c0c53d2c
Fix dependency handling of UUDECODE_FILES (e.g. libexec/ld.aout_so on i386).
...
The .uue rule is defined to make "foo.xxx.uue" -> "foo.xxx". When
UUDECODE_FILES_RENAME_* is also applied, the .uue rule tries to make "foo",
not "foo.xxx". This results in that "foo.xxx" is never made and always
"foo.xxx.uue" -> "foo" is made.
Define dependency for intermediate files.
Avoid unnecessary rebuild and reinstall. (Consume 70K in obj directory.)
2013-04-06 15:39:19 +00:00
christos
5fc19dec20
fix mkdebug for private libraries.
...
while here, centralize the strip variable handling per type of object.
2013-04-04 21:15:15 +00:00
christos
07a6c80766
ldopts should be before ldadd like everywhere else.
2013-04-04 21:14:36 +00:00
christos
fc08ea7529
fix groff html generation
2013-03-21 02:04:17 +00:00
christos
131c9e0b6e
handle NOMANDOC in the html case too
2013-03-21 01:48:14 +00:00
yamt
eb29b1d4e9
don't make ctfconvert remove original debug info
2013-03-06 11:19:08 +00:00
christos
b5a766a4fb
Add a rule to rebuild dependency files that contain stale entries automatically.
2013-03-05 21:59:01 +00:00
pooka
44e3d14dbc
Make "make DBG=-g -O2" for a library once again produce a shared library
...
with debugging symbols (irregardless of .debug).
2013-03-05 21:16:24 +00:00
christos
aa3d3ee6d3
MKDEPINCLUDES support.
2013-03-05 02:02:07 +00:00
joerg
db135d737c
Add infrastructure for building MCLinker.
2013-02-27 21:25:05 +00:00
jmmv
704facb580
Autogenerate Kyuafiles next to Atffiles when MKKYUA is set.
...
This is suboptimal: the current high-level definitions of test programs
in the Makefiles do not carry enough information to support all the
features of Kyuafiles. For example, it is not possible to register test
programs that do *not* use the ATF libraries, which is something that
has been frequently requested around here; nor it is possible to attach
arbitrary metadata to test programs from the Makefile, which is handy
particularly for ATF-less test programs.
For these reasons, consider this a transitional step.
Note that, with this change, you should now be able to use the 'kyua'
tool to run the tests in /usr/tests.
2013-02-23 22:01:51 +00:00
jmmv
5b7eb38d00
Stop assuming that test programs and directories are the same thing during
...
Atffile generation.
This is needed to be able to generate Kyuafiles (coming later), as these
clearly differentiate between the definition of test programs and the
recursion into other subdirectories (or files).
In particular: rename ATFFILE_EXTRA_TPS to ATFFILE_EXTRA_SUBDIRS and
change the logic in bsd.test.mk to keep track of subdirectories aside from
_TESTS when creating the Atffile.
2013-02-23 21:20:14 +00:00
christos
5a9353fcc0
Add a hook to create a manifest file if needed under cygwin
2013-02-17 00:36:00 +00:00
jmmv
7d3a48f1d2
Hook Lutok into the build. This is all protected by the MKKYUA guard.
2013-02-16 21:40:05 +00:00
jmmv
3bd42d5026
Add ATFFILE_EXTRA_TPS.
...
The new ATFFILE_EXTRA_TPS variable can hold a set of test programs or
subdirectories to be added to the generated Atffile, without needing these
to be built by the current Makefile.
This is to be used in conjunction with MK* knobs and external/ so that
a 3rd-party component can place its tests in the corresponding tests/
directory and have the parent Atffile recognize them.
An alternative would be to use 'tp-glob' in the Atffile and list the names
of the directories/tests that may or may not exist. However, this would
require providing manually-crafted Atffiles -- and because the majority are
auto-generated, there would be some confusion.
2013-02-16 15:00:44 +00:00
jmmv
88eb066b41
Add the MKKYUA knob.
...
MKKYUA defaults to no and will remain as such until the import is complete
and validated.
This knob does not currently have any effects on the build as nothing relies
on it yet. Upcoming imports and changes in this area will all be guarded by
this flag.
2013-02-15 19:49:48 +00:00
christos
fbf6778a1b
Since the libraries are produced with different MK flags than the programs,
...
we check for existance of the files instead of the MK flags.
2013-02-14 03:02:47 +00:00
christos
4880aaed67
Add PROGDPLIBS
2013-02-14 01:58:00 +00:00
nakayama
93c32b3617
Fix copy and paste miss introduced in rev 1.327.
2013-02-13 08:00:47 +00:00
jmcneill
01401401c3
add TOOL_MKNOD
2013-02-10 22:05:51 +00:00
christos
014096fb90
Allow setting _LIB_PREFIX externally.
2013-02-09 17:18:17 +00:00
spz
cd9c73575e
typo in a MKDEBUGLIB part
2013-02-09 12:17:20 +00:00
matt
4609daf1bc
Add missing }
2013-02-08 04:06:25 +00:00
christos
738b87c983
- factor out variables so that the code is more readable, make them conistent
...
- use _LIB_PREFIX correctly.
2013-02-08 02:30:53 +00:00
matt
467e80acbc
Add support for MACHINE_ARCH earmhf and earmhfeb
2013-02-03 05:36:36 +00:00
matt
2b29920df6
add earmhf
2013-02-03 05:35:25 +00:00
christos
d55974ab54
Move HAS_SSP and USE_SSP out of bsd.sys.mk. They did not belong there in
...
the first place. Rename HAS_SSP to HAVE_SSP to match existing practice.
2013-01-27 02:31:44 +00:00
christos
488659cc10
we cannot include bsd.sys.mk because of YHEADER. The incestious relation
...
of the .mk files needs to be fixed.
2013-01-27 02:22:27 +00:00
christos
84be08d909
CTFCONVERT complains and coredumps for c++
2013-01-26 22:04:18 +00:00
christos
08c1bf572c
CTFCONVERT me harder.
2013-01-26 21:49:20 +00:00
christos
daf5be7806
include <bsd.sys.mk>
...
This is a mess. HAS_SSP (which should really be HAVE_SSP), is defined
in bsd.sys.mk. So things that need it, include the file directly. The
trouble comes because bsd.sys.mk, needs stuff that bsd.own.mk defines,
so including first does not work. Anyway most other files include bsd.sys.mk
directly, so user Makefiles should just not do that, and just include
<bsd.own.mk> to get all the defines they need.
2013-01-26 21:48:58 +00:00
christos
1d92830f7c
Make the libfoo.so.X.Y.debug files actually contain debug symbols if MKDEBUG.
2013-01-22 20:43:17 +00:00
christos
7097ec6251
Now that ctf is fixed for at least amd64, go back to an equivalent to the
...
original functionality, use the tool only if it exists.
2013-01-18 19:32:09 +00:00
christos
3dd38e1c8b
Disable CTF Conversion for now until it is fixed.
...
- ERROR: ctrl_iface_ap.c: die 2767: failed to get unsigned: No entry found
[dwarf _attrval_unsigned(219)]
2013-01-17 17:33:16 +00:00
christos
aa675a73cf
Now that we have separate debug sets, add -g if ${MKDEBUG} is set for
...
program builds since we don't need to install that symbol files.
2013-01-17 15:42:59 +00:00
christos
af499c4810
Remove bogus conditionals that were also copied to other files presumably
...
because they did not work from here, and explain why.
2013-01-17 15:27:50 +00:00
matt
6deadffd90
Make MKSOFTFLOAT = yes for ARM (since arm is softfloat by default).
2013-01-11 12:55:29 +00:00
pooka
af1f107ceb
Add more external dependencies for crtstuff
2012-12-10 23:49:39 +00:00
pooka
4e6104b334
Revert poor change
2012-12-10 23:48:38 +00:00
pooka
83cc3f6549
Deal with crti and crtn not present in some EXTERNAL_TOOLCHAIN's. Also,
...
handle "missing" crtstuff internally instead of depending on external
intervention.
2012-12-10 20:58:55 +00:00
apb
30bff44eb3
Document MAKEDIRTARGETENV
2012-12-02 20:19:46 +00:00
joerg
5adc71af23
CATDEPS is bogus for mandoc, so disable it in that case.
2012-11-30 17:52:13 +00:00
joerg
6528688d69
Don't force link and CSS options in bsd.own.mk, bsd.man.mk sets them.
2012-11-30 17:51:50 +00:00
alnsn
fab5cb6386
Document MKSLJIT variable.
2012-11-24 14:01:28 +00:00
alnsn
012f33e5f2
Add sljit and bpfjit to evbmips. Not enabled by default.
2012-11-24 14:00:35 +00:00
pooka
a733ce9a7a
Support clang as EXTERNAL_TOOLCHAIN
2012-11-22 21:41:22 +00:00
pooka
0e23ad4a3c
unrevert previous. i can't figure out how to make the build break with
...
the change anymore, so assume it was a sunspot.
2012-11-21 20:30:01 +00:00
pooka
1495c1a931
revert previous, seems to upset the build in a creative way
2012-11-21 18:45:08 +00:00
pooka
58de144fd6
Allow user override of _GCC_CRT{BEGIN,END}S.
2012-11-21 18:09:10 +00:00
apb
922779be95
Make the test for infinite recursion in PRINTOBJDIR more specific,
...
and make the error case more easily recognisable.
Now "make -V '${PRINTOBJDIR}'" works instead of misinterpreting the "-V"
as infinite recursion.
2012-11-20 10:43:21 +00:00
apb
b7f14c7e34
On second thoughts, don't run "rm -rf" in bsd.clean.mk. Instead,
...
document that CLEANFILES and CLEANDIRFILES must not contain
directory names.
2012-11-19 16:04:54 +00:00
apb
ba27b6db7b
Use "rm -rf" instead of "rm -f" in bsd.clean.mk. This will
...
allow CLEANFILES or CLEANDIRFILES to contain directory names.
2012-11-19 15:14:27 +00:00
apb
ed0cd7eb98
Under "Failed to remove the following files from ${_d}:",
...
print one file name per line, indented to make the list more visible.
2012-11-18 19:52:40 +00:00
apb
19862a7d7d
Change some .if defined(SRCS) to .if defined(SRCS) && !empty(SRCS)
2012-11-18 19:48:29 +00:00
joerg
54f191bfce
Move the build_install logic from lib/Makefile into share/mk and re-use
...
it for tools. The existing logic broke for the LLVM build with the
recent .ORDER changes in make.
2012-11-15 23:51:53 +00:00
jkunz
993229b6fe
Add elftosb tools to evbarm userland and toolchain.
...
Elftosb is used to create a digitaly signed "secure boot" file.
This sb file can be booted by the first stage boot loader found in
Freescale i.MX23 and i.MX28 application processors.
Copyright (c) 2004-2010 Freescale Semiconductor, Inc.
2012-11-15 19:49:11 +00:00
pooka
813e9ae68d
Make it easier build binaries against the host's libs, e.g.
...
libpthread which might be in /lib/x86_64-linux-gnu/libpthread.so.0
or some other unholy place.
2012-11-13 22:30:38 +00:00
skrll
afd752e603
Switch mips to gdb 7.3.1
...
# of expected passes 11545
# of unexpected failures 401
# of expected failures 45
# of untested testcases 23
# of unresolved testcases 1549
# of unsupported tests 112
2012-11-06 10:32:49 +00:00
alnsn
be868ab1a6
Enable MKSLJIT on sparc.
2012-11-05 23:09:40 +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
christos
acfddfeed2
add MKTPM, default to no
2012-11-04 16:27:28 +00:00
apb
9a72dfd1d1
Add _NETBSD_VERSION_DEPENDS in bsd.own.mk. Targets that need
...
to be re-generated when the NetBSD version numberchanges,
or when any build-related variables change, may depend on
${_NETBSD_VERSION_DEPENDS}.
2012-11-04 10:59:13 +00:00
christos
9a046d1f16
old-style-definitions and no-format-zero-length are invalid for c++
2012-10-06 20:54:58 +00:00
jkoshy
1590a10806
Document the MKKMOD build knob.
2012-10-02 04:53:11 +00:00
jkoshy
02a811410b
Note that the MKCOMPAT build knob is supported on mips64-based
...
architectures.
2012-09-30 03:07:25 +00:00
jkoshy
e8679a18c5
Document the MKDTRACE build knob.
...
Reviewed by: apb
2012-09-29 12:03:41 +00:00
joerg
666a12c72f
Revert two unintentional changes from the PPC tests
2012-09-23 19:20:44 +00:00
joerg
2b3d1ee8a7
Update LLVM/Clang snapshot to r164464. This adopts the GCC options for
...
the SSP parameters and a not-yet-default rewrite of SROA.
2012-09-23 17:22:22 +00:00
abs
b094e520e2
strip trailing whitespace - noted by Snader_LB on IRC
2012-09-20 15:48:54 +00:00
riz
fb761f7bcb
Remap X11SRCDIR to /usr/xsrc for the MKREPRO=yes case.
2012-09-05 22:40:30 +00:00
jmmv
15cd91994b
Fix "make test" to actually print the desired message when atf-run fails.
...
It was being skipped due to the set -e in the code snippet and the failure
to properly capture atf-run's exit code.
2012-08-25 22:21:16 +00:00
jmmv
afbfa91c1d
Make DPADD and LDADD specific to the test programs. This allows mixing
...
C and C++ test programs in the same Makefile, and prevents regular programs
from being polluted by libraries that they may not need.
Suggested by Garrett Cooper in private mail, although I redid his patch.
2012-08-24 20:28:19 +00:00
jmmv
fcb81e1f92
Allow DPADD to be specified on a per-program basis.
2012-08-24 20:26:24 +00:00
joerg
067600c8cf
Revert last, it breaks the tricks xsrc uses.
2012-08-23 21:21:14 +00:00
joerg
8e96262375
Remove SHLIBINSTALLDIR and SHLINKINSTALLLIBDIR. Add rpath entries, if
...
SHLIBDIR differs from /usr/lib.
2012-08-23 15:45:02 +00:00
matt
30a859f903
Add ARM cpus to those MACHINE_ARCH which USE_COMPILERCRTSTUFF=no
2012-08-16 05:30:55 +00:00
joerg
fabb48a37a
Remove effectively tautological condition.
2012-08-10 16:34:23 +00:00
joerg
6ffdafe0ea
Don't set HAVE_GCC by default, if MKGCC is disabled.
2012-08-10 16:12:20 +00:00
joerg
8b623749df
Make linker warnings fatal by default for Clang, even if not building
...
GCC.
2012-08-10 16:11:43 +00:00
matt
5bfda53e09
Add .ARM.exidx as a section to be removed for a.out on ARM
2012-08-10 02:53:09 +00:00
christos
eda981fc36
add MKRUMP by popular demand.
2012-08-08 13:56:13 +00:00
matt
641919f3e4
Add the new MACHINE_ARCH of earm and earmeb (arm EABI(AAPCS-LINUX)).
2012-08-05 04:11:35 +00:00
christos
f788a13164
From pooka: Fix EXTERNAL_TOOLCHAIN compilation where crti/crtn are not in the
...
same directory as crtbegin
2012-07-19 19:42:45 +00:00
macallan
c5214d8b2d
add xgi to the list of known Xorg drivers just to make sure I don't forget
...
to add it here when I actually import it
2012-07-19 15:16:31 +00:00
spz
67d12f6407
more MKCRYPTO_IDEA and MKCRYPTO_MDC2 removal (resp, adjustment to IDEA and
...
MBC2 now always being included)
MKCRYPTO_RC5 now builds shared libs, add the missing files to sets
2012-07-14 16:04:04 +00:00
abs
5659783547
Whatever "-Wl,--fatal-warnings" get-out-of-jail-free card gcc-4.5 gets,
...
give the same treatment to gcc-4.1.
2012-06-25 16:48:55 +00:00
abs
86aebb49c7
Switch -current vax back to gcc 4.1 to match netbsd-6 - until someone has
...
time to look at the gcc 4.5 codegen issues we should at least have a usable
-current for vax.
2012-06-22 20:32:34 +00:00
plunky
f46033d093
since we seem to have grown a WARNS=5, list it here
2012-06-19 06:20:13 +00:00
uwe
e431c4fada
Switch sh3 ports to our own csu (USE_COMPILERCRTSTUFF?= no).
2012-06-17 22:59:48 +00:00
wiz
f6eeb323a5
Document MKREPRO here as well.
2012-05-25 10:48:48 +00:00