1 |
On Tue, 2004-01-20 at 18:45, Daniel wrote: |
2 |
> -----BEGIN PGP SIGNED MESSAGE----- |
3 |
> Hash: SHA1 |
4 |
> |
5 |
> On Wed, 21 Jan 2004 09:05 am, david@×××××××××.com wrote: |
6 |
> > I noticed that the default busybox Config.h(the file that selects what |
7 |
> > applets to compile) doesn't include a few things most systems will prolly |
8 |
> > need(freeramdisk for example). |
9 |
> > |
10 |
> > is there an easy way we can provide people with the capability to |
11 |
> > construct their own customized Config.h and have emerge build busybox |
12 |
> > with that file ? USE flags are a bit unrealistic in this case. |
13 |
> > like... 'place your own/modify the config in |
14 |
> > .../busybox/files/Config.h' |
15 |
> > |
16 |
> |
17 |
> Could, as I'm attempt to do (I copied off someone else) |
18 |
> 1. first emerge places the config file in /etc/embedded/busybox.config |
19 |
> 2. user can edit the file |
20 |
> 3. next emerge uses /etc/mebedded/busybox.config as a config. |
21 |
|
22 |
|
23 |
Sure we can do something like this, but what shall our trigger be? |
24 |
|
25 |
How about something like this? |
26 |
|
27 |
if [ `use this_trigger` ] ; then |
28 |
for conf in {${PN}-${PV}-${PR},${PN}-${PV},${PN}}.config |
29 |
if [ -r /etc/${PN}/${conf} ] ; then |
30 |
cp ${conf} ${S}/.config |
31 |
break; |
32 |
fi |
33 |
done |
34 |
fi |
35 |
|
36 |
[ ! -r .config ] && make a config |
37 |
.. existing stuff |
38 |
|
39 |
post install phase |
40 |
|
41 |
[ `use this_trigger` ] && copy .confg /etc/${PN}/${PN}.config |
42 |
|
43 |
----- |
44 |
|
45 |
Idea here would be fine grained config control by searching |
46 |
/etc/busybox/ for |
47 |
|
48 |
[package]-[version]-[revision].config |
49 |
[package]-[version].config |
50 |
[package].config |
51 |
|
52 |
The config would be searched for in that order and once a config is copied, |
53 |
no more attempts would be made. |
54 |
|
55 |
> |
56 |
> Daniel |
57 |
> -----BEGIN PGP SIGNATURE----- |
58 |
> Version: GnuPG v1.2.3 (GNU/Linux) |
59 |
> |
60 |
> iD8DBQFADb2NTDSbtjKmTcgRAp3tAKChFWoGTvDqGnf2mRaJmWhT3EpszQCggGLh |
61 |
> LI0OtAYyIvehnVx5eb8096I= |
62 |
> =MEIj |
63 |
> -----END PGP SIGNATURE----- |
64 |
> |
65 |
> |
66 |
> -- |
67 |
> gentoo-embedded@g.o mailing list |
68 |
-- |
69 |
Ned Ludd <solar@g.o> |
70 |
Gentoo Linux Developer |