* multiple DISTRO's in tmp
@ 2009-12-11 8:39 Frans Meulenbroeks
2009-12-11 9:25 ` Phil Blundell
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Frans Meulenbroeks @ 2009-12-11 8:39 UTC (permalink / raw)
To: openembedded-devel
I bumped upon the following issue.
Normally I use angstrom as distro, but this time I needed a small
image to be used in an initramfs.
In order to achieve that I changed DISTRO in my local.conf to minimal
(tried minimal-uclibc first, but that would complain before generating
packages, probably due to a mismatch between my target (powerpc) and
uclibc (I refrained from sidetracking to dig into it)).
However, when trying to build minimal, it immediately complained about
DISTRO_PR (minimal does not have DISTRO_PR, which you may find a bug,
but anyway that is what exists now).
I had to put it in a new tmp dir.
However, I was wondering: wouldn't it be nice to allow multiple
distro's in one tmp dir (so that e.g. if they share the same version
of a recipe (like m4-native or os), this does not need to be
recompiled?
If this is considered to be a good plan what would be the best way to
achieve this?
Frans
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: multiple DISTRO's in tmp
2009-12-11 8:39 multiple DISTRO's in tmp Frans Meulenbroeks
@ 2009-12-11 9:25 ` Phil Blundell
2009-12-11 10:29 ` Frans Meulenbroeks
2009-12-11 15:47 ` Graeme Gregory
2009-12-12 21:33 ` Koen Kooi
2 siblings, 1 reply; 10+ messages in thread
From: Phil Blundell @ 2009-12-11 9:25 UTC (permalink / raw)
To: openembedded-devel
On Fri, 2009-12-11 at 09:39 +0100, Frans Meulenbroeks wrote:
> However, I was wondering: wouldn't it be nice to allow multiple
> distro's in one tmp dir (so that e.g. if they share the same version
> of a recipe (like m4-native or os), this does not need to be
> recompiled?
Even if the (PN, PV) tuple is the same for two DISTROs it doesn't
necessarily follow that the resulting packages will be the same. They
might have selected different compilers, configuration options, or
versions of depended-on packages. Or they might have a different
filesystem layout, or any number of other things.
So, practically speaking, no: it isn't going to be feasible to make
multiple DISTROs coexist in a single TMPDIR. This is a case where you
do need to create a separate TMPDIR.
p.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: multiple DISTRO's in tmp
2009-12-11 9:25 ` Phil Blundell
@ 2009-12-11 10:29 ` Frans Meulenbroeks
2009-12-11 11:33 ` Richard Purdie
2009-12-11 17:29 ` Khem Raj
0 siblings, 2 replies; 10+ messages in thread
From: Frans Meulenbroeks @ 2009-12-11 10:29 UTC (permalink / raw)
To: openembedded-devel
2009/12/11 Phil Blundell <philb@gnu.org>:
> On Fri, 2009-12-11 at 09:39 +0100, Frans Meulenbroeks wrote:
>> However, I was wondering: wouldn't it be nice to allow multiple
>> distro's in one tmp dir (so that e.g. if they share the same version
>> of a recipe (like m4-native or os), this does not need to be
>> recompiled?
>
> Even if the (PN, PV) tuple is the same for two DISTROs it doesn't
> necessarily follow that the resulting packages will be the same. They
> might have selected different compilers, configuration options, or
> versions of depended-on packages. Or they might have a different
> filesystem layout, or any number of other things.
>
> So, practically speaking, no: it isn't going to be feasible to make
> multiple DISTROs coexist in a single TMPDIR. This is a case where you
> do need to create a separate TMPDIR.
I understand that. Then again it *is* possible for multiple machines
in the same distro to co-exist, even though the machine config file
could change some flags.
Rethinking it, I would expect that if things can be shared it would be
in the native area (and perhaps some things in cross).
Actually just bumped into this because my tmp dir for angstrom was
about 18 GB and ofc I didn't have sufficient free space for another
tree (and also not really enough patience to wait out a build of the
cross tools).
Since my main goal was a small filesystem for initramfs, maybe it
would be better to make a recipe for a small package (e.g.
minimal_console_image.bb)
Frans
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: multiple DISTRO's in tmp
2009-12-11 10:29 ` Frans Meulenbroeks
@ 2009-12-11 11:33 ` Richard Purdie
2009-12-11 17:29 ` Khem Raj
1 sibling, 0 replies; 10+ messages in thread
From: Richard Purdie @ 2009-12-11 11:33 UTC (permalink / raw)
To: openembedded-devel
On Fri, 2009-12-11 at 11:29 +0100, Frans Meulenbroeks wrote:
> 2009/12/11 Phil Blundell <philb@gnu.org>:
> > On Fri, 2009-12-11 at 09:39 +0100, Frans Meulenbroeks wrote:
> >> However, I was wondering: wouldn't it be nice to allow multiple
> >> distro's in one tmp dir (so that e.g. if they share the same version
> >> of a recipe (like m4-native or os), this does not need to be
> >> recompiled?
> >
> > Even if the (PN, PV) tuple is the same for two DISTROs it doesn't
> > necessarily follow that the resulting packages will be the same. They
> > might have selected different compilers, configuration options, or
> > versions of depended-on packages. Or they might have a different
> > filesystem layout, or any number of other things.
> >
> > So, practically speaking, no: it isn't going to be feasible to make
> > multiple DISTROs coexist in a single TMPDIR. This is a case where you
> > do need to create a separate TMPDIR.
>
> I understand that. Then again it *is* possible for multiple machines
> in the same distro to co-exist, even though the machine config file
> could change some flags.
>
> Rethinking it, I would expect that if things can be shared it would be
> in the native area (and perhaps some things in cross).
>
> Actually just bumped into this because my tmp dir for angstrom was
> about 18 GB and ofc I didn't have sufficient free space for another
> tree (and also not really enough patience to wait out a build of the
> cross tools).
>
> Since my main goal was a small filesystem for initramfs, maybe it
> would be better to make a recipe for a small package (e.g.
> minimal_console_image.bb)
Phil is right, its not intended to be able to share multiple DISTROs in
the same TMPDIR and it never will be. Yes, in some cases its possible
things might match but knowing when they do and when they don't is
difficult to tell.
You need separate tmp directories I'm afraid.
Cheers,
Richard
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: multiple DISTRO's in tmp
2009-12-11 10:29 ` Frans Meulenbroeks
2009-12-11 11:33 ` Richard Purdie
@ 2009-12-11 17:29 ` Khem Raj
1 sibling, 0 replies; 10+ messages in thread
From: Khem Raj @ 2009-12-11 17:29 UTC (permalink / raw)
To: openembedded-devel
On Fri, Dec 11, 2009 at 2:29 AM, Frans Meulenbroeks
<fransmeulenbroeks@gmail.com> wrote:
> 2009/12/11 Phil Blundell <philb@gnu.org>:
>> On Fri, 2009-12-11 at 09:39 +0100, Frans Meulenbroeks wrote:
>>> However, I was wondering: wouldn't it be nice to allow multiple
>>> distro's in one tmp dir (so that e.g. if they share the same version
>>> of a recipe (like m4-native or os), this does not need to be
>>> recompiled?
>>
>> Even if the (PN, PV) tuple is the same for two DISTROs it doesn't
>> necessarily follow that the resulting packages will be the same. They
>> might have selected different compilers, configuration options, or
>> versions of depended-on packages. Or they might have a different
>> filesystem layout, or any number of other things.
>>
>> So, practically speaking, no: it isn't going to be feasible to make
>> multiple DISTROs coexist in a single TMPDIR. This is a case where you
>> do need to create a separate TMPDIR.
>
> I understand that. Then again it *is* possible for multiple machines
> in the same distro to co-exist, even though the machine config file
> could change some flags.
>
> Rethinking it, I would expect that if things can be shared it would be
> in the native area (and perhaps some things in cross).
>
> Actually just bumped into this because my tmp dir for angstrom was
> about 18 GB and ofc I didn't have sufficient free space for another
> tree (and also not really enough patience to wait out a build of the
> cross tools).
IIRC angstrom used -ggdb3 (which may not be case anymore) which means
more than half of your total size it consumed
by elaborated debug info for code which is compiled at O2 and most of
the debug info
will not be usable. Change using -g instead to reduce the bloat.
-Khem
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: multiple DISTRO's in tmp
2009-12-11 8:39 multiple DISTRO's in tmp Frans Meulenbroeks
2009-12-11 9:25 ` Phil Blundell
@ 2009-12-11 15:47 ` Graeme Gregory
2009-12-11 15:57 ` Phil Blundell
2009-12-12 21:33 ` Koen Kooi
2 siblings, 1 reply; 10+ messages in thread
From: Graeme Gregory @ 2009-12-11 15:47 UTC (permalink / raw)
To: openembedded-devel
On Fri, Dec 11, 2009 at 09:39:21AM +0100, Frans Meulenbroeks wrote:
> I bumped upon the following issue.
>
> Normally I use angstrom as distro, but this time I needed a small
> image to be used in an initramfs.
> In order to achieve that I changed DISTRO in my local.conf to minimal
> (tried minimal-uclibc first, but that would complain before generating
> packages, probably due to a mismatch between my target (powerpc) and
> uclibc (I refrained from sidetracking to dig into it)).
>
minimal being an Angstrom clone will not actually produce smaller
images. I would suggest for an initramfs you just switch Angstrom
to uclibc mode.
The only real advantage micro has in size is that it creates less
directories. The images are not as far as I can see physically any
smaller.
Graeme
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: multiple DISTRO's in tmp
2009-12-11 8:39 multiple DISTRO's in tmp Frans Meulenbroeks
2009-12-11 9:25 ` Phil Blundell
2009-12-11 15:47 ` Graeme Gregory
@ 2009-12-12 21:33 ` Koen Kooi
2009-12-12 22:35 ` Frans Meulenbroeks
2 siblings, 1 reply; 10+ messages in thread
From: Koen Kooi @ 2009-12-12 21:33 UTC (permalink / raw)
To: openembedded-devel
On 11-12-09 09:39, Frans Meulenbroeks wrote:
> I bumped upon the following issue.
>
> Normally I use angstrom as distro, but this time I needed a small
> image to be used in an initramfs.
My initramfs built with angstrom is 80KiB and it has an fbdev GUI, how
much smaller do you want to get with changing DISTRO?
regards,
Koen
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: multiple DISTRO's in tmp
2009-12-12 21:33 ` Koen Kooi
@ 2009-12-12 22:35 ` Frans Meulenbroeks
2009-12-13 16:32 ` Koen Kooi
0 siblings, 1 reply; 10+ messages in thread
From: Frans Meulenbroeks @ 2009-12-12 22:35 UTC (permalink / raw)
To: openembedded-devel
2009/12/12 Koen Kooi <k.kooi@student.utwente.nl>:
> On 11-12-09 09:39, Frans Meulenbroeks wrote:
>>
>> I bumped upon the following issue.
>>
>> Normally I use angstrom as distro, but this time I needed a small
>> image to be used in an initramfs.
>
> My initramfs built with angstrom is 80KiB and it has an fbdev GUI, how much
> smaller do you want to get with changing DISTRO?
80 kb is small enough for me.
What do you build to get that?
Frans
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: multiple DISTRO's in tmp
2009-12-12 22:35 ` Frans Meulenbroeks
@ 2009-12-13 16:32 ` Koen Kooi
0 siblings, 0 replies; 10+ messages in thread
From: Koen Kooi @ 2009-12-13 16:32 UTC (permalink / raw)
To: openembedded-devel
On 12-12-09 23:35, Frans Meulenbroeks wrote:
> 2009/12/12 Koen Kooi<k.kooi@student.utwente.nl>:
>> On 11-12-09 09:39, Frans Meulenbroeks wrote:
>>>
>>> I bumped upon the following issue.
>>>
>>> Normally I use angstrom as distro, but this time I needed a small
>>> image to be used in an initramfs.
>>
>> My initramfs built with angstrom is 80KiB and it has an fbdev GUI, how much
>> smaller do you want to get with changing DISTRO?
>
> 80 kb is small enough for me.
> What do you build to get that?
kexecboot for beagleboard.
regards,
Koen
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-12-13 16:41 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-11 8:39 multiple DISTRO's in tmp Frans Meulenbroeks
2009-12-11 9:25 ` Phil Blundell
2009-12-11 10:29 ` Frans Meulenbroeks
2009-12-11 11:33 ` Richard Purdie
2009-12-11 17:29 ` Khem Raj
2009-12-11 15:47 ` Graeme Gregory
2009-12-11 15:57 ` Phil Blundell
2009-12-12 21:33 ` Koen Kooi
2009-12-12 22:35 ` Frans Meulenbroeks
2009-12-13 16:32 ` Koen Kooi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.