summaryrefslogtreecommitdiffstats
path: root/share/mk
Commit message (Collapse)AuthorAgeFilesLines
...
* Turn off profiled libs build by default.fjoe2011-11-291-2/+2
| | | | Can be enabled back using WITH_PROFILE=yes in /etc/src.conf
* - fix WITH_CTF when specified in /etc/src.conf [1]fjoe2011-11-294-108/+40
| | | | | | | | | | | | | - CTFCONVERT_CMD=... is a hack (should be defined to empty string instead): make(1) should be taught to ignore empty commands silently in compat mode (as it does in !compat mode, GNU make also silently ignores empty commands) and to skip printing empty commands in !compat mode - config(8) should generate ${NORMAL_CTFCONVERT} invocation without '@': this will allow to simplify kern.pre.mk even more and lessen the number of shell invocations during kernel build when CTF is turned off - WITH_CTF can now be converted to usual MK_CTF=yes/no infrastructure Pointy hat to: fjoe [1]
* Conditionalize ctfconvert/ctfmerge runs on make level (.if/.endif) insteadfjoe2011-11-293-93/+93
| | | | | | of executing a shell on every object or executable/library file. This shaves off more than 30,000 shell invocations during buildworld.
* Allow NO_FOO to override WITH_FOO that could be specified in /etc/src.conf.fjoe2011-11-291-0/+3
| | | | | | This is required to override knobs (e.g. WITH_PROFILE) during buildworld stages in Makefile.inc1 (otherwise the build is stopped due to both WITH_FOO and WITHOUT_FOO defined).
* Fix breakage after r227983; lib/libcxxrt still got built, because it wasdim2011-11-261-2/+1
| | | | | | | | not disabled in the usual way (by adding it to __DEFAULT_NO_OPTIONS in share/mk/bsd.own.mk), and because the test for MK_LIBCPLUSPLUS in Makefile.inc1 was incorrect. Pointy hat to: dim
* Import libc++ / libcxxrt into base. Not build by default yet (usetheraven2011-11-252-0/+4
| | | | | | | | | | | MK_LIBCPLUSPLUS=yes to enable). This is a work-in-progress. It works for me, but is not guaranteed to work for anyone else and may eat your dog. To build C++ using libc++, add -stdlib=libc++ to your CXX and LD flags. Bug reports welcome, bug fixes even more welcome... Approved by: dim (mentor)
* libodialog: disconnect from the build and obsolete.fjoe2011-11-241-1/+0
|
* Add CTF magic to the new .c.o rule.des2011-11-241-0/+3
| | | | MFC after: 3 weeks
* As threatened on -arch, add {SHARED,STATIC}_{C,CXX}FLAGS, which allow ades2011-11-211-4/+10
| | | | | | Makefile to specify different CFLAGS for shared and static libraries. MFC after: 3 weeks
* Connect LLVM/clang to the build on powerpc64. After the binutils 2.17.50nwhitehorn2011-11-211-5/+4
| | | | import, it works without issue.
* Build 'dtc' by default for MIPS.jchandra2011-10-201-2/+3
| | | | | | | The device tree compiler is needed during the kernel build to compile DTS files to DTB. Reviewed by: stas
* Also pass the -ansi flag through to mkdep (requested by bde), and fixdas2011-10-111-2/+2
| | | | a cut-and-paste-o (noticed by rdivacky).
* Pass -std= flags in CFLAGS to mkdep. Without this, preprocessor testsdas2011-10-101-2/+2
| | | | | for particular compiler features might be evaluated differently by mkdep than they would be by cc.
* Revert unapproved commit to bsd.port.mk.crees2011-10-081-16/+0
| | | | | | This would have had more discussion, but it was explicitly rejected at submission by portmgr: http://lists.freebsd.org/pipermail/freebsd-ports/2011-September/070591.html
* - Add a couple of more sed subsitutions needed to get the correctstas2011-10-081-2/+6
| | | | | | | libtool.m4. With these fixes libtool will correctly indentify the system as ELF (and not a.out). - While here, change the substitutions so they're still correctly match freebsd1.x, freebsd2.x etc.
* - ${WRKSRC} might be missing when the autotools fixup is running.stas2011-10-071-2/+2
| | | | | | Account for this. Reported by: Mykola Dzham <i@levsha.me>
* Work around the autotools problem with the 10.0 version.jilles2011-10-041-0/+12
| | | | | | | | | | With this, I can build various ports on a 10.0-CURRENT system without hacking or hiding the version number. This commit should be reverted when there is a cleaner fix in autotools and/or ports/Mk/bsd.port.mk. The original patch is from Ed Schouten but needed some additions.
* Add macros to specify owner, group and mode of config files for installation.se2011-06-271-0/+14
| | | | Submitted by: Chris Rees (crees)
* Add WITHOUT_UTMPX switch to the build system.ed2011-06-171-0/+1
| | | | | | | | | This knob removes the tools that are exclusively used to view and maintain the databases maintained by utmpx, namely last, users, who, wtmpcvt, ac, lastlogin and utxrm. The tool w is not in this list, because it has some other functionality which is unrelated to utmpx; it is hardlinked to the uptime tool.
* Don't pass -o1- to groff(1) by default. If ms(7) formatted documentru2011-06-031-4/+2
| | | | | | | | | | | uses the .RP macro, a separate cover page is created as page 0 which is not otherwise output. The bug was hiding by a hack in troffrc that disables SGR support in grotty(1), which I'm going to remove now. For POLA reasons, still disable SGR support in grotty(1), by passing -P-c to groff(1). If we want SGR sequences in these documents, this can be removed. MFC after: 1 week
* Start to usher INSTALL_NODEBUG hack out the door. Add newimp2011-05-221-0/+1
| | | | | | | WITH{OUT,}_KERNEL_SYMBOLS (defaulting to WITH). In the fullness of time, likely around 2020, INSTALL_NODEBUG will be removed. For now, don't print a warning when using INSTALL_NODEBUG, but that will be coming soon.
* Implement WITH{,OUT}_{GCC,BINUTILS} to provide finer-grained controlimp2011-05-191-0/+4
| | | | | | | over building gcc and binutils. They default to true, unless MK_TOOLCHAIN is no. Reviewed by: ru@
* Backout libinstall.a -> libpkg commit.flz2011-05-171-1/+0
| | | | Discussed with: erwin, brooks, bapt
* Removed unsupported options MK_BINUTILS and MK_GCC that wereru2011-05-101-2/+0
| | | | silently added in r218936.
* Another fallout from r220359: MK_GNU_CPIO was mistakenly re-addedru2011-05-101-2/+1
| | | | after being removed in r205702. Remove it again.
* Introduce two new options MK_INET and MK_INET_SUPPORT analogicallybz2011-04-301-0/+2
| | | | | | | | | | with INET6 equivalents. Patch reather than re-genenerating src.conf (given the current problem with the script that does the re-gen). Reviewed by: gnn Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems MFC after: 2 weeks
* Remove support for the Intel C Compiler from the build infrastructure.dim2011-04-194-49/+8
| | | | | | This support has not worked for several years, and is not likely to work again, unless Intel decides to release a native FreeBSD version of their compiler. ;)
* Remove libobjc and other Objective-C related components, as these aredim2011-04-175-32/+1
| | | | | | extremely outdated, and not used by anything in the base system. Silence from: current@
* Complete WITHOUT_CXX support. It implies WITHOUT_GROFF anduqs2011-04-061-0/+5
| | | | | | | | WITHOUT_CLANG. Don't build clang bootstrap/build-tools depending on this flag. We also keep gperf, devd and libstdc++ around to prevent foot-shooting and to make this a two-way street.
* Make clang default on x86 and powerpc, but not on other architectures.imp2011-04-051-31/+50
| | | | | | | | | | | | | | Make fdt default on arm and powerpc. This now includes cross compiled targets, where before we tried to make it host-based. Also, move the lists of default yes and no options to a variable. In general, only build tools should get this treatment in bsd.own.mk. Also, the use of TARGET* in the bsd.*mk files is discouraged, but necessary here due to the ordering of things in buildworld. We make the native case work by testing MACHINE_ARCH after TARGET_ARCH.
* - Merge in OFED 1.5.3 from projects/ofed/headjeff2011-03-211-1/+2
|
* Add ssse3 capability for CPUTYPE=core2 to MACHINE_CPU in bsd.cpu.mkmm2011-03-141-2/+8
| | | | MFC after: 2 weeks
* Add AMD Geode CPU type to bsd.cpu.mk and examples/etc/make.confmm2011-03-071-3/+3
| | | | | | | For CPUTYPE=core2 use -march=core2 PR: gnu/155308 MFC after: 2 weeks
* To be able to use printf extensions we need to turn off gcc format checking.pjd2011-03-071-0/+3
| | | | | | | | Following the convention of NO_WERROR and NO_WCAST_ALIGN add NO_WFORMAT, which, when defined in Makefile, turns off compile-time format checking (by adding -Wno-format), but still allows to use high WARNS level. MFC after: 2 weeks
* Add the BSD-licensed Citrus iconv to the base system with default offgabor2011-02-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setting. It can be built by setting the WITH_ICONV knob. While this knob is unset, the library part, the binaries, the header file and the metadata files will not be built or installed so it makes no impact on the system if left turned off. This work is based on the iconv implementation in NetBSD but a great number of improvements and feature additions have been included: - Some utilities have been added. There is a conversion table generator, which can compare conversion tables to reference data generated by GNU libiconv. This helps ensuring conversion compatibility. - UTF-16 surrogate support and some endianness issues have been fixed. - The rather chaotic Makefiles to build metadata have been refactored and cleaned up, now it is easy to read and it is also easier to add support for new encodings. - A bunch of new encodings and encoding aliases have been added. - Support for 1->2, 1->3 and 1->4 mappings, which is needed for transliterating with flying accents as GNU does, like "u. - Lots of warnings have been fixed, the major part of the code is now WARNS=6 clean. - New section 1 and section 5 manual pages have been added. - Some GNU-specific calls have been implemented: iconvlist(), iconvctl(), iconv_canonicalize(), iconv_open_into() - Support for GNU's //IGNORE suffix has been added. - The "-" argument for stdin is now recognized in iconv(1) as per POSIX. - The Big5 conversion module has been fixed. - The iconv.h header files is supposed to be compatible with the GNU version, i.e. sources should build with base iconv.h and GNU libiconv. It also includes a macro magic to deal with the char ** and const char ** incompatibility. - GNU compatibility: "" or "char" means the current local encoding in use - Various cleanups and style(9) fixes. Approved by: delphij (mentor) Obtained from: The NetBSD Project Sponsored by: Google Summer of Code 2009
* Back out 218933 and 281934. The easy cases still worked, but someimp2011-02-221-1/+16
| | | | | hard cases broke in worse ways than the status quo. Back them out until that can be resolved.
* Testing based on MACHINE_ARCH is problematic. Default to yes to buildimp2011-02-221-14/+1
| | | | | clang. A separate change will fix buildworld to default to yes or no based on the target.
* Add opteron-sse3, athlon64-sse3 and k8-sse3 cpu types to bsd.cpu.mk.mm2011-02-201-2/+9
| | | | | | | | | - add "sse3" to MACHINE_CPU for the new cpu types - for i386, default to CPUTYPE=prescott for the new cpu types PR: gnu/154906 Discussed with: kib, kan, dim MFC after: 2 weeks
* Add LIBEXECDIR to the bsd.own.mk vars, pointing to /usr/libexec by defaultkeramida2011-02-101-0/+3
| | | | | | | | | | | Some of the patches we are preparing for porting ATF from NetBSD refer to '/usr/libexec' several times. Instead of repeating the path all over the place, add ${LIBEXECDIR} to match ${LIBDATADIR} and reduce the redundancy of the relevant makefiles. Submitted by: Garrett Cooper <yanegomi@gmail.com> Approved by: ru MFC after: 1 month
* Update dialog to version 20100428. This changes the license under whichnwhitehorn2011-01-121-0/+1
| | | | | | | | | | | | | dialog is distributed from GPLv2 to LGPLv2 and introduces a number of new features and a new and better libdialog API. The existing libdialog will be kept temporarily as libodialog for compatibility purposes until sade, sysinstall and tzsetup have been either updated or replaced. __FreeBSD_version is now 900030. Discussed on: -current Approved by: core Obtained from: http://invisible-island.net/dialog
* Retire TARGET_ABI.imp2011-01-072-3/+3
| | | | | | | | | | | | | | | Implement MACHINE_ARCH=mips64e[lb] to build N64 images. This replaces MACHINE_ARCH=mipse[lb] TARGET_ABI=n64. MACHINE_ARCH=mipsn32e[lb] has been added, but currently requires WITHOUT_CDDL due to atomic issues in libzfs. I've not investigated this much, but implemented this to preserve as much of the TARGET_ABI functionality that I could. Since its presence doesn't affect the working cases, I've kept it in for now. Added mips64e[lb] to make universe, so more kernels build. And I think this (finally) closes the curtain on the tbemd tree.
* Introduce make variable ACFLAGS used to supply additional flags tokib2011-01-072-6/+8
| | | | cc driver when compiling assembler source file that is preprocessed.
* - Add CPUTYPE support for sparc64. The net result is that it's now possiblemarius2010-12-301-2/+28
| | | | | | | | | to let the compiler optimize for the famility of UltraSPARC-III CPUs as the default already was to optimize for UltraSPARC-I/II and generating generic 64-bit V9 is mainly for reference purposes. At least for SPARC64-V CPUs code optimized for UltraSPARC-I/II still is the most performant one. Thanks go to Michael Moll for testing SPARC64-V. - Move a booke MACHINE_CPU bit into the right section.
* Enable build of FDT components by default. dtc is a required build toolnwhitehorn2010-12-221-1/+1
| | | | | | | | for all FDT-enabled kernels, and having it off by default means that building these kernels fails by default. This fixes FDT-related build failures in make universe on ARM and PowerPC. Reviewed by: imp
* Re-enable generating links.adrian2010-11-161-11/+8
|
* .. and then notice that the list of mk files is ordered, and update to suit.adrian2010-11-161-2/+2
|
* Add in forgotten install rule.adrian2010-11-161-1/+1
|
* This case is actually powerpc specific, and doesn't apply to powerpc64.imp2010-11-141-1/+1
| | | | Submitted by: nathanw@
* Break out the rules which generate crunchgen'ed binaries into a separateadrian2010-11-131-0/+160
| | | | | | | | | | | | | | | | .mk file so they can be reused. Introduce a new option, CRUNCH_BUILDTOOLS, which lists the binaries that require tools built in the local architecture. sh and csh both require this. It was previously hardcoded in rescue/rescue/Makefile . Introduce a new option, CRUNCH_SHLIBS, which lists the shared libraries to link against. These override the static libraries listed in CRUNCH_LIBS. Some build environments may wish to use a handful of shared libraries (eg libc.so) so other small, dynamic binaries can be run in the environment. Remove the now-shared code from rescue/rescue/Makefile and introduce the CRUNCH_BUILDTOOLS option for the above shells.
* Fix typo, and re-wrap paragraph.dim2010-11-111-5/+5
|
OpenPOWER on IntegriCloud