[haiku-development] Re: [RFC] Problems bootstrapping ARM with PM

  • From: François Revol <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 29 Sep 2013 23:49:56 +0200

On 29/09/2013 23:39, Ingo Weinhold wrote:
> On 09/29/2013 10:49 PM, François Revol wrote:
>> * zlib sources are not found correctly, I had to patch
>> build/jam/BuildFeatures (however then x86 doesn't build anymore).
>>
>> I suppose the bootstrap source package is not created correctly but I
>> have no idea where to look.
> 
> It seems Oliver changed the name of the directory at some point (it
> looks like in [1]); not sure, if that was intentional or by accident.
> We'll either have to rebuild the source packages that predate that
> change or adjust haikuporter to use the old directory name again.

Ah I was actually looking at this code but not close enough.

>> * the BReferenceable class pulled into haiku_loader uses atomic_add(),
>> which isn't always available on ARM, since we do not have syscalls yet...
>> Worked around with a #define but it's ugly.
> 
> Indeed. A better solution would be to move the addition of the atomic
> functions from src/system/boot/Jamfile to
> src/system/boot/arch/<arch>/Jamfile. This way the functions can be
> replaced easily for ARM.

Looks almost as ugly :D

>> * I had to remove most packages to get to haiku_loader.
> 
> You mean you were to lazy to get them to build. ;-)

No, I was just trying to do things in order.
Having to build all the userland before getting a bootloader is a nonsense.

(and, hmm, why make a package for zlib but not coreutils :p)


François.

Other related posts: