Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 10-08-2008, 11:08 AM   #1
Registered: Feb 2008
Posts: 613
Blog Entries: 1

Rep: Reputation: 47
inconsistency issue of git-clone ***/git/mesa/drm with the existing kernel source

When one issues a command
git-clone git://

, 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.
Old 10-08-2008, 11:19 AM   #2
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
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.
Old 10-08-2008, 10:36 PM   #3
Registered: Feb 2008
Posts: 613

Original Poster
Blog Entries: 1

Rep: Reputation: 47
sorry I sort of understand arguments but not quite.

The end of
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;
cd macros
echo "Building macros"
./ --prefix="$PREFIX";
make install
cd ..

# build drm
cd drm
./ --prefix="$PREFIX"
make -C linux-core
# assuming you're on Linux, otherwise use bsd-core
make install
cd ..

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
total 8
-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
[ckgan@fc9 ~]$


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to clone linux-2.6-mx.git from thirumalesh Linux - Embedded & Single-board computer 1 10-21-2009 07:33 AM
git downgrades my kernel lk.atwork Linux - General 0 06-30-2008 02:47 PM
Issue while installing GIT on Linux ?? ajeetraina Linux - Server 3 08-31-2007 12:24 AM
How to install git-clone on Ubuntu! 5n1p3r Ubuntu 1 06-08-2007 04:18 PM
LXer: Manage Source Code and Linux Kernal Revision Using Git LXer Syndicated Linux News 0 07-01-2006 08:54 AM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:14 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration