Upgrading uClibc in uClinux distro

Peter Mazinger ps.m at gmx.net
Sat Jul 9 11:09:30 UTC 2011


> On 07/07/2011 18:19, Mike Frysinger wrote:
> > On Thu, Jul 7, 2011 at 12:15, Gilles wrote:
> >> On Thu, 7 Jul 2011 12:12:33 -0400, Mike Frysinger wrote:
> >>> the upside is that Gentoo provides up-to-date packages
> >>> for everything while uClinux-dist does not.
> >>
> >> Right, apps in uClinux-dist can be a bit old. Can we expect a
> >> Blackfin-capable Gentoo-embedded in the coming months, or does it
> >> require much more work?
> > 
> > it doesnt require any more work than any other port.  at some point,
> > i'd like to create a fancy frontend like uClinux-dist/buildroot has,
> > but that's going to be a while.
> 
> I think we might all be talking past each other, so just to add more
> misinformation...
> 
> I am building a small x86 image (so no crosscompile issues), using
> gentoo portage.  It's quite straightforward and basically your build
> script simply looks like:
> 
> ROOT=/var/new-image
> PORTAGE_CONFIGROOT=/var/portage-config
> emerge baselayout uclibc busybox e2fsprogs udev || die "emerge failed"
> 
> This gets you a basic bootable filesystem stored in /var/new-image.
> However, it also contains a bunch of package management files, so I
> apply a second stage to rsync that dir to some other dir, with a mask to
> exclude the package management files.  Final result is then squashfs'd
> and distributed.
> 
> Whether this needs a fancy frontend I'm not so sure - however, it did
> take a little inside knowledge to create such a simple setup, so I think
> gentoo could certainly benefit from somehow offering more "recipes" to
> do some of these advanced things.
> 
> Also I have no experience using crossdev and so how easy this would
> apply to more complex crosscompile cases...
> 
> Gentoo lets you down in other areas though. It's default build recipes
> will largely install everything that "make install" wants to add.  There
> is control to mask off unwanted files, but for compact builds this
> leaves *you* with the job to go through the installation and decide what
> you don't need (and then populate the mask variable)

you might want to look at http://www.alpinelinux.org/, it uses gentoo,
but uses a packaging better suited for embedded...

Peter
> 
> (I currently do this masking in the build script, but I portage offers
> "hooks" into the build process and I will likely move to such fixups in
> the "pre-install" hook - this allows me to have one file per package
> fixups, that are more easily maintained and shared)
> 
> 
> 
> I think buildroot/uclinux are likely easier to use tools for most
> people.  Just personally had a very positive experience with Gentoo so
> wanted to throw it out there for users with more complex requirements?
> 
> 
> Good luck
> 
> Ed W
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de


More information about the uClibc mailing list