Changeset 5889b252


Ignore:
Timestamp:
03/10/2013 07:22:54 PM (11 years ago)
Author:
Krejzi <krejzi@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
e38cfca
Parents:
0f79fa20
Message:

Add R600 backend patches to LLVM 3.2 in order to enable radeonsi in Mesa again.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11083 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/llvm.xml

    r0f79fa20 r5889b252  
    44  <!ENTITY % general-entities SYSTEM "../../general.ent">
    55  %general-entities;
     6
     7  <!ENTITY tstellar-llvm  "http://people.freedesktop.org/~tstellar/llvm/3.2">
    68
    79  <!ENTITY llvm-download-http "http://llvm.org/releases/&llvm-version;/llvm-&llvm-version;.src.tar.gz">
     
    99101    </itemizedlist>
    100102
     103    <bridgehead renderas="sect3">Recommended Patches</bridgehead>
     104    <itemizedlist spacing="compact">
     105      <listitem>
     106        <para>
     107          LLVM R600 Backend:
     108          <ulink url="&tstellar-llvm;/R600-Mesa-9.1.patch"/>
     109        </para>
     110      </listitem>
     111      <listitem>
     112        <para>
     113          LLVM R600 Backend MD5 sum: a6f9ec35fa847c4298213ab28fb868ce
     114        </para>
     115      </listitem>
     116      <listitem>
     117        <para>
     118          LLVM R600 Backend Fixes:
     119          <ulink url="&patch-root;/llvm-&llvm-version;-r600_fixes-1.patch"/>
     120        </para>
     121      </listitem>
     122    </itemizedlist>
     123
    101124    <bridgehead renderas="sect3">Optional Downloads</bridgehead>
    102125    <itemizedlist spacing="compact">
    103126      <listitem>
    104127        <para>
    105           Clang Download (HTTP): <ulink url="&clang-download-http;"/>
    106         </para>
    107       </listitem>
    108       <listitem>
    109         <para>
    110           Clang Download MD5 sum: &clang-md5sum;
    111         </para>
    112       </listitem>
    113       <listitem>
    114         <para>
    115           Clang Download size: &clang-size;
    116         </para>
    117       </listitem>
    118       <listitem>
    119         <para>
    120           Compiler RT Download (HTTP): <ulink url="&compiler-rt-download-http;"/>
    121         </para>
    122       </listitem>
    123       <listitem>
    124         <para>
    125           Compiler RT Download MD5 sum: &compiler-rt-md5sum;
    126         </para>
    127       </listitem>
    128       <listitem>
    129         <para>
    130           Compiler RT Download size: &compiler-rt-size;
     128          Clang: <ulink url="&clang-download-http;"/>
     129        </para>
     130      </listitem>
     131      <listitem>
     132        <para>
     133          Clang MD5 sum: &clang-md5sum;
     134        </para>
     135      </listitem>
     136      <listitem>
     137        <para>
     138          Clang size: &clang-size;
     139        </para>
     140      </listitem>
     141      <listitem>
     142        <para>
     143          Compiler RT: <ulink url="&compiler-rt-download-http;"/>
     144        </para>
     145      </listitem>
     146      <listitem>
     147        <para>
     148          Compiler RT MD5 sum: &compiler-rt-md5sum;
     149        </para>
     150      </listitem>
     151      <listitem>
     152        <para>
     153          Compiler RT size: &compiler-rt-size;
    131154        </para>
    132155      </listitem>
     
    172195sed -e "s@../lib/libprofile_rt.a@../lib/llvm/libprofile_rt.a@g" \
    173196    -i tools/clang/lib/Driver/Tools.cpp</userinput></screen>
     197
     198    <para>
     199      If you have downloaded the recommended patches, apply them by
     200      running the following commands:
     201    </para>
     202
     203<screen><userinput>patch -Np1 -i ../R600-Mesa-9.1.patch &amp;&amp;
     204patch -Np1 -i ../llvm-&llvm-version;-r600_fixes-1.patch</userinput></screen>
    174205
    175206    <para>
     
    189220            --disable-assertions       \
    190221            --disable-debug-runtime    \
    191             --disable-expensive-checks &amp;&amp;
     222            --disable-expensive-checks \
     223            --enable-experimental-targets=R600 &amp;&amp;
    192224make</userinput></screen>
    193225
     
    219251
    220252<screen role="root"><userinput>install -m644 docs/_build/man/* /usr/share/man/man1</userinput></screen>
     253
     254  </sect2>
     255
     256  <sect2 role="commands">
     257    <title>Command Explanations</title>
     258
     259    <para>
     260      <parameter>--enable-libffi</parameter>: This switch enables
     261      <application>LLVM</application> to use
     262      <application>libffi</application>. Remove if you did not
     263      install <application>libffi</application>.
     264    </para>
     265
     266    <para>
     267      <parameter>--enable-optimized</parameter>: This switch enables
     268      compiler optimizations in order to speed up the code and reduce
     269      its size.
     270    </para>
     271
     272    <para>
     273      <parameter>--enable-shared</parameter>: This switch enables
     274      building of the <application>LLVM</application> shared
     275      library which contains all of static libraries linked into
     276      single library.
     277    </para>
     278
     279    <para>
     280      <parameter>--enable-targets=all</parameter>: This switch ensures
     281      that all <application>LLVM</application> targets are built.
     282    </para>
     283
     284    <para>
     285      <parameter>--disable-*</parameter>: These switches disable
     286      features which are used for debugging and are not necesary
     287      on a production system.
     288    </para>
     289
     290    <para>
     291      <parameter>--enable-experimental-targets=R600</parameter>:
     292      This switch enables R600 target which is required by
     293      <application>Mesa</application> to build the radeonsi
     294      3D driver. It can be used for r600
     295      <application>LLVM</application> backend and OpenCL
     296      state tracker in <application>Mesa</application>. Remove
     297      it if you did not apply the recommended patches.
     298    </para>
    221299
    222300  </sect2>
Note: See TracChangeset for help on using the changeset viewer.