logo       

Re: beginner question regarding config.in syntax: msg#00121

t2.devel

Subject: Re: beginner question regarding config.in syntax


Welcome on the T2 SDE list :-)

Harmuth, Florian wrote:

Hello all,
what files are processed with this rules? (target/dreamcast/config.in):

pkgfilter sed '

# mangle all packages to only build them in the cross stage (1)
s,^. \(.\)[^ ]*,X \11--------,;

# select some packages (and repositories) explicitely

/ 00-dirtree / { p; d; };
/ linux-header / { p; d; };
/ binutils / { s,^. [^ ]*,X 0---------,; p; d; }
/ gcc / { s,^. [^ ]*,X 0---------,; p; d; }

/ uclibc / { p; d; };
/ linux26sh / { p; d; };

/ minit / { p; d; };
/ fgetty / { p; d; };

/ libowfat / { p; d; };
/ busybox / { p; d; };

/ zlib / { p; d; };

/ ncurses / { p; d; };

# / iptables / { p; d; };
/ dropbear / { p; d; };
/ rsync / { p; d; };

# / gpm / { p; d; };

/ strace / { p; d; };
# disable the rest
/.*/ { s/^X /O / ; p; d; };'

The package metadata / selection is processed with this rules. The raw
listing can be obtained with:

scripts/Create-PkgList x86

But one usually would not do so, despite core script debugging.

Note that modern targets do not use cryptic Unix tool magic for the
selection but rather plain/text files, such as:

target/rescue/pkgsel:

O * # unless otherwise noted below
X 00-dirtree
X sysfiles
...

Where X is select and O deselect. The new rules even allow including
selection templates as the desktop target does:

target/desktop/pkgsel:
# let's reuse a reliable base
include target/generic/pkgsel/50-minimal-desktop.in

Only more complex, purely embedded etc. target still rely on sed
to tweak details, such as to only build the compiler toolchain for
the build host, not the target:

target/embedded/config.in:

...
# we need those for some broken packages that need updating
/ automake / { s,^. [^ ]*,X 0---------,; p; d; }
/ libtool / { s,^. [^ ]*,X 0---------,; p; d; }
..

Sorry for this beginner question, but i don't undestand the build proccess completely.

Any question is welcome, just ask!


--
René Rebe - ExactCODE GmbH - Europe, Germany, Berlin
Geschäftsführer: Susanne Klaus, René Rebe
Sitz: Berlin, Amtsgericht Charlottenburg HRB 105 123 B
USt-IdNr.: DE251602478
http://exactcode.de | http://t2-project.org | http://rene.rebe.name



----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
lists@xxxxxxxxxxxxxx with a subject of: unsubscribe t2



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise