Ignore:
Timestamp:
12/03/2023 05:56:37 AM (6 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, ken/TL2024, lazarus, plabs/newcss, python3.11, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18
Children:
4614dc1
Parents:
528007c
Message:

llvm: Remove BPF from targets

To use clang with BPF for v4l-utils, libbpf must be installed but it's
not a BLFS package. And I doubt if any BLFS user really uses an IR
remote control on the BLFS system. So let's not make all BLFS users
build something useless.

Note that if both clang and libbpf both exist, v4l-utils will attempt to
use "clang -target bpf" anyway even if -Dbpf=disabled is explicitly
specified (we've got enough surprise from v4l-utils building system
these days!!), so add a note to v4l-utils for people installing non-BLFS
libbpf.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/llvm.xml

    r528007c rc39ddc6  
    311311cd       build &amp;&amp;
    312312
    313 CC=gcc CXX=g++                                  \
    314 cmake -DCMAKE_INSTALL_PREFIX=/usr               \
    315       -DLLVM_ENABLE_FFI=ON                      \
    316       -DCMAKE_BUILD_TYPE=Release                \
    317       -DLLVM_BUILD_LLVM_DYLIB=ON                \
    318       -DLLVM_LINK_LLVM_DYLIB=ON                 \
    319       -DLLVM_ENABLE_RTTI=ON                     \
    320       -DLLVM_TARGETS_TO_BUILD="host;AMDGPU;BPF" \
    321       -DLLVM_BINUTILS_INCDIR=/usr/include       \
    322       -DLLVM_INCLUDE_BENCHMARKS=OFF             \
    323       -DCLANG_DEFAULT_PIE_ON_LINUX=ON           \
    324       -Wno-dev -G Ninja ..                      &amp;&amp;
     313CC=gcc CXX=g++                              \
     314cmake -DCMAKE_INSTALL_PREFIX=/usr           \
     315      -DLLVM_ENABLE_FFI=ON                  \
     316      -DCMAKE_BUILD_TYPE=Release            \
     317      -DLLVM_BUILD_LLVM_DYLIB=ON            \
     318      -DLLVM_LINK_LLVM_DYLIB=ON             \
     319      -DLLVM_ENABLE_RTTI=ON                 \
     320      -DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \
     321      -DLLVM_BINUTILS_INCDIR=/usr/include   \
     322      -DLLVM_INCLUDE_BENCHMARKS=OFF         \
     323      -DCLANG_DEFAULT_PIE_ON_LINUX=ON       \
     324      -Wno-dev -G Ninja ..                  &amp;&amp;
    325325ninja</userinput></screen>
    326326
     
    466466
    467467    <para>
    468       <parameter>-DLLVM_TARGETS_TO_BUILD="host;AMDGPU;BPF"</parameter>: This
     468      <parameter>-DLLVM_TARGETS_TO_BUILD="host;AMDGPU"</parameter>: This
    469469      switch enables building for the same target as the host, and also for
    470       the r600 AMD GPU used by the Mesa r600 and radeonsi drivers. The BPF
    471       target is required to build <xref linkend="v4l-utils"/>. The Default is
     470      the r600 AMD GPU used by the Mesa r600 and radeonsi drivers.
     471      The default is
    472472      all of the targets. You can use a semicolon separated list. Valid targets
    473473      are: host, X86, Sparc, PowerPC, ARM, AArch64, Mips, Hexagon, Xcore,
Note: See TracChangeset for help on using the changeset viewer.