Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Apr 2021 11:23:58 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Andrew Mitchell <andrew_mitchell_fr@icloud.com>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: Is running cross-build on usb drive possible?
Message-ID:  <CANCZdfpuh1v9-gKApKTDpLLenpaogt9puhWRg4s%2B8%2BUgamk6oA@mail.gmail.com>
In-Reply-To: <931D3371-AF57-40E4-83EC-0283463A8AA4@icloud.com>
References:  <931D3371-AF57-40E4-83EC-0283463A8AA4@icloud.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Apr 3, 2021 at 8:37 AM Andrew Mitchell via freebsd-arm <
freebsd-arm@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpuh1v9-gKApKTDpLLenpaogt9puhWRg4s%2B8%2BUgamk6oA>