summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
Commit message (Collapse)AuthorAgeFilesLines
* In all situations where we need to bootstrap yacc, we also need todes2013-02-251-1/+2
| | | | | | | | | | bootstrap liby. This was not readily apparent, because a normal 'make buildworld' or 'make toolchain' builds liby before building anything that uses yacc. However, 'make kernel-toolchain' does not build headers or libraries, so it was not possible to build a kernel from head on, say, stable/9 without first building the complete toolchain. MFC after: 1 week
* - Fix libmd dependency. It is needed in the bootstrap library list becausehrs2013-02-141-0/+1
| | | | | | | usr.bin/xinstall depends on it. - Remove libutil from usr.bin/xinstall/Makefile. No symbol was actually used. Reviewed by: brooks
* Add nmtree to ITOOLS if it is installed on the host instead of keying offbrooks2013-02-091-2/+4
| | | | | | | the BOOTSTRAPPING variable. The previous test was wrong because BOOTSTRAPPING is 0 in most cases. Tested by: db
* Fix xdev by using the install shell script as it knows about the -landrew2013-02-041-1/+2
| | | | argument thile the local version install may not.
* - Add CHECKSUM.* support in Makefile[1].hrs2013-02-031-4/+6
| | | | | | | | | | | | - Use ln -fs to create a symlink. - Remove pkgadd for docports. - Use WITHOUT_JADETEX=yes instead of WITH_JADETEX=no. - Add {WORLD,KERNEL}_FLAGS to [BTWK]MAKE. - Use makefs(8) and gpart(8) for sparc64 ISO image[2]. - Add publisher option to makefs(8)[2]. Based on work by: gjb[1] Discussed with: marius, nwhitehorn[2]
* Log the addition of login.conf.db, passwd, pwd.db, and spwd.db via cat -l.brooks2013-01-291-2/+7
| | | | Make cat a bootstrap tool to facilitate this.
* Fix installworld when nmtree is not on the host by only adding it tobrooks2013-01-291-3/+5
| | | | | | ITOOLS when we will be using the host copy. Fix installkernel when -DNO_ROOT is set.
* Fix installworld when the host does not need to bootstrap nmtree.brooks2013-01-291-1/+1
| | | | Reported by: lev, jmg
* Fix update method (s/SUP/CVS) warning.gjb2013-01-251-1/+1
| | | | | Submitted by: Ryan Stone MFC after: 1 day
* Strip any trailing slash off of the -D argument to install to support thebrooks2013-01-241-1/+1
| | | | rather fragile destdir stripping in the metalog.
* Introduce a new option -DNO_ROOT that allows install and distributionbrooks2013-01-221-8/+60
| | | | | | | | | | | | | | | targets to be run without root privilege. Information about ownership, group, flags, and suid bits are stored in the file specified by METALOG which defaults to ${DESTDIR}/METALOG. This file can be used in conjunction with bsdtar or makefs to generate archives or file system images with correct permissions. The packageworld target has been altered to use this metadata allowing non-root releases (subject to further changes in release/Makefile.) Sponsored by: DARPA, AFRL Reviewed by: ian, ray
* Fix spurious leading / on dtc path in Makefile.inc1. Spotted by jhb.theraven2013-01-221-1/+1
|
* Import new (BSDL) device tree compiler. Now built by default, so that it can'ttheraven2013-01-221-1/+4
| | | | | | | | | | be used on the host system (and not installed on the device, if required). The GPL'd one is still available if there are any devices that need it (make universe passes with it, including kernels that use fdt, but there may be some out-of-tree ones). WITH_GPL_DTC can be used to select the old one, for now. Probably won't be MFC'd, but we'll remove the GPL'd version in head after the new one has had a lot more testing and ship it in 10.0.
* Chase r245756 of make.conf(5):gjb2013-01-221-4/+14
| | | | | | | | | | - If update method is SUP_UPDATE or CVS, warn that those update methods are deprecated. - While here, remove bogus NO_WWWUPDATE. MFC after: 3 days X-MFC-with: r245756
* Always bootstrap nmtree if it is not available on the host. It is fairlybrooks2013-01-211-1/+1
| | | | | | small and it is quite annoying to get all the way through buildworld only to discover that you forgot the DB_FROM_SRC (or soon NO_ROOT) option.
* Remove a harmless (somewhat to my surprise) bogon that crept into r245440.brooks2013-01-181-1/+0
|
* Rework the mtree portion of etc/Makefile's distrib-dirs target to runbrooks2013-01-171-6/+2
| | | | | | | | mtree in a shell loop so there is only one mtree commandline. Move the implementation of LOCAL_MTREE into etc/Makefile. Sponsored by: DARPA, AFRL Reviewed by: mtree :)
* Correct the distrib-dirs target in the -DDB_FROM_SRC case.brooks2013-01-171-1/+1
|
* Add a new LIBRARIES_ONLY make variable to disable the build and installbrooks2013-01-171-0/+1
| | | | | | | | | | of files other than the actual libraries. Use LIBRARIES_ONLY to supress the inclusion of files in the lib32 distribution that are duplicates of files in base. Sponsored by: DARPA, AFRL Reviewed by: emaste
* Add an option DB_FROM_SRC to use src/etc's user/group databases whenbrooks2013-01-151-7/+26
| | | | | | | | | | | | | installing. This allows things like running installworld for 10-CURRENT on a 9.0-RELEASE system without adding extra users and groups to the passwd and group files. To prevent potentially risky uid/gid mismatches on systems with non-standard local values, require that DESTDIR be set if DB_FROM_SRC is set. Sponsored by: DARPA, AFRL Reviewed by: peter
* Revert r245316. Systems with non-standard uids/gids are more prevalentbrooks2013-01-111-15/+33
| | | | | that I'd feared. Discussion is ongoing about the scope of a safer solution.
* Use the -N option to install and nmtree to eliminate the need for thebrooks2013-01-111-33/+15
| | | | | | checks for missing users and groups. Sponsored by: DARPA, AFRL
* Use find -exec to install zoneinfo instead of requiring xargs to be anbrooks2013-01-111-1/+1
| | | | | | install tool. Suggested by: delphij
* Add xargs to the set of install tools when zoneinfo is not disabled.brooks2013-01-101-1/+1
| | | | | | This fixes installworld which I had broken in r245265. Reported by: Nikolai Lifanov <lifanov@mail.lifanov.com>
* Add auditdistd to the pre-install required uid check list.peter2012-12-021-1/+1
|
* The build-tools step during build32 also needs the -legacy magic.sjg2012-11-301-0/+2
| | | | Approved by: marcel (mentor)
* Unbreak amd64 cross-build where amd64 is the target. While clangmarcel2012-11-201-1/+1
| | | | | | | may be installed as cc and we don't need to build gcc as a cross-tools, we still build gcc and thus need cc_tools built as a build tool. Not doing this results in building gengenrtl with the target compiler while we need to run it on the build machine.
* Work around pc98 tinderbox failures in sys/boot/pc98, by making sure adim2012-11-101-2/+2
| | | | | | | cross gcc gets built during the cross-tools stage. MFC after: 1 week X-MFC-With: 242706
* Add ATF to the build. This is may be a bit rought around the egdes,marcel2012-10-221-0/+5
| | | | | | | | | | | | | | | | | 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@
* Allow LOCAL_(DIRS,LIBS) to install files in directories not found in thebrooks2012-10-181-1/+11
| | | | | | system mtree files via a LOCAL_MTREE variable which contains a list of mtree files to be applyed along with the base mtree files to the tmp root and DESTDIR.
* Fix the showconfig target. bmake sends debug output to stderr.marcel2012-10-071-1/+1
| | | | Submitted by: Simon Garrety <sjg@juniper.net>
* Fix 32-bit library builds after the removal of adding -E to make for AS,marcel2012-10-071-11/+17
| | | | | | | | CC, CXX and LD. This fix implements the intended as it should have been implemented all along: by passing AS, CC, CXX and LD on the commandline of the sub-make instead of in the environment of the sub-make. Breakage pointed-out by: dim@
* Add support for bmake. This includes:marcel2012-10-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Introduce a new make variable COMPILER_TYPE that specifies whatbrooks2012-09-131-2/+15
| | | | | | | | | | | | | | | | | | | | 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
* Not all Pmake derivatives silently handle empty shell output, so ensure thereobrien2012-09-121-1/+1
| | | | | | is something for make(1) to consume. Bmake gives output such as: "warning: Couldn't read shell's output for "/bin/sh -c true" Note we parted from traditional Pmake behavior in r18864 / r18255.
* Fix 'distributeworld' target when WITHOUT_GAMES is set.gjb2012-09-031-1/+4
| | | | | | | Reviewed by: des Approved by: des MFC after: 3 days X-MFC-To: 9-only
* Merging of projects/armv6, part 3gonzo2012-08-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* Partial MFV (illumos-gate 13753:2aba784c276b)mm2012-07-301-1/+2
| | | | | | | | | 2762 zpool command should have better support for feature flags References: https://www.illumos.org/issues/2762 MFC after: 2 weeks
* Add "hier" as an alternate spelling of "hierarchy" to match hier(9).obrien2012-07-031-1/+1
|
* Minor wording change. The previous commit message should have included:brooks2012-06-151-1/+1
| | | | Sponsored by: DARPA, AFRL
* MFP4: 212854, 212854brooks2012-06-151-1/+7
| | | | | | | | Add a LOCAL_LIB_DIRS variable to complement the existing LOCAL_DIRS and LOCAL_TOOL_DIRS variables. Directories in LOCAL_LIB_DIRS are built at the end of the _generic_libs target. Reviewed by: imp (212854)
* During buildworld and buildkernel, define EARLY_BUILD in the earlierdim2012-06-031-5/+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
* Bump __FreeBSD_version for the byacc import, and update _bootstrap_tools.des2012-05-221-1/+4
|
* Fix bootstrapping from FreeBSD 7.x: we also need to build ar.marcel2012-05-191-0/+5
|
* By request, add back support from 7.0 and newer, since the changes forimp2012-05-161-5/+12
| | | | that are so minimal.
* Do a bit of house cleaning and remove the old, obsolete upgrade fromimp2012-05-101-28/+6
| | | | | 6.0 support and bump the minimum version to 8.0. These versions have not been tested and are believed to be broken.
* Introduce the ${SHLIB_LDSCRIPT} variable to have an ld(1) scriptjlh2012-05-071-2/+4
| | | | | | | | | instead of a symlink for .so files. Reviewed by: kib, kan (previous version), dim Approved by: kib (mentor) Silence from: -hackers@ MFC after: 1 week
* Fix ordering issue. 'make xdev' can fail with -jN because it tries to run theimp2012-04-261-2/+2
| | | | | | xdev-install step while xdev-build is still running. Submitted by: Ian Lepore
* o) Fix mips/mips -> mips for Makefile.inc1.jmallett2012-03-291-1/+1
| | | | o) Rebuild src.conf.5.
* Assume a big-endian default on MIPS and drop the "eb" suffix from MACHINE_ARCH.jmallett2012-03-291-1/+1
| | | | | | | | | | | | | | | This makes our naming scheme more closely match other systems and the expectations of much third-party software. MIPS builds which are little-endian should require and exhibit no changes. Big-endian TARGET_ARCHes must be changed: From: To: mipseb mips mipsn32eb mipsn32 mips64eb mips64 An entry has been added to UPDATING and some foot-shooting protection (complete with warnings which should become errors in the near future) to the top-level base system Makefile.
OpenPOWER on IntegriCloud