Re: Some questions about build.sh, machine, -u and tools

2021-05-08 Thread Rocky Hotas
Sorry if you are receiving this message for the second time. I can't see it in the ML, so I'm resending it. On mag 05 13:21, Martin Husemann wrote: > No, but you may have the choice wich kernel/userland you want to run > on the same physical hardware. An example is my cubietruck: > I run it big-e

Re: Some questions about build.sh, machine, -u and tools

2021-05-08 Thread Rocky Hotas
Sorry if you are receiving this message for the second time. I can't see it in the ML, so I'm resending it. On mag 05 15:34, Valery Ushakov wrote: > Yes. It's just formatted using mdoc, but is not installed as part of > system manual pages. Ok! This is what produced that header. > I think Mart

Re: Some questions about build.sh, machine, -u and tools

2021-05-08 Thread Rocky Hotas
On mag 05 13:21, Martin Husemann wrote: > No, but you may have the choice wich kernel/userland you want to run > on the same physical hardware. An example is my cubietruck: > I run it big-endian as: > > [~] martin@space-truckin > uname -p -m > evbarm earmv7hfeb > > but most people use exactly th

Re: Some questions about build.sh, machine, -u and tools

2021-05-08 Thread Rocky Hotas
On mag 05 15:34, Valery Ushakov wrote: > Yes. It's just formatted using mdoc, but is not installed as part of > system manual pages. Ok! This is what produced that header. > I think Martin explained it pretty well in another followup. Yes, it was very useful :) > If by the "directory tools" y

Re: Some questions about build.sh, machine, -u and tools

2021-05-07 Thread Rocky Hotas
For some reason, my messages are not delivered to this ML. I try to merge them into a single reply both for Martin and Valery, from another address. I apologize for any inconvenience and/or double messages you may have received. Part 1 On mag 05 13:21, Martin Husemann wrote: > No, but you may h

Re: Some questions about build.sh, machine, -u and tools

2021-05-05 Thread Valery Ushakov
On Wed, May 05, 2021 at 12:57:21 +0200, Rocky Hotas wrote: > On mag 03 16:42, Valery Ushakov wrote: > > > TL;DR: src/BUILDING explains most of these things. > > It has the header of a Section 8 manpage, but it is not accessible as > such (`man BUILDING', `man 8 BUILDING' or with lower keys). Is t

Re: Some questions about build.sh, machine, -u and tools

2021-05-05 Thread Martin Husemann
On Wed, May 05, 2021 at 12:57:21PM +0200, Rocky Hotas wrote: > Ok! Even if two MACHINEs with different ABIs or endiannes have really > few common features, maybe just the commercial brand and the > partitioning scheme. Sorry, this is extreme of course, but the common > MACHINE idea still looks wei

Re: Some questions about build.sh, machine, -u and tools

2021-05-05 Thread Rocky Hotas
On mag 05 11:13, Martin Husemann wrote: > A MACHINE is a concrete thing, it belongs to a broader group of similar > (but not identical) other machines of the same MACHINE_ARCH. Ok! So, the reference and the "glue" is not MACHINE (as I thought), but MACHINE_ARCH. This also explains what Greg was w

Re: Some questions about build.sh, machine, -u and tools

2021-05-05 Thread Rocky Hotas
On mag 05 10:57, Rocky Hotas wrote: > There are two different kinds of tools: > > 1. > The ones in obj_dir/tools, which are the result of the building of > /usr/src/tools. [...] > 2. > The ones in obj_dir/tooldir.NetBSD-9.99.81-amd64, which are the actual > toolchain. Apparently, this is complet

Re: Some questions about build.sh, machine, -u and tools

2021-05-05 Thread Rocky Hotas
On mag 03 16:42, Valery Ushakov wrote: > TL;DR: src/BUILDING explains most of these things. Thanks! I'm trying to read it and it clarifed some doubts, but not all. It has the header of a Section 8 manpage, but it is not accessible as such (`man BUILDING', `man 8 BUILDING' or with lower keys). Is t

Re: Some questions about build.sh, machine, -u and tools

2021-05-05 Thread Martin Husemann
On Wed, May 05, 2021 at 10:57:56AM +0200, Rocky Hotas wrote: > MACHINE is defined in the paper as a platform (par. 5.1). Intuitively, > yes, MACHINE seems related to a whole computer (so, a collection > of hardware devices with its standards and conventions) and > MACHINE_ARCH is somewhat more spe

Re: Some questions about build.sh, machine, -u and tools

2021-05-05 Thread Rocky Hotas
According to the paper let's use the terms `build host', `host' and `target'. On mag 03 8:30, Greg Troxel wrote: > I keep forgetting this and having to page it in, but a big concept is > that you can share userland among systems built for the

Re: Some questions about build.sh, machine, -u and tools

2021-05-03 Thread Valery Ushakov
TL;DR: src/BUILDING explains most of these things. On Mon, May 03, 2021 at 12:18:54 +0200, Rocky Hotas wrote: > I struggle instead about MACHINE. Some of them (sparc, vax) have > just one MACHINE_ARCH with the same name. Some of them have just > one MACHINE_ARCH with a different name (amd64). Thi

Re: Some questions about build.sh, machine, -u and tools

2021-05-03 Thread Greg Troxel
Rocky Hotas writes: > I struggle instead about MACHINE. Some of them (sparc, vax) have > just one MACHINE_ARCH with the same name. Some of them have just > one MACHINE_ARCH with a different name (amd64). This allows to > specify just one between `-m' or `-a', when building with build.sh. > Then,

Some questions about build.sh, machine, -u and tools

2021-05-03 Thread Rocky Hotas
Hello! Chapter 32 of The NetBSD Guide deals with Crosscompiling NetBSD with build.sh. 1. With `list-arch' the full list of the available machines and CPU types is shown, named respectively MACHINE and MACHINE_ARCH. Correct me if I'm wrong, MACHINE_ARCH represents the CPU with its specific instruct