Is running cross-build on usb drive possible?

Warner Losh imp at bsdimp.com
Sat Apr 3 17:24:10 UTC 2021


On Sat, Apr 3, 2021 at 8:37 AM Andrew Mitchell via freebsd-arm <
freebsd-arm at freebsd.org> wrote:

> I am trying to cross-build i386 src to my arm64. Everything seems ok,
> buildworld is in good progress.
> I used: make TARGET_ARCH=arm64 buildworld.
>
> Next step, I'll make install. But I want this cross-built source tree on a
> USB drive.
> I'll try: make DESTDIR=/mnt/usb/i386 installworld
>
> But one question remains:
> Should I specify TARGET=arm64 with make install?
>
> Any clue?


TARGET/TARGET_ARCH need to be specified every make, regardless of the
target, when cross building. The different arch go in different directories.

Warner


More information about the freebsd-arm mailing list