LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 10-08-2008, 12:08 PM   #1
centguy
Member
 
Registered: Feb 2008
Posts: 398
Blog Entries: 1

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


When one issues a command
git-clone git://git.freedesktop.org/git/mesa/drm

, 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, 12:19 PM   #2
Total-MAdMaN
Member
 
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, 11:36 PM   #3
centguy
Member
 
Registered: Feb 2008
Posts: 398
Blog Entries: 1

Original Poster
Rep: Reputation: 35
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):


init()
{
for repo in $REPOS; do
echo "Cloning $repo";
git clone $repo;
done
cd macros
echo "Building macros"
./autogen.sh --prefix="$PREFIX";
($MAKE);
make install
cd ..
}



# build drm
cd drm
./autogen.sh --prefix="$PREFIX"
($MAKE)
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
kernel-headers-2.6.25-14.fc9.x86_64
kerneloops-0.10-11.fc9.x86_64
kernel-2.6.25-14.fc9.x86_64
kernel-2.6.25.11-97.fc9.x86_64
kernel-devel-2.6.25-14.fc9.x86_64
[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 ~]$
 
  


Reply


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 opensource.freescale.com thirumalesh Linux - Embedded & Single-board computer 1 10-21-2009 08:33 AM
git downgrades my kernel lk.atwork Linux - General 0 06-30-2008 03:47 PM
Issue while installing GIT on Linux ?? ajeetraina Linux - Server 3 08-31-2007 01:24 AM
How to install git-clone on Ubuntu! 5n1p3r Ubuntu 1 06-08-2007 05:18 PM
LXer: Manage Source Code and Linux Kernal Revision Using Git LXer Syndicated Linux News 0 07-01-2006 09:54 AM


All times are GMT -5. The time now is 09:01 PM.

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