Date: Wed, 4 Jan 2012 21:50:24 -0800 From: Adrian Chadd <adrian@freebsd.org> To: Jacques Fourie <jacques.fourie@gmail.com> Cc: rizzo@iet.unipi.it, current@freebsd.org Subject: Re: cross-arch building picobsd/nanobsd images ? Message-ID: <CAJ-Vmom8vfL34-GeAoa-Nt7reGR_LignPDm0LDJkNQkHDLQaAg@mail.gmail.com> In-Reply-To: <CALX0vxCNOxNjhvuGfTj05RXOiq4RURxCxa-nWimTjSZgHYJhRg@mail.gmail.com> References: <20111219224545.GA22631@onelab2.iet.unipi.it> <CA%2Bq%2BTcq_hfvzDJUZ3NW44gzQqxy-iYNqM2a==ziRKa8kHp669w@mail.gmail.com> <4EF5915E.1030202@gmail.com> <CALX0vxCNOxNjhvuGfTj05RXOiq4RURxCxa-nWimTjSZgHYJhRg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 4 January 2012 20:53, Jacques Fourie <jacques.fourie@gmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmom8vfL34-GeAoa-Nt7reGR_LignPDm0LDJkNQkHDLQaAg>
