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

Re: [MiNT] MiNTLib / Kernel Future and also SpareMiNT.....



On 5/27/10 3:31 PM, Keith Scroggins wrote:
On Thu, 27 May 2010, Ole Loots wrote:

The other issue with Sparemint (well RPM), at least in my opinion, is
architecture support. By default, unless currently noted, RPMs are built for a 68000 target. Should that remain the same, or should this expand so that packages are also target at 68020-60 and then later at the Coldfire?
If so, how?

I would like to see architecture optimized RPM's. I don't care how it's
done (right now), and I don't know how it could be done. But I think there should be an clean and straight way for targeting different architectures
+ installing for different architectures.

We are fine for 'most' packages in SpareMiNT for the development libraries as they live in their own homes in /usr/lib for the 2, now 3, different archs. /usr/lib for 68000, /usr/lib/m68020-60 for 020-60, and now /usr/lib/m5475 for Coldfire. Now they would just need to be built! :)

The issue arises, if you wish to call it that, for the binaries. Although, I personally see no reason to separate the binaries based on architecture on an installed system, I do see the advantage of binaries targeting specific CPUs.

I guess I'll scribble together my thought for doing this since I have been screwing around with this some for Sparemint.
This works for Libraries and is Keith's idea. I like this for libraries... My idea to collect Keith's and my approach into one would be this:

*.m68kmint.rpm - a multi-arch package (library) that includes libraries for all arches *.m68000mint.rpm - a package (library or binary app) that contains code for 68000.
*.m6802060mint.rpm - ...  68020-60
*.mcfv4emint.rpm - ... coldfire

What I don't know is if a system will be happy having packages from multiple arches installed at once. It's something I would need to investigate...

We also need better naming as those are too verbose.

Do you guys like this?

One problem we could run into with the multiarch packages is that it's not possible to run tests for instance on coldfire libs if the build machine is a 68060. This is why I came to the original conclusion that we would have mutliple sparemint arches which would be specific platform repositories of exacty what we have now (as seen on http://dev.sparemint.org)

Thanks,
Mark