NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kernel source : compile from a ubuntu (gnu/linux) system : possible?



On Wed, May 27, 2020 at 02:47:44PM +0200, mayuresh%kathe.in@localhost wrote:
> i've also heard that it's possible to cross-compile the whole system
> for a different target 'isa'.

Basically what you do is something like:

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

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 this are the two most popular (I think).

Martin


Home | Main Index | Thread Index | Old Index