Commit Graph

221 Commits

Author SHA1 Message Date
tsutsui 09b5dada8b Build mkhybrid as a build tool. 2024-05-31 20:52:58 +00:00
gutteridge 462b46f8ec Add mkubootimage to riscv tools 2024-05-23 02:50:47 +00:00
christos a7487e8acc hook gzip to the build so that we can test it in other OS's. Not used yet. 2024-04-01 02:22:38 +00:00
riastradh faabfc3e13 tools/elftoolchain: Handle dependencies properly.
This should properly resolve the problem christos was trying to
address by a bogus make includes hack and #ifdefs in elftoolchain.
2024-03-30 22:38:02 +00:00
rillig 16198ed8df tools/Makefile: clean up TOOLDIR validation
At the point where tools/Makefile is loaded, TOOLDIR doesn't have to
exist yet, it will be created later.  Remove the redundant quotes from
the .error messages.
2024-03-27 05:43:38 +00:00
mrg 439ff855d8 build isl tool for GCC 12. 2024-02-23 05:34:41 +00:00
rin b931da273c tools/Makefile: Correct inverted comment. NFC 2023-11-30 06:29:33 +00:00
jkoshy b47ec9f9c1 Disconnect 'tools/lib{elf,dwarf}' from the build.
These libraries are now built by 'tools/elftoolchain/lib{elf,dwarf}'
respectively.
2022-04-18 19:46:35 +00:00
jkoshy 42c1249ebe When building tools use a dedicated subdirectory for compiling
Elftoolchain code.

Build and install <sys/elfdefinitions.h> in ${TOOLDIR}/include.

This change prepares the ground for upgrading libelf and libdwarf to
their current Elftoolchain versions.
2022-04-13 17:52:56 +00:00
skrll 36f4db587e Make dtc on riscv 2021-11-14 15:48:02 +00:00
cjep 778a2675ae If we are building date earlier, we need to use an uninstalled copy
of host-mkdep and libnbcompat otherwise the build process looks for
tools that might not be there yet (e.g. fresh build).
Reviewed by martin.
2021-05-27 08:41:35 +00:00
christos f5c6b13fa0 Add a date tool 2021-05-26 20:19:15 +00:00
rin 735b9693ea PR port-mvme68k/56146
Build wrtvid as tools.
2021-05-06 13:23:36 +00:00
christos 433776ffe2 Make mips-elf2ecoff available for all mips 2021-04-25 15:11:28 +00:00
dbj e1f6b977ca tools: allow MKCROSSGDB to work when not building gcc 2021-02-06 16:14:55 +00:00
uwe dff8694dea Build mkubootimage for evbsh3 too. 2020-07-28 21:38:15 +00:00
joerg 76c7fc5f6b Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da) 2019-11-11 22:44:56 +00:00
bad e768752f39 Exclude more subdirs if TOOLS_BUILDRUMP=yes.
Exclude subdirs added in the last 3 years but not need for rumpkernel builds.
2019-09-26 09:21:34 +00:00
hannken 7ccc083a7e Fix build, "pax" must be built before "libprop".
Ok: Matthew Green mrg@
2019-05-07 10:22:54 +00:00
thorpej d380747e98 Add support for libprop as a host tool library. 2019-05-07 04:29:45 +00:00
joerg 0a0d40923d Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.
2019-04-03 15:21:58 +00:00
joerg da48f03c8a Revert MKLLVMCMDS changes. 2019-04-03 15:12:44 +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
christos d761a9b5a4 use MACHINE_CPU for elf2aout 2019-01-02 13:29:22 +00:00
christos 81944f85bf Add an arm-specific elf2aout tool since objdump does not support a.out anymore 2018-12-31 13:35:15 +00:00
joerg d548dd2316 Update build glue for xz-5.2.4. Hook up tools version. 2018-09-25 05:42:08 +00:00
christos 6938dd0f89 hook in the tools version of grep 2018-08-11 19:46:03 +00:00
joerg f0360e1d3e For EXTERNAL_TOOLCHAIN, MKLLVM=yes needs to build only tablegen. 2018-05-09 13:21:27 +00:00
uwe 6be0d6d9a0 Fix .endif comment for TOOLS_BUILDRUMP 2018-02-18 01:06:24 +00:00
christos 0e229e5357 Better EXTERNAL_TOOLCHAIN support from Zachary McGrew
- Allow mdsetimage and dbsym to be built with EXTERNAL_TOOLCHAIN
- Allow BFDDIR and IBERTYDIR to be overwritten for mdsetimage and dbsym
2017-12-27 21:34:11 +00:00
skrll ee83b6cae4 Hook in dtc/libfdt now that it builds for me 2017-06-07 10:38:33 +00:00
skrll e846b19637 Disable dtc/libfdt for now 2017-06-06 08:21:53 +00:00
christos 85cf7cedea No need to set dtc twice. 2017-06-05 23:55:43 +00:00
christos 484e2f7c2e Add dtc 2017-06-05 23:24:29 +00:00
joerg 501cd18a74 Sync tools build glue with LLVM pre-4.0.0. 2017-01-11 12:08:34 +00:00
christos a5b18563d7 move cvslatest last 2016-01-24 22:49:08 +00:00
christos b342d8bcb3 Tool version 2016-01-24 20:14:17 +00:00
christos 927b4a5792 move sortinfo after pax 2015-12-19 01:10:31 +00:00
christos 14e50442f2 Add sortinfo 2015-12-18 18:56:33 +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 589b128fbc Support building the xorg X11 libraries under MKCOMPAT.
Add XORG_MACHINE_ARCH to compat's bsd.*.mk
Turn xorg makekeys and makestrs into real host tools which are installed into
${TOOLSDIR}
2015-06-24 22:20:24 +00:00
joerg 72e6048ca0 Reorganise the way xorg is build. Move build of makestrs into src/tools
as it is needed for the "includes" phase. Make it symlink all necessary
headers in obj to decouple it from "includes" itself, breaking the
dependency cycle. Move the do-x11 target between do-lib and do-build, so
that libraries can get the benefit of build_install (correct .WAIT
behavior) and everything else like "includes" uses the plain SUBDIR
entry in external/mit.
2015-01-07 20:42:01 +00:00
pooka 6c078a85f6 build genassym for TOOLS_BUILDRUMP 2014-12-05 01:50:47 +00:00
christos 0fe1d114cc add gpt 2014-09-30 19:38:25 +00:00
matt 547b3a3b01 Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only.  While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.
2014-08-10 05:56:36 +00:00
christos 86eb29ab38 descend to vgrind 2014-07-15 13:19:44 +00:00
pooka bb567b2891 Add cat, rpcgen and stat to TOOLS_BUILDRUMP. They're useful for
installing headers for the app stack cases that need it done, and small
enough to not matter for the kernel-only cases that don't.
2014-06-15 14:36:57 +00:00
mrg ac641cb906 remove remaining makefile support for GCC < 45 that i found. 2014-06-14 20:49:36 +00:00
riastradh 7410f91473 ctfconvert/ctfmerge need libdwarf &c., so build them if MKCTF=yes. 2014-04-03 18:23:38 +00:00
ozaki-r 1339b2cc13 Add MKCTF
This variable separates CTF stuffs from MKDTRACE; we can build DTrace
solely without building and using them. This allows us to use DTrace
even if CTF stuffs have problems (actually they have now).

This variable would be merged into MKDTRACE eventually, once CTF stuffs
work correctly again.
2014-03-25 09:52:55 +00:00