From owner-freebsd-current@FreeBSD.ORG Thu Jan 5 06:16:17 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2181C106566B for ; Thu, 5 Jan 2012 06:16:17 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id CFD248FC12 for ; Thu, 5 Jan 2012 06:16:16 +0000 (UTC) Received: by vbbfr13 with SMTP id fr13so260976vbb.13 for ; Wed, 04 Jan 2012 22:16:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=p5Nim3hLF1YZuG5STjrOQSMahsxKXkhG2ywaMX17O3c=; b=lRXfLQGx37DoWueEOhCx7MtD0ARwiB8mjwdM76bNTcASimvEF7Igau9YmkNp/ErT7t +20XUNBJ2uNokU1XNRpRH8ePe6CjKID2jUr8E8OWZ+5Ir1FeBd88/dp+Fc+0BZL2cgO3 GcF8SQzebgDw/xYCwjpuNeOKzaNzvdE0klboA= MIME-Version: 1.0 Received: by 10.52.180.98 with SMTP id dn2mr267587vdc.83.1325742624134; Wed, 04 Jan 2012 21:50:24 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.36.5 with HTTP; Wed, 4 Jan 2012 21:50:24 -0800 (PST) In-Reply-To: References: <20111219224545.GA22631@onelab2.iet.unipi.it> <4EF5915E.1030202@gmail.com> Date: Wed, 4 Jan 2012 21:50:24 -0800 X-Google-Sender-Auth: klXaHXz6vUnUTAS8IEGLe9QIRCU Message-ID: From: Adrian Chadd To: Jacques Fourie Content-Type: text/plain; charset=ISO-8859-1 Cc: rizzo@iet.unipi.it, current@freebsd.org Subject: Re: cross-arch building picobsd/nanobsd images ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jan 2012 06:16:17 -0000 On 4 January 2012 20:53, Jacques Fourie wrote: > I've posted a diff to -arm about 2 years ago that I used to > cross-build arm picobsd images for a gumstix platform on a i386 host. > I don't know if the diff will apply cleanly anymore but here it is in > anyway. Hi, I've figured out all the right flags to pass to a cross-build environment. Namely: env CROSS_BUILD_TESTING=YES MAKEOBJDIRPREFIX=${X_MAKEOBJDIRPREFIX} \ make ${BUILD_FLAGS} TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ ${X_TARGET_CPUTYPE} KERNCONF=${KERNCONF} DESTDIR=${X_DESTDIR} \ KODIR=/boot/kernel.${KERNCONF}/ \ KMODDIR=/boot/kernel.${KERNCONF}/ \ __MAKE_CONF=/dev/null SRCCONF=/dev/null \ LOCAL_DIRS="${LOCAL_DIRS}" \ LOCAL_TOOL_DIRS="${LOCAL_TOOL_DIRS}" $1 \ .. ignore LOCAL_TOOL_DIRS, I haven't committed that yet to -HEAD. If someone would like to update picobsd to make this work, I'll happily test out patches and commit it to -HEAD. Building -8 and previous needed some extra hacks (eg TARGET_BIG_ENDIAN) which have been removed from -HEAD/-9. Good luck! Adrian