Subject: Re: src/distrib/miniroot/Makefile
To: Bill Studenmund <wrstuden@nas.nasa.gov>
From: Ignatios Souvatzis <is@jocelyn.rhein.de>
List: tech-toolchain
Date: 03/05/1999 10:50:42
On Thu, Mar 04, 1999 at 12:35:44PM -0800, Bill Studenmund wrote:
> Does anything use it,
yes. Amiga, for one. I think most of {hp300, sun3, atari, mac68k}, too.

> or is it a template?
no.

> 
> I just added mods to all of the floppy/miniroot Makefiles to explicitly
> specify the desired endianness of the fs. Thus the scripts will DTRT if
> you're making a big-endian boot disk on a little-endian machine.
> 
> But there's a call to newfs in src/distrib/miniroot/Makefile. What should
> we do here?

> Also, Jason suggested adding variables to bsd.own.mk that will tell you
> the endianness of the ${MACHINE_ARCH} - that'd be one obvious way to fix
> this. Thoughts?
hm. hm. The suggestion seems right to me.

In the short term, the "${ARCHDIR}/Makefile.inc"'s can specify the desired
endianness in their NEWFSOPTS assignment. 

Already existing: 

../amiga/miniroot/Makefile.inc:NEWFSOPTS?=      -c 64
../atari/miniroot/Makefile.inc:NEWFSOPTS?=      -i 3052 -c 60
../mac68k/miniroot/Makefile.inc:NEWFSOPTS?=     -i 8192
../pmax/miniroot/Makefile.inc:NEWFSOPTS?=       -c 64

adding -B be for all but pmax (here: -B le) should do the job.

Regards,
	Ignatios