1 |
On Tue, 2004-01-20 at 19:36, Daniel wrote: |
2 |
> -----BEGIN PGP SIGNED MESSAGE----- |
3 |
> Hash: SHA1 |
4 |
> |
5 |
> |
6 |
> > Sure we can do something like this, but what shall our trigger be? |
7 |
> > |
8 |
> |
9 |
> I think the existance of the file is a trigger enough |
10 |
> |
11 |
> > How about something like this? |
12 |
> > |
13 |
> > if [ `use this_trigger` ] ; then |
14 |
> > for conf in {${PN}-${PV}-${PR},${PN}-${PV},${PN}}.config |
15 |
> > if [ -r /etc/${PN}/${conf} ] ; then |
16 |
> > cp ${conf} ${S}/.config |
17 |
> > break; |
18 |
> > fi |
19 |
> > done |
20 |
> > fi |
21 |
> > |
22 |
> > [ ! -r .config ] && make a config |
23 |
> > .. existing stuff |
24 |
> > |
25 |
> > post install phase |
26 |
> > |
27 |
> > [ `use this_trigger` ] && copy .confg /etc/${PN}/${PN}.config |
28 |
> |
29 |
|
30 |
|
31 |
|
32 |
> This could just be default (no trigger) - I think lisa has done it a few times |
33 |
> in her ebuilds. |
34 |
> |
35 |
|
36 |
I'd rather have a trigger here. The reason for that is I'd prefer to |
37 |
allow the ebuild to continue to attempt to set all the latest settings |
38 |
dynamically and having a missing option in a .config could/might cause |
39 |
some interactivity out of the build process which I want to avoid. |
40 |
|
41 |
This might be a little extreme but do you think we should slap an extra |
42 |
ARCH || CHOST|| CCHOST directory into the ${ROOT}/etc/busybox/whatever/ |
43 |
to allow for unique cross compiling busybox configs? |
44 |
|
45 |
|
46 |
> > |
47 |
> > ----- |
48 |
> > |
49 |
> > Idea here would be fine grained config control by searching |
50 |
> > /etc/busybox/ for |
51 |
> > |
52 |
> > [package]-[version]-[revision].config |
53 |
> > [package]-[version].config |
54 |
> > [package].config |
55 |
> > |
56 |
> |
57 |
> I realy like this idea. |
58 |
> |
59 |
> I like how the default is ${PN}.config too. |
60 |
> |
61 |
> > The config would be searched for in that order and once a config is copied, |
62 |
> > no more attempts would be made. |
63 |
> |
64 |
> Very good. |
65 |
> |
66 |
> Daniel |
67 |
> -----BEGIN PGP SIGNATURE----- |
68 |
> Version: GnuPG v1.2.3 (GNU/Linux) |
69 |
> |
70 |
> iD8DBQFADcmmTDSbtjKmTcgRAmwrAKClw7bHtW8BO/qeriIvXSrci9z9KACfQkJq |
71 |
> q85z8ms6dXKAqTi/ualNsWM= |
72 |
> =rYlX |
73 |
> -----END PGP SIGNATURE----- |
74 |
> |
75 |
> |
76 |
> -- |
77 |
> gentoo-embedded@g.o mailing list |
78 |
-- |
79 |
Ned Ludd <solar@g.o> |
80 |
Gentoo Linux Developer |