1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Hi ! |
5 |
|
6 |
I think that the /usr/src/linux symlink is used in Gentoo by ebuilds (as |
7 |
vmware-modules for example) that build kernel modules for specific |
8 |
hardware which aren't yet in the kernel, and so needs to know the current |
9 |
kernel config to see if it match their dependencies or requirements. |
10 |
|
11 |
Regards. |
12 |
- -- |
13 |
Xavier Parizet |
14 |
|
15 |
Le Jeu 22 mars 2007 20:18, Jakob Buchgraber a écrit : |
16 |
> hi @ all |
17 |
> |
18 |
> I considered switching to LFS a while ago as this would be the only |
19 |
> Linux "distribution" fulfilling my requirements (besides Gentoo, of |
20 |
> course). |
21 |
> So when reading the LFS Book there was a warning saying |
22 |
> |
23 |
> Quote from LFS Book 6.2: |
24 |
> >> Some kernel documentation recommends creating a symlink from |
25 |
> /usr/src/linux pointing to |
26 |
> >> the kernel source directory. This is specific to kernels prior to |
27 |
> the 2.6 series and must not be created |
28 |
> >> on an LFS system as it can cause problems for packages you may wish |
29 |
> to build once your base LFS |
30 |
> >> system is complete. |
31 |
> |
32 |
> The Gentoo Documentation however says: |
33 |
> |
34 |
> Quote from http://www.gentoo.org/doc/en/kernel-upgrade.xml |
35 |
> >> Gentoo requires that the /usr/src/linux symbolic link points to the |
36 |
> sources of the kernel you are running. |
37 |
> |
38 |
> Quote from http://www.gentoo.org/doc/en/alsa-guide.xml |
39 |
> >> Note: The above example assumes that /usr/src/linux symlink points |
40 |
> to the kernel sources you want to use. Please ensure the same before |
41 |
> proceeding. |
42 |
> |
43 |
> But the $KERNEL_DIR/README says: |
44 |
> |
45 |
> Quote from $KERNEL_DIR/README |
46 |
> >> Do NOT use the /usr/src/linux area! This area has a (usually |
47 |
> incomplete) set of kernel headers that are used by the library header |
48 |
> files. |
49 |
> >> They should match the library, and not get messed up by whatever the |
50 |
> kernel-du-jour happens to be. |
51 |
> |
52 |
> So after reading this I searched groups.google.com and the forums about |
53 |
> this issue and found a different approach, which can be used instead of |
54 |
> the /usr/src/linux symlink. |
55 |
> |
56 |
> It's as follows: |
57 |
> In /etc/profile |
58 |
> Set $KERNEL_DIR to /kernel/src/current (symlink) |
59 |
> Set $KBUILD_OUTPUT to /dir/to/store/output/files |
60 |
> |
61 |
> So what's the best way and _why_? |
62 |
> Does it even matter? |
63 |
> |
64 |
> Cheers, |
65 |
> Jay |
66 |
> |
67 |
> -- |
68 |
> Join Linuxfriendlyhardware.org project on irc.freenode.org#lfh (german) |
69 |
> Registered Linux User #373457 |
70 |
> |
71 |
> -- |
72 |
> gentoo-user@g.o mailing list |
73 |
> |
74 |
> |
75 |
|
76 |
|
77 |
-----BEGIN PGP SIGNATURE----- |
78 |
Version: GnuPG v2.0.3 (GNU/Linux) |
79 |
|
80 |
iD8DBQFGAuoFmSNaOeTZvg0RAooRAKCQ3iOaogJdttZJxMKvLl8dgDDxWQCfQEzf |
81 |
WCwduD7yo9HfTikRiSDljM8= |
82 |
=8aE7 |
83 |
-----END PGP SIGNATURE----- |
84 |
|
85 |
-- |
86 |
gentoo-user@g.o mailing list |