1 |
On 1/4/06, Miguel Filipe <miguel.filipe@×××××.com> wrote: |
2 |
> Hi ppl, |
3 |
> |
4 |
> I cannot emerge nvidia-kernel because it thinks: |
5 |
> "Your kernel was configured to include rivafb support!" |
6 |
> this is what emerge complains about: |
7 |
|
8 |
<snip> |
9 |
|
10 |
> I think its thinking IPV6_PRIVACY which contains the string RIVA, is FB_RIVA. |
11 |
|
12 |
The detection in 8178 is not so simple to be confused by IPV6_PRIVACY. |
13 |
The code that does the detection is: |
14 |
|
15 |
rivafb_sanity_check) |
16 |
# |
17 |
# Check if the kernel was compiled with rivafb support. If so, then |
18 |
# exit, since our driver no longer works with rivafb. |
19 |
# |
20 |
RET=1 |
21 |
VERBOSE=$6 |
22 |
FILE="linux/autoconf.h" |
23 |
|
24 |
if [ -f $HEADERS/$FILE -o -f $OUTPUT/include/$FILE ]; then |
25 |
# |
26 |
# We are looking at a configured source tree; verify |
27 |
# that its configuration doesn't include rivafb using |
28 |
# a compile check. |
29 |
# |
30 |
echo "#include <linux/autoconf.h> |
31 |
#ifdef CONFIG_FB_RIVA |
32 |
#error CONFIG_FB_RIVA defined!! |
33 |
#endif |
34 |
" > conftest$$.c |
35 |
|
36 |
$CC $CFLAGS -c conftest$$.c > /dev/null 2>&1 |
37 |
rm -f conftest$$.c |
38 |
|
39 |
if [ -f conftest$$.o ]; then |
40 |
rm -f conftest$$.o |
41 |
RET=0 |
42 |
fi |
43 |
else |
44 |
CONFIG=$HEADERS/../.config |
45 |
if [ -f $CONFIG ]; then |
46 |
if [ -z "$(grep "^CONFIG_FB_RIVA=y" $CONFIG)" ]; then |
47 |
RET=0 |
48 |
fi |
49 |
fi |
50 |
fi |
51 |
|
52 |
What this code does is: |
53 |
|
54 |
if /usr/src/linux/include/linux/autoconf.h exists, it tries to compile |
55 |
a small program to detect if CONFIG_FB_RIVA is defined there. If it |
56 |
is defined there, the detection fails. |
57 |
|
58 |
If /usr/include/linux/autoconf.h does not exist, it greps the |
59 |
/usr/src/linux/.config file for CONFIG_FB_RIVA. |
60 |
|
61 |
So it looks initially like your .config and autoconf.h files do not |
62 |
agree. I'm not sure how that happens, since the autoconf.h file |
63 |
should be created by saving the configuration from make |
64 |
menuconfig/xconfig/et al. It would not be updated if you edited your |
65 |
.config by hand though! |
66 |
|
67 |
Maybe you can do an "ls -l /usr/src/linux/.config |
68 |
/usr/src/linux/include/linux/autoconf.h" and post the results? |
69 |
|
70 |
-Richard |
71 |
|
72 |
-- |
73 |
gentoo-amd64@g.o mailing list |