From owner-freebsd-ppc@FreeBSD.ORG Mon Feb 23 09:32:06 2009 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CC82106564A for ; Mon, 23 Feb 2009 09:32:06 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id C308D8FC13 for ; Mon, 23 Feb 2009 09:32:05 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id n1N9W3Wc006044; Mon, 23 Feb 2009 02:32:04 -0700 Message-ID: <49A26D11.5070007@semihalf.com> Date: Mon, 23 Feb 2009 10:32:01 +0100 From: Rafal Jaworowski Organization: Semihalf MIME-Version: 1.0 To: Aleksey V Fedorov References: <49A02FBA.2010103@semihalf.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: Crosscomliling world X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2009 09:32:06 -0000 Aleksey V Fedorov wrote: >>> How to crosscomlile world for MPC8548 target on amd64 host? >>> I have powerpc-binutils and powerpc-gcc installed in >>> /usr/local/bin/powerpc-elf-eabi >>> Is there standard method to make crossbuild? >> >> Hi Aleksey, >> The regular way is the following: >> >> make buildworld TARGET_ARCH=powerpc TARGET_CPUTYPE=e500 >> >> (This creates cross toolchain at the beginning of the build process) >> >> If you'd like to use cross toolchain other than the in-tree one, you >> need to >> tweak makefiles to point to your tools. > > buildworld compliled ok. > But how to build kernel only? For example: > > # cd /usr/current/src/sys/powerpc/conf > # config MPC85XX > Kernel build directory is ../compile/MPC85XX > Don't forget to do ``make cleandepend && make depend'' > # cd ../compile/MPC85XX > # make depend TARGET_ARCH=powerpc TARGET_CPUTYPE=e500 Hm, the old method of building kernel aparently does not work, please try: make buildkernel TARGET_ARCH=powerpc TARGET_CPUTYPE=e500 KERNCONF=MPC85XX Rafal