Subject: Re: file layout plans (was Re: [HELP] Cann't compile hpcarm for iPAQ kernel)
To: Chris Gilbert <chris@paradox.demon.co.uk>
From: IWAMOTO Toshihiro <iwamoto@sat.t.u-tokyo.ac.jp>
List: port-arm
Date: 09/14/2001 13:09:36
At Thu, 13 Sep 2001 00:55:12 +0100,
Chris Gilbert wrote:
> 
> On Wednesday 12 September 2001  8:41 pm, Antti Kantee wrote:
> > memory_disc_size is declared somewhere under arm32/rc7500, which is not
> > compiled into the hpcarm iPAQ kernel. So I just simply added the
> > declaration to some random file. Removing the keyword `extern' in
> > arm32_machdep.c should be enough to get the kernel linked.
> 
> I believe it's something to do with some extra stuff in the 
> arm32/dev/md_hooks.c file.  Inparticular the ability to load the memory disk 
> image from a floppy disk, this is possibly no longer needed/used as kernels 
> now have the disk image embedded in them

The cause of build failure is that parse_mi_bootargs() is accidentally
brought into hpcarm.  This function and arch/arm/arm/bootconfig.c are
arm32 bootloader related stuff, as far as I can tell.

So the solution would be to conditionally pull in these codes based on
bootloader used.

--
IWAMOTO Toshihiro