Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jun 2020 08:20:57 +0200
From:      =?utf-8?q?mayuresh=40kathe=2Ein?= <mayuresh@kathe.in>
To:        "Ralf Mardorf" <ralf-mardorf@riseup.net>
Cc:        freebsd-questions@freebsd.org
Subject:   =?utf-8?q?Re=3A?= Possible to compile tree on a different =?utf-8?q?OS=3F?=
Message-ID:  <483b-5ee86500-35-519df400@194132122>
In-Reply-To: <20200616081259.4b1b4143@archlinux>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday, June 16, 2020 11:42 AM IST, Ralf Mardorf <ralf-mardorf@rise=
up.net> wrote: 
 
> On Tue, 16 Jun 2020 07:16:37 +0200, mayuresh@kathe.in wrote:
> >The NetBSD folks have mechanisms in place to allow compiling
> >(including cross-compiling) their entire (or partial) source tree
> >under a different operating system. Eg. I can download and compile t=
he
> >NetBSD source tree under a Ubuntu system using GNU build tools.
> >
> >Does FreeBSD have such facilities in place too?
> 
> By googling I couldn't find a script such as
> https://www.netbsd.org/docs/guide/en/chap-build.html , but a howto
> 
> https://marcelog.github.io/articles/cross=5Ffreebsd=5Fcompiler=5Fin=5F=
linux.html

You have not understood my requirement.
I want to download the latest FreeBSD source tree on my machine running=
 native Ubuntu only and compile that source tree.
As an example of what's possible under NetBSD, read the snippet (below)=
 from the NetBSD mailing list.

=3D=3D=3D=3D NetBSD mailing list snippet =3D=3D=3D=3D
as per martin husemann <martin@duskware.de>

cd $(top-dir-where-you-put-the-netsbd-tree)
./build.sh -m evbarm64-el tools kernel=3DMYKERNEL

to build cross toolchain + a single kernel. This will create "tools" in=
 a
special tool directory (and tell you where).

if you are later working on kernel sources, you can do it manually too:=


cd $(top-dir-where-you-put-the-netsbd-tree)/sys/arch/evbarm/conf
$(TOOLDIR)/bin/nbconfig MYKERNEL
cd ../compile/MYKERNEL
$(TOOLDIR)/bin/nbmake-evbarm64-el depend
$(TOOLDIR)/bin/nbmake-evbarm64-el -j 24

lots of variants also work, but these are the two most popular (i think=
).
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Is such an operation possible with FreeBSD under Ubuntu?

~Mayuresh




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?483b-5ee86500-35-519df400>