summaryrefslogtreecommitdiffstats
path: root/share/mk
Commit message (Collapse)AuthorAgeFilesLines
...
* Complete the integration of tbemd branch into head.imp2010-11-102-11/+5
| | | | | | | | | | | | | | | | TARGET_BIG_ENDIAN is now completely dead, except where it was originally supposed to be used (internally in the toolchain building). TARGET_ARCH has changed in three cases: (1) Little endian mips has changed to mipsel. (2) Big endian mips has changed to mipseb. (3) Big endian arm has changed to armeb. Some additional changes are needed to make 'make universe' work on arm and mips after this change, so those are commented out for now. UPDATING information will be forthcoming. Any remaining rough edges will be hammered out in -current.
* - Introduce WITH_GPIO knob and disable building gpioctlgonzo2010-10-051-0/+1
| | | | by default. Most systems do not need it.
* Prefer MACHINE_CPUARCH to MACHINE_ARCH unless there's a good reason...imp2010-09-131-18/+18
|
* Add a comment describing where to include bsd.dtrace.mk.rpaulo2010-09-111-0/+1
| | | | Sponsored by: The FreeBSD Foundation
* Fix bugs introduced in the previous rev:rpaulo2010-09-101-5/+9
| | | | | | | * add a phatom target for the DTRACEOBJS * when invoking DTrace, don't add DTRACEOBJS to the command line. Sponsored by: The FreeBSD Foundation
* Fix typo in previous commit.rpaulo2010-09-101-1/+1
|
* Add bsd.dtrace.mk. This allows userland programs and libraries torpaulo2010-09-102-1/+57
| | | | | | | | | define USDT probes on a provider.d file and then use this new make infrastructure to build the corresponding header file and object file. This will only take effect when the user defines WITH_DTRACE when building. Sponsored by: The FreeBSD Foundation
* Check the existence of a 'beforelinking' target and make the resultingrpaulo2010-09-102-1/+13
| | | | | | | program or library depend on that before doing the final linking. This will be needed by DTrace. Sponsored by: The FreeBSD Foundation
* Add the DTRACE variable that points to the executable.rpaulo2010-09-101-0/+1
| | | | Sponsored by: The FreeBSD Foundation
* Now that we default to the proper endian, we don't need these for mipsimp2010-08-281-7/+0
|
* MFtbemd:imp2010-08-232-3/+4
| | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform.
* - Change default grep back to GNU version. BSD grep can be built with thegabor2010-08-231-1/+1
| | | | | | | | WITH_BSD_GREP knob. - Bump __FreeBSD_version Requested by: dougb Approved by: delphij (mentor)
* Remove LIBELF_PIC.rpaulo2010-08-211-1/+0
| | | | Sponsored by: The FreeBSD Foundation
* Add the definition of LIBELF_PIC.rpaulo2010-08-211-0/+1
| | | | Sponsored by: The FreeBSD Foundation
* For every instance of '.if ${CC} == "foo"' or '.if ${CC} != "foo"' inrpaulo2010-08-173-5/+5
| | | | | | | | | | | | | Makefiles or *.mk files, use ${CC:T:Mfoo} instead, so only the basename of the compiler command (excluding any arguments) is considered. This allows you to use, for example, CC="/nondefault/path/clang -xxx", and still have the various tests in bsd.*.mk identify your compiler as clang correctly. ICC if cases were also changed. Submitted by: Dimitry Andric <dimitry at andric.com>
* Make sure any -U CFLAGS are not filtered out when calling mkdep, asrpaulo2010-08-171-6/+6
| | | | | | | | gnu/usr.bin/cc/libiberty first defines the PREFIX macro, and then undefines it again, so mkdep with clang complains. Submitted by: Dimitry Andric <dimitry at andric.com> Reviewed by: ru
* Fix buildworld -DNO_CLEAN when using with Perforce, which marks files aswill2010-08-121-2/+2
| | | | | | | read-only by default, meaning files copied can't be overwritten next time. Reviewed by: imp Approved by: ken (mentor)
* Add LIBRTLD_DB.rpaulo2010-07-311-0/+1
| | | | Sponsored by: The FreeBSD Foundation
* Add missing escape characthers.rpaulo2010-07-302-2/+2
| | | | Pointed out by: b.f.
* Fix previous commit: I forgot to include parenthesis.rpaulo2010-07-303-66/+66
| | | | Submitted by: anonymous
* When building WITH_CTF=1, print the ctf executable that's going to berpaulo2010-07-293-33/+99
| | | | | | | run. This makes the 'ctfconvert' and 'ctfmerge' programs show up during a build when compiling a kernel, a library or a program. Sponsored by: The FreeBSD Foundation
* Add BSD grep to the base system and make it our default grep.gabor2010-07-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Deliverables: Small and clean code (1,4 KSLOC vs GNU's 8,5 KSLOC), lower memory usage than GNU grep, GNU compatibility, BSD license. TODO: Performance is somewhat behind GNU grep but it is only significant for bigger searches. The reason is complex, the most important factor is that GNU grep uses lots of optimizations to improve the speed of the regex library. First, we need a modern regex library (practically by adopting TRE), add support for GNU-style non-standard regexes and then reevalute the performance issues and look for bottlenecks. In the meantime, for those, who need better performance, it is possible to build GNU grep by setting WITH_GNU_GREP. Approved by: delphij (mentor) Obtained from: OpenBSD (http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/grep/), freegrep (http://github.com/howardjp/freegrep) Sponsored by: Google SoC 2008 Portbuild tests run by: kris, pav, erwin Acknowledgements to: fjoe (as SoC 2008 mentor), everyone who helped in reviewing and testing
* Minor modifications to know what to do with powerpc64.nwhitehorn2010-07-103-2/+5
|
* Also install the new bsd.arch.inc.mk filed. Missed in r204020.bz2010-07-061-0/+1
| | | | Reviewed by: imp
* Do not set WITH_FDT by default based on arch, as this does not work forraj2010-06-131-11/+1
| | | | | | | | | | a bootstrap stage tool. FDT-enabled platforms will have to specify WITH_FDT explicitly at buildworld time for now until TBEMD is complete, which is going to provide means for such arch based selection of build components. Discussed with: imp
* Merge from tbemdimp2010-06-111-0/+11
|\ | | | | | | | | | | | | Enhance Makefile.inc processing, when asked for, to include the most specific (MACHINE specific) to least specific (MACHINE_CPUARCH). Reviewed by: arch@ (mostly silence though)
| * svn merge svn+ssh://svn.freebsd.org/base/head@208996imp2010-06-104-8/+37
| |\
| * \ merge from head, part 6 of manyimp2010-04-125-103/+51
| |\ \
| * \ \ Merge with latest head.imp2010-03-022-10/+3
| |\ \ \
| * \ \ \ Merge from head.imp2010-02-183-2/+6
| |\ \ \ \
| * | | | | Include Makefile.$MACHINE, if it exists, otherwiseimp2010-02-171-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Include Makefile.$MACHINE_ARCH, if it exists, otherwise Include Makefile.$MACHINE_CPUARCH, if it exists, otherwise do nothing
| * | | | | Introduce MACHINE_CPUARCH.imp2010-02-035-41/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MACHINE is the specific kernel architecture for this machine. MACHINE_ARCH is the specific CPU type (abi, word size, etc). MACHINE_CPUARCH is the family of CPUs that's supported. Most of the tree conflates MACHINE_ARCH and MACHINE_CPUARCH since historically they have been identical. However, there's now a reason to to split the two concepts. NetBSD calls this MACHINE_CPU, but that's already used for something else in FreeBSD, so MACHINE_CPUARCH was selected instead. However, the sources in the tree have had a KLUDGE in the tree called TARGET_BIG_ENDIAN to select which endian to compile the code for. However, this is a cumbersome and awkward solution. MACHINE_ARCH really does need to be different for different endian because users use it for things like their path. Yet, the source tree also used MACHINE_ARCH to figure out the MD code to use. This source often supports multiple MACHINE_ARCHs. 'mips' supports 32 (and soon 64) bit word sizes as well as big and little endian. 'arm' support both endians. powerpc will soon support both 32-bit and 64-bit. These patches start to unwind this confusion. It implements MACHINE_ARCH of mipsel, mipseb for the two endians of MIPS, as well as arm and armeb for ARM. The names for ARM are historical accidents (ARM was primarily little endian until relatively recently). These names follow the NetBSD convetions. With these changes, "make buildworld TARGET=mips TARGET_ARCH=mipsel" finishes. armeb and mipseb should work, but haven't been tested yet. Committed as one big chunk so that people can comment on the patches as a whole and suggest improvements.
* | | | | | Merge from tbemd branch:imp2010-06-111-1/+13
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce MACHINE_CPUARCH. Many different MACHINE_ARCHs will be built from one MACHINE_CPUARCH. This will allow us to move to a more standard MACHINE_ARCH for mips and arm which exist in many different endian variants, and for powerpc where both 32 and 64 bit binaries are generated from the same sources. Reviewed by: arch@ (mostly silence though)
* | | | | Hook clang into the build on i386/amd64/powerpc.rdivacky2010-06-091-0/+15
| | | | | | | | | | | | | | | | | | | | Approved by: ed (mentor)
* | | | | Use MACHINE_ARCH instead of TARGET_ARCH.raj2010-05-261-2/+1
| | | | | | | | | | | | | | | | | | | | Pointed out by: imp
* | | | | Introduce a new build knob for Flattened Device Tree support.raj2010-05-251-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: imp Sponsored by: The FreeBSD Foundation
* | | | | o Remove EoL w/spaces introduced in the last commit.maxim2010-05-221-5/+5
| | | | | | | | | | | | | | | | | | | | Spotted by: uqs
* | | | | o Grammar.maxim2010-05-221-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | PR: conf/146827 Submitted by: chris petrik
* | | | | Add a new build option, MAN_UTILS. This option lets you control buildingjkim2010-05-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | utilities and related support files for manual pages, which were previously controlled by MAN. For POLA, the default depends on MAN, i.e., WITHOUT_MAN implies WITHOUT_MAN_UTILS and WITH_MAN implies WITH_MAN_UTILS. This patch is slightly improved by me from: PR: misc/145212
* | | | | Import of liblzma, xz, xzdec, lzmainfo from vendor branchmm2010-05-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for xz and lzma to lesspipe.sh (xzless, lzless) Bump __FreeBSD_version Approved by: delphij (mentor) MFC after: 2 weeks
* | | | | - Take libinstall.a out of pkg_install and make it a proper shared library.flz2010-04-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Rework the wrapper support to check libpkg version as well as pkg_install version. - Add libfetch to _prebuild_libs. - There are no new features introduced. Notes: the API is not stable, so basically, do not use libpkg in your projects for now. Also there's no manpage for libpkg yet, because the API will change drastically. I repeat, do not use libpkg for now.
* | | | | When CPUTYPE is defined to any value, on amd64 platform "mmx" isdelphij2010-04-211-1/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | available through MACHINE_CPU, indicating the CPU supports that feature, as done by revision 138685. This changeset adds "mmx" into the default amd64 MACHINE_CPU list when no CPUTYPE is specified to provide consistent behavior. PR: amd64/145593 Submitted by: mm MFC after: 2 weeks
* | | | WITH_CTF can now be specified in src.conf (not recommended, therenetchild2010-04-024-102/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | are some problems with static executables), make.conf (would also affect ports which do not use GNU make and do not override the compile targets) or in the kernel config (via "makeoptions WITH_CTF=yes"). Additional (related) changes: - propagate WITH_CTF to module builds - do not add -g to the linker flags, it's a noop there anyway (at least according to the man page of ld) - do not add -g to CFLAGS unconditionally we need to have a look if it is really needed (IMO not) or if there is a way to add it only when WITH_CTF is used Note: ctfconvert / ctfmerge lines will not appear in the build output, to protect the innocent (those which do not build with WITH_CTF would see the shell-test and may think WITH_CTF is used). Reviewed by: imp, jhb, scottl (earlier version) Discussed on: arch@
* | | | Remove GNU cpio after fix of CVE-2010-0624.delphij2010-03-261-1/+0
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that this is actually a no-op for most users, as this GNU cpio was broken on -HEAD and 8-STABLE since last March until the recent fix. FreeBSD 8.0+ uses BSD cpio by default and the code is being actively maintained. Blessed by: kientzle With hat: secteam MFC after: 3 days
* | | -mabi-calls and -msoft-float aren't needed eitherimp2010-03-021-1/+1
| | | | | | | | | | | | Submitted by: jmallet@
* | | -mno-dsp hasn't been required for a while now.imp2010-03-021-1/+1
| | |
* | | Fixed missing or broken library dependencies.ru2010-02-251-0/+2
| | |
* | | Kernel module support for mips.neel2010-02-181-2/+0
| |/ |/| | | | | | | | | Reviewed by: gonzo Tested by: Alexandr Rybalko (ray@dlink.ua)
* | Also add DEBUG_FLAGS to CXXFLAGS if defined.marcel2010-02-181-0/+1
| |
* | Allow suppression of -Wcast-align for WARNS>=4 by definingmarcel2010-02-181-1/+4
| | | | | | | | | | | | NO_WCAST_ALIGN. The headers of the standard C++ library are not 64-bit clean and trigger the warning. This prevents use of WARNS>=4 on ia64 for example.
OpenPOWER on IntegriCloud