On Tue, Oct 28, 2003 at 04:01:55PM -0800, [EMAIL PROTECTED] wrote:
> On Tue, Oct 28, 2003 at 03:38:42PM -0800, Dejan Nikic wrote:
> > well the thing is that you don't want to remove gcc, only portage some
> > unused libs (i doubt their any with default Gentoo install) and probably
> > all those man and doc files. There should be ways to statically link
> > everything, but that might be some work.
> >
> > I got a 200mb install now, that I will hackaway at and try to get it
> > bellow 50mb hopefully I'm thinking of maybe writing something that will
> > use an existing gentoo install and use gentoo's portage and stuff to build
> > an LFS-like (Linux from scratch) image.
> >
>
> Turns out I had a lot of extra time at work today... ;-)
> well here is submerge. It is about 150 lines of bash and nothing very special.
> submerge takes a couple of configuration parameters in a file to run.
>
> I've attached it plus a sample config file. There are a couple extra
> features I have in mind for it... and I'm open to suggestions and code
> ;-)
>
> like I said before, a basic system can be done with:
>
> sys-kernel/linux-headers
> glibc
> =busybox-0.60.5-r1
> =gawk-3.1.2-r3
> =baselayout-1.8.6.8-r1
> tinylogin
I took your script for a testrun, overall very nice.
When I left the USE="-static", the overall size ended up being much larger,
so I removed it. Adding "-nls" is a good idea too, although its simple
enough to coopt localepurge.
I added the line
find ${ROOT_DIR} -name "*.a" | xargs -r r
as the first line of create_img.
I know gawk should eventually be removed as a dep of the init scripts, but
for now, removing ${ROOT_DIR}/bin/pgawk* helps.
tundra embeddedgentoo # ls work/bin/pgawk* -l
-rwxr-xr-x 2 root root 237376 Oct 31 15:55 work/bin/pgawk
-rwxr-xr-x 2 root root 237376 Oct 31 15:55 work/bin/pgawk-3.1.2
I do have a question - in the argument handling case statement, where do
the values for target and host come from?
--
luke
--
[EMAIL PROTECTED] mailing list