NetBSD-Users archive

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

Re: [cross]compiling world and mk.conf



On Wed, Nov 08, 2023 at 13:07:09 +0100, Martin Husemann wrote:

> Alternatively you can use conditionals in mk.conf, like:
> 
> .if ${MACHINE} == "sparc"
> CFLAGS+= -mcpu=v8 -mtune=supersparc
> .endif

*tsk tsk*... :)

  CPUFLAGS = -mcpu=v8 -mtune=...

please.


> .if ${MACHINE_ARCH} != shark
> MKKDEBUG=yes
> .endif

*tsk tsk tsk*... :)

And you also got MACHINE and MACHINE_ARCH swapped :)


Yeah, what Martin said modulo corrections.  You can use three levels
from more generic to more specific:

MACHINE_CPU e.g. sh3 or arm
MACHINE_ARCH e.g. sh3el or earmv7hfeb
MACHINE e.g. landisk or shark

You can ask for the list with: ./build.sh list-arch

-uwe


Home | Main Index | Thread Index | Old Index