Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jan 2011 00:35:59 +0000
From:      Alexander Best <arundel@freebsd.org>
To:        Warner Losh <imp@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r217125 - head
Message-ID:  <20110109003559.GA6112@freebsd.org>
In-Reply-To: <201101072036.p07KaRCe065105@svn.freebsd.org>
References:  <201101072036.p07KaRCe065105@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri Jan  7 11, Warner Losh wrote:
> Author: imp
> Date: Fri Jan  7 20:36:27 2011
> New Revision: 217125
> URL: http://svn.freebsd.org/changeset/base/217125
> 
> Log:
>   make targets
>   
>   This produces a list of currently supported targets.  Here "supported"
>   means "built in make universe" on the theory that those targets are
>   more supported than any that might work in 'make buildworld TARGET=x
>   TARGET_ARCH=y' since the latter are less tested.
>   
>   Suggested by: rwatson

maybe the following patch would be nice to have in order to make it clear that
not all user-driven targets are actually implemented in Makefile.inc1:

diff --git a/Makefile b/Makefile
index a674c90..3f76c7e 100644
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,8 @@
 # tree. This makefile executes a child make process, forcing it to use
 # the mk files from the source tree which are supposed to DTRT.
 #
-# The user-driven targets (as listed above) are implemented in Makefile.inc1.
+# Some of the user-driven targets (as listed above) are implemented in
+# Makefile.inc1.
 #
 # If you want to build your system from source be sure that /usr/obj has
 # at least 800MB of diskspace available.

cheers.
alex

p.s.: also just noticed that there's no description for target 'showconfig'.
this should be explained, since it is very useful for reporting 'buildworld'-
failures.

> 
> Modified:
>   head/Makefile
> 
> Modified: head/Makefile
> ==============================================================================
> --- head/Makefile	Fri Jan  7 20:31:47 2011	(r217124)
> +++ head/Makefile	Fri Jan  7 20:36:27 2011	(r217125)
> @@ -26,6 +26,7 @@
>  # delete-old-dirs     - Delete obsolete directories.
>  # delete-old-files    - Delete obsolete files.
>  # delete-old-libs     - Delete obsolete libraries.
> +# targets             - Print a list of supported TARGET/TARGET_ARCH pairs.
>  #
>  # This makefile is simple by design. The FreeBSD make automatically reads
>  # the /usr/share/mk/sys.mk unless the -m argument is specified on the
> @@ -280,7 +281,7 @@ tinderbox:
>  # with a reasonable chance of success, regardless of how old your
>  # existing system is.
>  #
> -.if make(universe) || make(universe_kernels) || make(tinderbox)
> +.if make(universe) || make(universe_kernels) || make(tinderbox) || make(targets)
>  TARGETS?=amd64 arm i386 ia64 mips pc98 powerpc sparc64 sun4v
>  TARGET_ARCHES_arm?=	arm armeb
>  TARGET_ARCHES_mips?=	mipsel mipseb mips64el mips64eb
> @@ -291,6 +292,14 @@ TARGET_ARCHES_sun4v?=	sparc64
>  TARGET_ARCHES_${target}?= ${target}
>  .endfor
>  
> +targets:
> +	@echo "Supported TARGET/TARGET_ARCH pairs"
> +.for target in ${TARGETS}
> +.for target_arch in ${TARGET_ARCHES_${target}}
> +	@echo "    ${target}/${target_arch}"
> +.endfor
> +.endfor
> +
>  .if defined(DOING_TINDERBOX)
>  FAILFILE=tinderbox.failed
>  MAKEFAIL=tee -a ${FAILFILE}

-- 
a13x



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110109003559.GA6112>