summaryrefslogtreecommitdiffstats
path: root/share/mk
Commit message (Collapse)AuthorAgeFilesLines
* Sort default option listsemaste2012-12-211-6/+6
|
* No reason to install debug data with the schg flagemaste2012-12-181-1/+1
|
* Hide OBJCOPY and others in POSIX modeemaste2012-12-171-1/+1
| | | | Submitted by: Garrett Cooper
* Put shared library debug info into separate .symbols fileemaste2012-12-152-2/+22
| | | | Sponsored by: ADARA Networks
* Minor refactoring prior to .symbols file changesemaste2012-12-142-14/+9
| | | | | | | | - Combine .if x and .if !x using .else - Separate out beforelinking dependency - Add comments to clarify .if nesting Sponsored by: ADARA Networks
* Change the default to 'cru' for speed reasons.eadler2012-12-061-1/+1
| | | | | | | Submitted by: Erik Cederstrand <erik@cederstrand.dk> Reviewed by: imp, toolchain@ Approved by: cperciva MFC after: 2 weeks
* Clean up hardcoded ar(1) flags in the tree to use the global ARFLAGS ineadler2012-12-061-5/+5
| | | | | | | | | | | | share/mk/sys.mk instead. This is part of a medium term project to permit deterministic builds of FreeBSD. Submitted by: Erik Cederstrand <erik@cederstrand.dk> Reviewed by: imp, toolchain@ Approved by: cperciva MFC after: 2 weeks
* Fix typos in the previous commit.jkim2012-12-041-2/+2
|
* Tidy up bsd.cpu.mk for X86 CPUs:jkim2012-12-041-31/+43
| | | | | | | | | | | | | | | | | | | | - Do not limit recent processors to "prescott" class for i386 target. There is no reason for this hack because clang is default now. On top of that, it will only grow indefinitely over time. - Add more CPUTYPEs, i.e., "athlon-fx", "core-avx2", "atom", "penryn", and "yonah". Note "penryn" and "yonah" are intentionally undocumented because they are not supported by gcc and marked deprecated by clang. - Add more CPUTYPE aliases, i.e., "barcelona" (-> amdfam10), "westmere" and "nehalem" (-> corei7). Note these are intentionally undocumented because they are not supported by (base) gcc and/or clang. However, LLVM (backend) seems to "know" the differences. Most likely, they were deprecated with other vendor code names and clang did not bother implementing them at all. - Add i686 to MACHINE_CPU for "c3-2" (VIA Nehemiah). Both gcc & clang treat it like an i686-class processor. - Add IDT "winchip2" and "winchip-c6" for completeness (undocumented). - Order processors per make.conf example, i.e., CPU vendors and models. - Tidy up make.conf example, i.e., remove "by gcc" (because we have aliases) and remove "prescott" from AMD64 architecture (because it is not correct).
* Remove fictitious support for 80386-class CPUs from bsd.cpu.mk and make(1).jkim2012-12-031-27/+22
| | | | | | It was removed from head more than 8 years ago (see r137784 and r137785). Reviewed by: imp, delphij, dim
* If .PARSEDIR is defined we have bmake, and CTFCONVERT_CMD can be empty.sjg2012-11-221-1/+1
| | | | | PR: 172440 Approved by: marcel (mentor)
* INSTALL_AS_USER: output of id -un will never match 0 so use id -usjg2012-11-221-2/+5
| | | | | | and USER for BINOWN etc. Approved by: marcel (mentor)
* Do not expose LIBCXXRT and LIBCPLUSPLUS in bsd.libnames.mk, ifdim2012-11-201-0/+2
| | | | | | | WITHOUT_LIBCPLUSPLUS is specified. Submitted by: Garrett Cooper <yanegomi@gmail.com> MFC after: 3 days
* Add x86 CPUs supported by clang on head.jkim2012-11-191-9/+35
| | | | | Reviewed by: arch (silence) X-MFC: r242624
* Install bsd.progs.mk, needed by bsd.test.mk and thus by atf.test.mk.marcel2012-11-171-0/+1
|
* Add ATF and reformat to ease reviewssjg2012-11-071-13/+43
| | | | Approved by: marcel (mentor)
* Enable ATF testing.sjg2012-11-073-0/+232
| | | | | Submitted by: Garrett Cooper Approved by: marcel (mentor)
* Latest progs.mk from crufty.net for ATFsjg2012-11-071-329/+67
| | | | Approved by: marcel (mentor)
* Fix typo in bsd.compiler.mk.dim2012-11-061-1/+1
|
* Allow CC to be gcc46 or similar by matching gcc*.brooks2012-11-051-5/+5
| | | | | Don't test the value of the :M matches, either the string matches or does not.
* After years of hard work by many FreeBSD and LLVM developers, makebrooks2012-11-051-1/+6
| | | | | | clang the default compiler on i386 and amd64 systems. Special thanks to: dim, ed, rdivacky
* Add ATF to the build. This is may be a bit rought around the egdes,marcel2012-10-223-0/+353
| | | | | | | | | | | | | | | | | but committing it helps to get everyone on the same page and makes sure we make progress. Tinderbox breakages that are the result of this commit are entirely the committer's fault -- in other words: buildworld testing on amd64 only. Credits follow: Submitted by: Garrett Cooper <yanegomi@gmail.com> Sponsored by: Isilon Systems Based on work by: keramida@ Thanks to: gnn@, mdf@, mlaier@, sjg@ Special thanks to: keramida@
* Revert r241752. The claim that it's more correct while at the same timemarcel2012-10-201-5/+4
| | | | causing a build breakage is interesting to say the least.
* Improve upon the previous commit to fix the yacc rule.marcel2012-10-191-4/+5
| | | | | | | | | 1. Have the resulting C file depend on the resulting H file as it should be. Touch the C file to make sure the C file is newer than the H file to keep make happy. 2. Apply the same fix to the other instance of .ORDER, missed in the previous commit.
* Disconnect non-MPSAFE SMBFS from the build in preparation for droppingattilio2012-10-181-1/+0
| | | | | | | | | | | | | GIANT from VFS. In addition, disconnect also netsmb, which is a base requirement for SMBFS. In the while SMBFS regular users can use FUSE interface and smbnetfs port to work with their SMBFS partitions. Also, there are ongoing efforts by vendor to support in-kernel smbfs, so there are good chances that it will get relinked once properly locked. This is not targeted for MFC.
* Disconnect non-MPSAFE NWFS from the build in preparation for droppingattilio2012-10-172-8/+0
| | | | | | | | | | | | GIANT from VFS. In addition, disconnect also netncp, which is a base requirement for NWFS. In the possibility of a future maintenance of the code and later readd to the FreeBSD base, maybe we should think about a better location for netncp. I'm not entirely sure the / top location is actually right, however I will let network people to comment on that more specifically. This is not targeted for MFC.
* - Remove WITH_GNU_SORT supportgabor2012-10-131-1/+0
|
* Add support for bmake. This includes:marcel2012-10-066-4/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Don't do upgrade_checks when using bmake. As long as we have WITH_BMAKE, there's a bootstrap complication in ths respect. Avoid it. Make the necessary changes to have upgrade_checks work wth bmake anyway. 2. Remove the use of -E. It's not needed in our build because we use ?= for the respective variables, which means that we'll take the environment value (if any) anyway. 3. Properly declare phony targets as phony as bmake is a lot smarter (and thus agressive) about build avoidance. 4. Make sure CLEANFILES is complete and use it on .NOPATH. bmake is a lot smarter about build avoidance and should not find files we generate in the source tree. We should not have files in the repository we want to generate, but this is an easier way to cross this hurdle. 5. Have behavior under bmake the same as it is under make with respect to halting when sub-commands fail. Add "set -e" to compound commands so that bmake is informed when sub-commands fail. 6. Make sure crunchgen uses the same make as the rest of the build. This is important when the make utility isn't called make (but bmake for example). 7. While here, add support for using MAKEOBJDIR to set the object tree location. It's the second alternative bmake looks for when determining the actual object directory (= .OBJDIR). Submitted by: Simon Gerraty <sjg@juniper.net> Submitted by: John Van Horne <jvanhorne@juniper.net>
* Add bmake to the build and allow it to be installed as make(1) insteadmarcel2012-10-061-0/+1
| | | | | | | | of FreeBSD's make by setting WITH_BMAKE. The WITH_BMAKE build makes it easy for people to switch while working out the kinks -- think ports tree here. The option will be removed in due time. Submitted by: Simon Gerraty (sjg@juniper.net)
* Add a COMPILER_FEATURES variable that is set in bsd.compiler.mk.brooks2012-09-262-1/+33
| | | | | | | | | When the compiler is clang add c++11 to COMPILER_FEATURES. When the compiler supports c++11, default to building libc++. This will not impact the compliation of programs, but will make it easier for users with clang compiled systems to test libc++ by passing -stdlib=libc++ to their c++ compliations.
* Introduce a new make variable COMPILER_TYPE that specifies whatbrooks2012-09-133-15/+35
| | | | | | | | | | | | | | | | | | | | type of compiler is being used (currently clang or gcc). COMPILER_TYPE is set in the new bsd.compiler.mk file based on the value of the CC variable or, should it prove informative, by running ${CC} --version and examining the output. To avoid negative performance impacts in the default case and correct value for COMPILER_TYPE type is determined and passed in the environment of submake instances while building world. Replace adhoc attempts at determining the compiler type by examining CC or MK_CLANG_IS_CC with checks of COMPILER_TYPE. This eliminates bootstrapping complications when first setting WITH_CLANG_IS_CC. Sponsored by: DARPA, AFRL Reviewed by: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>, imp, linimon (with some modifications post review) MFC after: 2 weeks
* Add MK_KDUMP.obrien2012-09-121-0/+2
|
* When using -stdlib=libc++, add the correct dependency to .depend indim2012-08-251-0/+4
| | | | | | | bsd.prog.mk. Submitted by: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp> MFC after: 2 weeks
* Make sure bsd.dep.mk does not filter out -stdlib=xxx from CXXFLAGS,dim2012-08-231-2/+4
| | | | | | since this determines parts of the C++ include path. MFC after: 1 week
* Merging of projects/armv6, part 3gonzo2012-08-153-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | r238211: Support TARGET_ARCH=armv6 and TARGET_ARCH=armv6eb This adds a new TARGET_ARCH for building on ARM processors that support the ARMv6K multiprocessor extensions. In particular, these processors have better support for TLS and mutex operations. This mostly touches a lot of Makefiles to extend existing patterns for inferring CPUARCH from ARCH. It also configures: * GCC to default to arm1176jz-s * GCC to predefine __FreeBSD_ARCH_armv6__ * gas to default to ARM_ARCH_V6K * uname -p to return 'armv6' * make so that MACHINE_ARCH defaults to 'armv6' It also changes a number of headers to use the compiler __ARM_ARCH_XXX__ macros to configure processor-specific support routines. Submitted by: Tim Kientzle <kientzle@freebsd.org>
* Import bsdconfig(8) as a replacement for the post-install abilities ofdteske2012-07-141-0/+1
| | | | | | | | deprecated sysinstall(8). NOTE: WITH_BSDCONFIG is currently required. Submitted by: Devin Teske (dteske), Ron McDowell <rcm@fuzzwad.org> Reviewed by: Ron McDowell <rcm@fuzzwad.org> Approved by: Ed Maste (emaste)
* Fix build after r237997.glebius2012-07-021-0/+1
|
* - Switch to BSD sort as default sort. GNU sort will still be installed asgabor2012-06-271-1/+1
| | | | | | | | | "gnusort". Most of the BSD sort development work was done by Oleg Moskalenko <oleg.moskalenko@citrix.com>. - GNU grep can be set to default by setting WITH_GNU_GREP. It will cause BSD sort to be installed as "bsdsort". Portbuild tested by: linimon
* Add -DWITH_INSTALL_AS_USER to the source build (naming matches theobrien2012-06-261-0/+12
| | | | | | | | | | same functionality of The Ports Collection). This sets BINOWN, BINGRP, etc... to match current user. This this allows 'install', as used in 'make install', to succeed (assuming user has write permissions). Submitted by: Simon J Gerraty <sjg@juniper.net> Discussed on: freebsd-arch
* Ensure crunchen uses the same make binary as the rest of the build.obrien2012-06-251-1/+1
| | | | Submitted by: Simon Gerraty <sjg@juniper.net>
* In CTFCONVERT_CMD initialization, check that ${MAKE_VERSION} is definedrmh2012-06-161-1/+1
| | | | | | before using it. Bootstrap make (as built by usr.bin/make/Makefile.dist) does not define this variable, but it needs to parse bsd.own.mk in order to build a complete make.
* Amend r227797 by also passing ${STATIC_CXXFLAGS} for the other supporteddim2012-06-091-1/+1
| | | | | | C++ file extensions. MFC after: 3 days
* During buildworld and buildkernel, define EARLY_BUILD in the earlierdim2012-06-031-3/+6
| | | | | | | | | | | | | | | | | | stages (build-tools, cross-tools, etc) of the build, so we can detect in bsd.*.mk whether to pass compiler-specific flags to ${CC}. In particular, this commit will allow using WITH_CLANG_IS_CC when the base compiler is still gcc, and when ${CC}, ${CXX} and ${CPP} are left at their defaults. The early stages will then be built using gcc, and no clang-specific flags will be passed to it. The later stages will be built as usual. The EARLY_BUILD define can also serve other uses, such as building the world stage C++ executables with libc++ instead of libstdc++: during the early build stages, we cannot assume libc++ is already available, so we must still build with libstdc++ at that time. MFC after: 1 week
* Fix an inconsistency I just ran into for LDADD and DPADD. The descriptionmarcel2012-05-241-2/+2
| | | | | | for both of them use different, and presumably wrong, variables in the example. They set LDFILES and SRCLIB respectively. I guess that's what DPADD and LDADD were called first ...
* Add build opton MK_LS_COLORS to control whether ls(1) supports colorsmarcel2012-05-191-0/+1
| | | | | | | (and thus needs to depend on libtermcap). Embedded systems may not want or need colors. Obtained from: Juniper Networks, Inc.
* Add build option MK_ED_CRYPTO to control whether ed(1) is to have themarcel2012-05-191-0/+1
| | | | | | | ability to encrypt/decrypt files. Embedded systems can typically have OpenSSL, but not for ed(1) to use it. Obtained from: Juniper Networks, Inc.
* Add missing LIBPROCSTAT.marcel2012-05-191-0/+1
|
* Import work done under project/nand (@235533) into head.gber2012-05-171-0/+1
| | | | | | | | | | | | | | The NAND Flash environment consists of several distinct components: - NAND framework (drivers harness for NAND controllers and NAND chips) - NAND simulator (NANDsim) - NAND file system (NAND FS) - Companion tools and utilities - Documentation (manual pages) This work is still experimental. Please use with caution. Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Networks
* - Hook up BSD sort to the build. By default, it will be installed asgabor2012-05-111-0/+1
| | | | | | "bsdsort" and GNU sort will be the default "sort". When WITH_BSD_SORT is set, BSD sort will be the default "sort" and GNU sort will be installed as "gnusort".
* Revert r234656, and apply a proper fix for binutils PR 10474, whichdim2012-05-071-2/+1
| | | | | | | | | | | | caused linking clang on 32-bit PowerPC to fail with "relocation truncated to fit: R_PPC_REL24" errors. Original diffs (relicensed under GPLv2 with permission from author): http://sourceware.org/git/?p=binutils.git;a=commit;h=1fd262ff7d7ea5adf4894c6b960e092e7e43e3cd http://sourceware.org/git/?p=binutils.git;a=commit;h=053c49fbff58bd33bd0d12200ea61302f92caceb Tested by: andreast MFC after: 1 week
OpenPOWER on IntegriCloud