From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 7 20:57:49 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 434E01065670 for ; Sun, 7 Mar 2010 20:57:49 +0000 (UTC) (envelope-from mahan@mahan.org) Received: from ns.mahan.org (ns.mahan.org [67.116.10.138]) by mx1.freebsd.org (Postfix) with ESMTP id 1F7F78FC15 for ; Sun, 7 Mar 2010 20:57:48 +0000 (UTC) Received: from Gypsy.mahan.org (crowTrobot [67.116.10.140]) by ns.mahan.org (8.13.6/8.13.6) with ESMTP id o27KwPiI066288 for ; Sun, 7 Mar 2010 12:58:25 -0800 (PST) (envelope-from mahan@mahan.org) Message-ID: <4B941347.3060900@mahan.org> Date: Sun, 07 Mar 2010 12:57:43 -0800 From: Patrick Mahan User-Agent: Thunderbird 2.0.0.22 (X11/20090605) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Need a build target X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Mar 2010 20:57:49 -0000 All, Just wanted some confirmation, but I have a need where I need to build just the kernel toolchain, kernel and the full toolchain and include files. The first two I can do via 'make kernel-toolchain' and 'make buildkernel'. However, to get the complete build toolchain and include files, suitable for building user applications, I still need to do a full 'buildworld'. As you are probably inferring, this is for a cross-compile environment. I have looked through both src/Makefile and src/Makefile.inc1 and cannot see a target that will give me that capability. I think I need to a target to do this for me. WTOOLSMAKE_TGTS= .if !defined(SUBDIR_OVERRIDE) WTOOLSMAKE_TGTS+= _worldtmp _legacy _bootstrap-tools .endif WTOOLSMAKE_TGTS+= _cleanobj _obj _build_tools .if !defined(SUBDIR_OVERRIDE) WTOOLSMAKE_TGTS+= _cross-tools .endif WTOOLSMAKE_TGTS+= _includes _libraries buildworldtools: buildwtools_prologue ${WTOOLSMAKE_TGTS} buildwtools_epilogue .ORDER buildwtools_prologue ${WTOOLSMAKE_TGTS} buildwtools_epilogue buildwtools_prologue: @echo "--------------------------------------------------------------" @echo ">>> World build tools started on `LC_ALL=C date`" @echo "--------------------------------------------------------------" buildwtools_epilogue: @echo "--------------------------------------------------------------" @echo ">>> World build tools started on `LC_ALL=C date`" @echo "--------------------------------------------------------------" This should then build the complete set of binutils, compiler, libraries and include files, yes? Thanks for any direction, Patrick