Difference between revisions of "Building mesa with dri for fbcon"
From Organic Design wiki
m |
(automate with sed and make) |
||
| Line 31: | Line 31: | ||
sed -r 's|DRM_SOURCE_PATH.+$|DRM_SOURCE_PATH = ~/drm/drm/linux-core/|' configs/default > configs/default | sed -r 's|DRM_SOURCE_PATH.+$|DRM_SOURCE_PATH = ~/drm/drm/linux-core/|' configs/default > configs/default | ||
</pre> | </pre> | ||
| − | We need to edit the config to point to the DRM modules. | + | We need to edit the config to point to the DRM modules. And make it. |
| + | <pre> | ||
| + | make linux-solo | ||
| + | </pre> | ||
[[Category:Peerix]][[Category:OpenGL]] | [[Category:Peerix]][[Category:OpenGL]] | ||
Revision as of 04:21, 21 November 2006
The process requires both kernel space and user space software. You will need the kernel, the DRM/DRI and mesa source trees.
I obtained the DRM source with git.
cd mkdir drm cd drm git clone git://anongit.freedesktop.org/git/mesa/drm cd mkdir mesa cd mesa wget http://downloads.sourceforge.net/mesa3d/MesaLib-6.5.1.tar.bz2 wget http://downloads.sourceforge.net/mesa3d/MesaGLUT-6.5.1.tar.bz2 wget http://downloads.sourceforge.net/mesa3d/MesaDemos-6.5.1.tar.bz2 tar xjf MesaLib-6.5.1.tar.bz2 tar xjf MesaGLUT-6.5.1.tar.bz2 tar xjf MesaDemos-6.5.1.tar.bz2 cd mkdir kernel cd kernel wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.16.18.tar.bz2 tar xjf linux-2.6.16.18.tar.bz2 cd ~/drm/drm/linux make LINUXDIR=~/kernel/linux-2.6.18/
All going well you will end up with a bunch of .o files in your ~/drm/drm/linux-core directory.
Now you need to build mesa linking against these .o files.
cd ~/mesa/Mesa-6.5.1 sed -r 's|DRM_SOURCE_PATH.+$|DRM_SOURCE_PATH = ~/drm/drm/linux-core/|' configs/default > configs/default
We need to edit the config to point to the DRM modules. And make it.
make linux-solo



