1 |
On Thu, 11 Nov 2004, Peter S. Mazinger wrote: |
2 |
|
3 |
> Hello! |
4 |
> |
5 |
> I really do not understand how these cascading profiles should work?! |
6 |
|
7 |
I will reformulate my question taking current (20041111) profiles as |
8 |
example. |
9 |
|
10 |
uclibc/make.defaults |
11 |
STAGE1_USE="uclibc" |
12 |
GRP_STAGE23_USE="berkdb ncurses readline zlibc uclibc" |
13 |
USE="berkdb ncurses readline zlib uclibc" |
14 |
|
15 |
uclibc/x86/make.defaults |
16 |
ARCH=x86 |
17 |
ACCEPT_KEYWORDS="x86" |
18 |
|
19 |
uclibc/x86/hardened/make.defaults |
20 |
STAGE1_USE="uclibc hardened pic pie" |
21 |
GRP_STAGE23_USE="berkdb ncurses readline zlibc uclibc hardened pic pie" |
22 |
USE="berkdb ncurses readline zlib uclibc hardened pic pie" |
23 |
|
24 |
|
25 |
a. would the following rewrites work? |
26 |
|
27 |
uclibc/make.defaults |
28 |
STAGE1_USE="uclibc" |
29 |
GRP_STAGE23_USE="berkdb ncurses readline zlibc ${STAGE1_USE}" |
30 |
USE="${GRP_STAGE23_USE}" |
31 |
|
32 |
ACCEPT_KEYWORDS="${ARCH}" # only if all archs accept ${ARCH} as |
33 |
keyword, else move this to uclibc/x86/make.defaults, and set explicitely |
34 |
only if ARCH!=ACCEPT_KEYWORDS |
35 |
|
36 |
uclibc/x86/make.defaults |
37 |
ARCH=x86 |
38 |
# define ACCEPT_KEYWORDS only if != ARCH |
39 |
|
40 |
uclibc/x86/hardened/make.defaults |
41 |
STAGE1_USE="hardened pic pie" |
42 |
# and nothing else |
43 |
|
44 |
b. if the use of ${ANYTHING} is not supported in make.defaults then the |
45 |
rewrite would be |
46 |
|
47 |
leave uclibc/make.defaults as it is |
48 |
leave uclibc/x86/make.defaults as it is |
49 |
uclibc/x86/hardened/make.defaults |
50 |
STAGE1_USE="hardened pic pie" |
51 |
GRP_STAGE23_USE="hardened pic pie" |
52 |
USE="hardened pic pie" |
53 |
|
54 |
one of the above rewrites should work if the |
55 |
STAGE1_USE/GRP_STAGE23_USE/USE options are cumulative (not overwriting |
56 |
each other) |
57 |
|
58 |
Peter |
59 |
|
60 |
-- |
61 |
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2 |
62 |
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2 |
63 |
|
64 |
|
65 |
-- |
66 |
gentoo-embedded@g.o mailing list |