inconsistency issue of git-clone ***/git/mesa/drm with the existing kernel source
When one issues a command
, one will download and create a directory called linux-core under drm.
linux-core serves to provide the source code for generating
kernel modules of the graphic cards or graphic chipsets.
A big QUESTION: It seems it is most likely that the content of linux-core
will not matches the content of the existing /usr/src/kernels/kernel-version/Makefile, or the existing kernel source.
This will potentially make generation of kernel modules (ko) extremely
difficult. Am I right to say that ? Why would the freedesktop people want
to do such a thing if this is the case ? Isn't linux hard enough already ?
Appreciate anyone who will share his/her opinion on this.
The "freedesktop people" aren't trying to do such a thing. If you didn't install your current kernel from source there should be a source package available for it through your package manager. Using git will download the latest version of the source code, so you'd need to create a working kernel from it if you wish to use it for kernel modules.
sorry I sort of understand arguments but not quite.
The end of http://wiki.x.org/wiki/Development/git
has a script that is attempting to compile drm from the source.
The particular relevant line are (init() is to download drm from git repos):
for repo in $REPOS; do
echo "Cloning $repo";
git clone $repo;
echo "Building macros"
# build drm
make -C linux-core
# assuming you're on Linux, otherwise use bsd-core
Either there is some logic flow or I am still missing something.
Total_MADMAN, you said it is possible to get the correct linux-core
from the package manager ? But my FC9 tells me something different.
[ckgan@fc9 ~]$9 ~]$ rpm -qva | grep kernel
[ckgan@fc9 ~]$ ls -l /usr/src/kernels/2.6.25-14.fc9.x86_64/drivers/char/drm
-rw-r--r-- 1 root root 3806 2008-05-01 18:19 Kconfig
-rw-r--r-- 1 root root 2345 2008-05-01 18:19 Makefile
|All times are GMT -5. The time now is 01:46 AM.|