[Freedreno] compiling mesa/libdrm/xf86-video-freedreno

Nicolas Dechesne nicolas.dechesne at linaro.org
Fri Sep 12 02:55:51 PDT 2014


Vinay,

On Fri, Sep 12, 2014 at 7:46 AM, vinay simha
<vinaysimha at inforcecomputing.com> wrote:
> Is there a way to build the mesa/libdrm/xf86-video-freedreno in the
> development machine rather than on the target(ifc6410) board ?

I assuming you mean 'building for ubuntu', each distro will have
different build mechanisms..

it might be possible, but you might need to setup a cross chroot with
all the development files, you will also need to use the right
parameters to the configure scripts, and install the appropriate cross
toolchain.

overall i would not really recommend getting into doing that.. but if
you are successful, please let us know and share the details of what
you've done.

>
> I am assuming that this is the way to build in the target

yes. for native compilation the instructions seem ok (you are missing
some 'sudo', but i guess you removed them explicitely). also note that
by doing so you are rebuilding the components from 'upstream', if you
want to rebuild the ubuntu packages which are used for the linaro
releases, the instructions would be:

sudo apt-get update
sudo apt-get build-dep <pkg>
apt-get source <pkg>

Then you can rebuild the package locally with:
cd <pkg-version>
dpkg-buildpackage -b -us -uc

in that case you would rebuild exactly what was used for the release

>
> #apt-get update
> #apt-get build-dep xf86-video-freedreno
> #apt-get build-dep mesa
> #apt-get build-dep drm
>
> ----------
> mesa
> ----------
> #git clone git://anongit.freedesktop.org/mesa/mesa
> #git checkout -b mesa-10.2.7 mesa-10.2.7
> #./autogen.sh --prefix=/usr --with-dri-drivers=
> --with-gallium-drivers=freedreno,swrast --with-egl-platforms=x11
> --enable-gles2 --enable-gles1 --enable-debug --enable-gallium-egl
> --disable-gallium-llvm --enable-xa --disable-dri3
> #make
> #make install
>
> ----------
> drm
> ----------
> #git clone git://anongit.freedesktop.org/mesa/drm
> #git checkout -b libdrm-2.4.56 libdrm-2.4.56
> #./autogen.sh --prefix=/usr --enable-freedreno-experimental-api
> #make
> #make install
>
>
> ----------
> xf86-freedreno
> ----------
> #git clone git://anongit.freedesktop.org/xorg/driver/xf86-video-freedreno
> #git checkout -b xf86-video-freedreno-1.2.0 xf86-video-freedreno-1.2.0
> #./autogen.sh --prefix=/usr
> #make
> #make install


More information about the Freedreno mailing list