Compile FreeBSD for a Different Target

Hello,

I would like to compile part of the FreeBSD sources (compiling on FreeBSD) for a different target string, e.g. x86_64-pc-linux-gnu. Is there a way to specifiy make to compile for this architecture/target?

Thank you for your consideration,
 
Here was my example cross-compiling BBB on amd64
 
Hello,

All I've seen is the cross-compilation of FreeBSD onto different architectures of FreeBSD. Is there a way to compile FreeBSD, specifying the four-field target to compile for?
 
Is there a way to compile FreeBSD, specifying the four-field target to compile for?
Could you be more specific what you mean by 'four-field target'?
As you may notice from my instructions, you must set the environment for a specific architecture.
Are you talking about building -STABLE on -RELEASE or something like that?
 
Exactly. And that's where I thought the question made no sense: How can you compile FreeBSD for Linux? Either you're compiling to run FreeBSD on the machine, or you're compiling (the Linux source) to run Linux, right? I can not understand what the OP means.
 
Gentoo Freebsd had a way to build Freebsd kernel and base using a GNU toolchain. It did have some -freebsd triplets, but I forget what they were. That project died years ago anyway.
 
Top