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

Re: [ttylinux]Compile ttylinux fsys



On Tue, Feb 14, 2012 at 1:01 AM, harryxiyou <[email protected]> wrote:
> Hi Douglas,
>
> I wanna get a file-system via our ttylinux, which i don't want to
> install gcc and glibc, alsa,
> make, lilo, ppp, retawq. When i run command 'make pkgs', it should not
> install up packages
> i don't want. Then i run command 'make fsys' to get a file-system. To
> remove these packages,
> i should modify some shell scripts, like bld-packages.sh and
> bld-packages.sh, bld-packages-1.sh.
> But i am not sure what should i do for these scripts. Could you please
> give me some advice?

I have got a way to solve this problem. I add these codes nearby 500 line in the
bld-packages.sh" file. It looks good for me.

...
500 for p in ${TTYLINUX_PACKAGES}; do
501
502         if [[ $p = "lilo-23.2" ]]; then
503                 echo "This is $p, continue"
504                 continue
505         fi
506         if [[ $p = "gcc-4.4.4" ]]; then
507                 echo "This is $p, continue"
508                 continue
509         fi
510         if [[ $p = "ppp-2.4.5" ]]; then
511                 echo "This is $p, continue"
512                 continue
513         fi
514         if [[ $p = "make-3.82" ]]; then
515                 echo "This is $p, continue"
516                 continue
517         fi
518         if [[ $p = "retawq-0.2.6c" ]]; then
519                 echo "This is $p, continue"
520                 continue
521         fi
522         if [[ $p = "glibc-2.13" ]]; then
523                 echo "This is $p, continue"
524                 continue
525         fi
526         if [[ $p = "glibc-devel-2.13" ]]; then
527                 echo "This is $p, continue"
528                 continue
529         fi
530         if [[ $p = "alsa-lib-1.0.24.1" ]]; then
531                 echo "This is $p, continue"
532                 continue
533         fi
534         if [[ $p = "alsa-utils-1.0.24.2" ]]; then
535                 echo "This is $p, continue"
536                 continue
537         fi
538
539         t1=${SECONDS}
......

By these extra codes, i can remove packages i don not want in the
file-system image
and linux image,  which are gcc, glibc, alsa, make lilo, ppp, retawq.
Douglas, i have
tested this way. It works well.

Any comments?


-- 
Thanks
Harry Wei