summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
Commit message (Collapse)AuthorAgeFilesLines
* Only use the CROSS_BINUTILS_PREFIX tool if it exists.andrew2015-04-021-1/+2
| | | | | Reviewed by: emaste Sponsored by: The FreeBSD Foundation
* Ensure the cross assembler, linker and objcopy are used for the build32dim2015-04-021-3/+5
| | | | | | | | stage, just like for the regular world stage. Reviewed by: rodrigc, imp, bapt, emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D2187
* Add --sysroot to the compiler flags for clang or gcc external toolchainsrodrigc2015-03-261-1/+1
| | | | | | | Before this fix, --sysroot was only added to the compiler flags if a clang external toolchain was used. Reviewed by: imp
* Add some more explanation to the different phases of the build.imp2015-03-251-5/+14
|
* Force MK_INCLUDES for the legacy stageemaste2015-03-251-1/+2
| | | | | | | | | | As legacy executes "make installincludes" we don't want it to be disabled by a src.conf setting. Reviewed by: imp MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D2143
* Start to import support for the AArch64 architecture from ARM. This changeandrew2015-03-191-1/+1
| | | | | | | | | | | | | | | | | only adds support for kernel-toolchain, however it is expected further changes to add kernel and userland support will be committed as they are reviewed. As our copy of binutils is too old the devel/aarch64-binutils port needs to be installed to pull in a linker. To build either TARGET needs to be set to arm64, or TARGET_ARCH set to aarch64. The latter is set so uname -p will return aarch64 as existing third party software expects this. Differential Revision: https://reviews.freebsd.org/D2005 Relnotes: Yes Sponsored by: The FreeBSD Foundation
* When cross-building with an external toolchain we still need a target stripemaste2015-03-171-0/+5
| | | | It is used by at least crunchide(1).
* Add LIB_CXX so that C++ libraries will use CXX to link.bdrewery2015-03-171-0/+4
| | | | | | | | | | | | | | | | | This fixes C++ libraries not implicitly linking in libc++. This is generally not an issue because the final linking with the compiled binary will involve CXX via PROG_CXX or other means. It is however inconsistent with libraries implicitly linking in libc and problematic for trying to build libraries with '-z defs' to ensure all direct dependencies are linked in. libatf-c++ is currently the only consumer of this new feature. Differential Revision: https://reviews.freebsd.org/D2039 Reviewed by: imp Discussed with: bapt MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* Provide automatic cross-binutils path if no BINUTILS_BOOTSTRAPemaste2015-03-121-0/+13
| | | | | | | | | | The in-tree binutils does not support arm64, so will not work for the forthcoming FreeBSD arm64 port. BROKEN_OPTIONS will include BINUTILS_BOOTSTRAP, so provide a default CROSS_BINUTILS_PREFIX for this case. Reviewed by: imp Sponsored by: The FreeBSD Foundation
* It appears that xlint isn't used in the build process, so it certainlyimp2015-03-121-1/+0
| | | | doesn't need to be a build tool.
* Support CROSS_BINUTILS_PREFIX with in-tree compileremaste2015-02-261-0/+6
| | | | | | Reviewed by: bapt, imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D1974
* Fill in missing dependencies for dtrace related tools so the bootstrap-toolsngie2015-02-231-0/+3
| | | | | | | | compiles properly on older hosts Pointyhat to: me X-MFC with: r279197 MFC after: 2 weeks
* Parallelize building bootstrap-toolsngie2015-02-231-1/+19
| | | | | | | Differential Revision: https://reviews.freebsd.org/D1901 MFC after: 2 weeks Reviewed by: ian No serious objections from: imp
* Fix bootstrap on systems with old yacc with small MAXTABLE.jkim2015-02-181-5/+5
|
* Restore the ability to use clang as an external compiler. This wasgrehan2015-02-181-3/+4
| | | | | | | | | inadvertently removed when support for external GCC was added. Deprecate XFLAGS in favour of the newer XCFLAGS/XCXXFLAGS. Tested with: make universe, make CROSS_COMPILER_PREFIX=/usr/bin/ buildworld Reviewed by: imp, bapt
* release: use xz via pipe when compressing the tarballs.rpaulo2015-02-171-15/+17
| | | | | | | | | | | | | | libarchive(3) doesn't support the new liblzma API yet, but this change allows us to enable multi-threaded xz compression. ``make release'' should now finish in half the time on a machine with several cores and fast disks (our typical build server). This behaviour only applies when building a release and it doesn't affect buildworld/installworld. To disable threaded xz compression, set XZ_THREADS=1. Reviewed by: gjb Tested by: gjb
* Fix a typo when invoking tar(1) to create the debug distributions.rpaulo2015-02-161-1/+1
|
* Step 1 of eliminating the "games" distribution: Move binaries to /usr/bin;cperciva2015-02-121-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | update paths; and include everything in the "base" distribution. The "games" distribution being optional made sense when there were more games and we had small disks; but the "games-like" games were moved into the ports tree a dozen years ago and the remaining "utility-like" games occupy less than 0.001% of my laptop's small hard drive. Meanwhile every new user is confronted by the question "do you want games installed" when they they try to install FreeBSD. The next steps will be: 2. Removing punch card (bcd, ppt), phase-of-moon (pom), clock (grdc), and caesar cipher (caesar, rot13) utilities. I intend to keep fortune, factor, morse, number, primes, and random, since there is evidence that those are still being used. 3. Merging src/games into src/usr.bin. This change will not be MFCed. Reviewed by: jmg Discussed at: EuroBSDCon Approved by: gjb (release-affecting changes)
* Remove remnant from texinfobapt2015-02-111-5/+1
|
* Exclude 'tests' from DEBUG_DISTRIBUTIONS.gjb2015-02-101-1/+1
| | | | Sponsored by: The FreeBSD Foundation
* Merge xz 5.2.0.rpaulo2015-02-091-0/+1
| | | | | | | | | | | | | This brings support for multi-threaded compression. This brings close N times faster compression where N is the number of CPU cores. Because of this, liblzma now depends on libthr. Soon libarchive will be modified to use the new lzma API. Thanks to antoine@ for the exp-run. Differential Revision: https://reviews.freebsd.org/D1786 Reviewed by: bapt
* Conditionalize building radius support into libpam, ppp, etc viangie2015-02-041-1/+5
| | | | | | | MK_RADIUS_SUPPORT MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Restore addr2line to cross toolsemaste2015-01-231-0/+3
| | | | | | | | | | | Addr2line is not required for the build, and a per-arch binary is no longer required with the switch to the ELF Tool Chain. However, building these tools during the cross tools stage can be useful for developers who cross build HEAD from stable/10, and adds very little to the build time. Reviewed by: ian, imp Differential Revision: https://reviews.freebsd.org/D1583
* Fix bootstrap on systems with old libdwarf and WITHOUT_CDDLemaste2015-01-211-4/+9
| | | | | | | | ELF Tool Chain tools need libelf and libdwarf. Submitted by: jmallett (earlier version) Reviewed by: jmallett Sponsored by: The FreeBSD Foundation
* Remove addr2line from cross elftoolchain tools listemaste2015-01-211-1/+0
| | | | | | | It is not required, and there is no reason to install it just because it came with the binutils cross tools. Sponsored by: The FreeBSD Foundation
* Remove GNU texinfo from base along with all info pages.bapt2015-01-021-24/+6
| | | | | | | | | To be able to info pages consider installing texinfo from ports print/texinfo or via pkg: pkg install texinfo Differential Revision: https://reviews.freebsd.org/D1409 Reviewed by: emaste, imp (previous version) Relnotes: yes
* Use BINUTILS_BOOTSTRAP knob for binutils onlyemaste2014-12-301-1/+3
| | | | | | | | | Previously it also disabled building elftoolchain bootstrap tools such as strip(1). Differential Revision: https://reviews.freebsd.org/D1398 Reviewed by: imp Sponsored by: The FreeBSD Foundation
* Update the text for building texinfo with build-tools to reflect the factngie2014-12-221-1/+1
| | | | | | | that make install is being called as well MFC after: 1 week X-MFC with: r276052
* Build selective portions of gnu/usr.bin/texinfo as part of build-tools tongie2014-12-221-0/+15
| | | | | | | | | | | | | | | | | | | | ensure that building on a host without makeinfo (i.e. a host where make delete-old -DWITHOUT_INFO was run), then building with MK_INFO == yes doesn't manifest in build errors when building info pages This manifested itself like the following when I was build testing an MFC change on stable/10: makeinfo --no-split -I /usr/src/gnu/lib/libregex/doc -I /usr/src/gnu/lib/libregex/doc regex.texi -o regex.info makeinfo: not found *** [regex.info] Error code 127 make[6]: stopped in /usr/src/gnu/lib/libregex/doc 1 error Tested on a head VM without makeinfo installed and by building with MK_INFO=yes MFC after: 1 week
* Fix accidental MK_DEBUG_FILES=no addition to NXBMAKE in r275909ngie2014-12-181-1/+1
| | | | | X-MFC with: r275909 Sponsored by: EMC / Isilon Storage Division
* Don't build full clang toolchain or clang extras in stages 1-3 of buildworldngie2014-12-181-3/+7
| | | | | | | MFC after: 1 week Reviewed by: dim (as part of a "larger" diff) Phabric: D1336 Sponsored by: EMC / Isilon Storage Division
* Fix building/installing tests when TESTSBASE != /usr/testsngie2014-12-181-3/+6
| | | | | | | | | | | | | | | | | The work in r258233 hardcoded the assumption that tests was the last component of the tests tree by pushing tests as an explicit prefix for the paths in BSD.tests.dist and /usr was the prefix for all tests, per BSD.usr.dist and all of the mtree calls used in Makefile.inc1. This assumption breaks if/when one provides a custom TESTSBASE "prefix", e.g. TESTSBASE=/mytests . One thing that r258233 did properly though was remove "/usr/tests" creation from BSD.usr.dist -- that should have not been there in the first place. That was an "oops" on my part for the work that was originally committed in r241823 MFC after: 2 weeks Phabric: D1301 Reviewed by: imp Sponsored by: EMC / Isilon Storage Division
* Fix sporadic build failures due to race when running make installworldngie2014-12-171-1/+1
| | | | | | | | | | | | | | | when strip gets replaced at install time by adding it to ITOOLS for the default usr.bin/xinstall STRIP_CMD This will fix the failure noted in this Jenkins build step: https://jenkins.freebsd.org/job/Build-UFS-image/688/ This will also fix the issue reported by alfred@ dealing with installing on targets that differ from build hosts (e.g. installing on i386/i386 when built on amd64/amd64) MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Add an UPDATING entry and warning about the change in r274807 to help usersbrooks2014-12-161-0/+2
| | | | | | | transition to the new behavior. Discussed with: jmallett Sponsored by: DARPA, AFRL
* Add makewhatis to ITOOLS if MK_MAN != nongie2014-12-081-0/+5
| | | | | | | | | This will fix installation with differing host targets in installworld, so one can build i386/i386 on an amd64 host, then install to an i386/i386 target Reported by: alfred Phabric: D1280 MFC after: 1 week
* Build gperf with xdev as part of _xb-bootstrap-toolsngie2014-12-081-1/+2
| | | | | | | | | | | | | | | | | | | This will unbreak the build when "env MK_CXX=no make delete-old" has been run on the build host post-r272849 Tested with the following commands: /bin/sh export __MAKE_CONF=/dev/null SRCCONF=/dev/null export MK_CLANG=no MK_CLANG_BOOTSTRAP=no MK_GCC=yes MK_GCC_BOOTSTRAP=yes export MK_GNUCXX=yes TARGET=armv6 TARGET_ARCH=arm make xdev make toolchain make xdev-build sudo -E make xdev-install /usr/armv6-freebsd/usr/bin/cc -dumpmachine | grep arm X-MFC with: r272849 Reported by: Dan Raymond <draymond@foxvalley.net>, gjb
* Build infrastructure for elftoolchain toolsemaste2014-12-011-0/+12
| | | | | | | | | | | | | | | Set WITH_ELFTOOLCHAIN_TOOLS in src.conf to use the elftoolchain version of the following tools: * addr2line * elfcopy (strip / mcs) * nm * size * strings Reviewed by: bapt (earlier version) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D1224
* Slightly alter the handling of LOCAL_LIB_DIRS to skip addition ofbrooks2014-11-211-4/+15
| | | | | | | | | | | | | | | directories in LOCAL_LIB_DIRS if they are subdirectories of directories listed in LOCAL_DIRS. This allows a hierarchy like: foo foo/lib foo/usr.bin foo/usr.sbin to be supported with LOCAL_DIRS=foo LOCAL_DIRS=foo/lib. MFC after: 1 week Sponsored by: DARPA, AFRL
* Add a guard against attempting to invoke the buildenv target with -j# asbrooks2014-11-211-0/+5
| | | | | | | that silently exits rather than doing something useful. MFC after: 1 week Sponsored by: DARPA, AFRL
* Add mv, echo and hostname to the native-xtools target. Missed thesesbruno2014-11-161-0/+3
| | | | | | when profiling. MFC after: 2 weeks
* Flush out many more static binaries that can be used in a jail for buildingsbruno2014-11-161-1/+33
| | | | | | | | | pkgs via poudriere. This removes a significant amount of emulation speeding up run times. Phabric: D1172 Reviewed by: imp MFC after: 2 weeks
* Add more static binaries to the native-xtools target. These help speedsbruno2014-11-131-0/+11
| | | | | | | | | | | | | | | | | | | up the cross builds significantly. adding: bin/sh bin/csh sbin/md5 usr.bin/bzip2 usr.bin/fetch usr.bin/gzip usr.bin/tar usr.bin/unzip usr.bin/xz Phabric: D1146 Reviewed by: imp bdrewery MFC after: 2 weeks
* Fix build race in Makefile.inc1 after r274226 by adding lib/libm__L dependencyngie2014-11-081-1/+1
| | | | | | for gnu/lib/libdialog Sponsored by: EMC / Isilon Storage Division
* For really fast machines, an edge-case may exist where dpv(3) may bedteske2014-11-071-1/+4
| | | | | | | | | | | | | built before contrib dependency, dialog(3). Add dialog(3) to the list of _prebuild_libs to ensure that this does not happen. Tested on: 11.0-CURRENT amd64 @ r274205 Thanks to: kargl, Larry Rosenman <ler@lerctr.org>, ngie, markj Recommended by: ngie Reviewed by: ngie, markj MFC after: 21 days X-MFC-to: stable/10 stable/9 X-MFC-with: 274116 274120 274121 274123 274144 274146 274192 274203
* SUBDIR_DEPENDS__ in lib/Makefile is not working out so well for me.dteske2014-11-061-0/+1
| | | | | | | | | | | Add to using _prebuild_libs in (top-level) Makefile.inc1. NB: Unbreak build yet again (we'll get this right eventually) Reviewed by: markj, ngie Thanks to: ian, markj, ngie, Nikolai Lifanov <lifanov@mail.lifanov.com> MFC after: 21 days X-MFC-to: stable/10 stable/9 X-MFC-with: 274116 274120 274121 274123 274144 274146 274192
* Rename XFLAGS to XCFLAGS and XXFLAGS to XCXXFLAGSbapt2014-10-271-5/+5
| | | | | | | This is less confusing names and actually more reflexting what they are intended to. Discussed with: brooks
* My previous commit exposed an issue as it fixed a differentimp2014-10-221-6/+1
| | | | | | | | | | | | | | | issue. lib/atf isn't a prereq_lib, since it isn't required for other libraries to build. Remove it. The old kludge of always building it had effectively been retired. Since we don't want to build the libraries with the tests when we're bootstrapping, invent MK_TESTS_SUPPORT which normally defaults to the current MK_TESTS value, except when explicitly defined. Make lib/atf depend on it being yes. When building the libraries set MK_TESTS to no, and MK_TESTS_SUPPORT to the current value of MK_TESTS so that later stages of the build work correctly. This should fix (and does for me) people's issues with parallel builds racing between lib/atf and libexec/atf. Since lib/atf is built during the libraries phase, the race disappears.
* Generate both userland and kernel option settings for showconfig.imp2014-10-211-1/+2
| | | | PR: 191920
* You aren't allowed to test WITH_xxx or WITHOUT_xxx here, so remove it.imp2014-10-211-6/+1
| | | | | | | | | | | Even if you were allowed to test for it, the test makes no sense as it always results in adding -DWITH_ATF unless WITH_ATF was already defined. But if MK_ATF != no, then we know it was defined. This, in turn, caused tools/build/options/makemake always think WITH_ATF is the default, which removed control of that from sys.conf.mk. To get the intent of the deleted comment, another mechanism is required, assuming that the intent of that comment is desirable.
* Make the external toolchain support grows to the knowleged of XXFLAGS for ↵bapt2014-10-211-1/+4
| | | | | | | | | | | C++ dedicated flags and DEPFLAGS for mkdep flags Pass the path to the libc++ headers in both, enforce the gnu++11 standard in the XXFLAGS to satisfy libc++ requirements pass the libc++ objectdir as a location where to find libraries so it can find libstdc++.so and libstdc++.A Reviewed by: imp
OpenPOWER on IntegriCloud