mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
Merge pull request #10055 from heitbaum/mesahost
mesa: simplify host build logic
This commit is contained in:
commit
48d751fff4
@ -23,7 +23,9 @@ PKG_MESON_OPTS_HOST="-Dglvnd=disabled \
|
|||||||
-Dgallium-vdpau=disabled \
|
-Dgallium-vdpau=disabled \
|
||||||
-Dplatforms= \
|
-Dplatforms= \
|
||||||
-Dglx=disabled \
|
-Dglx=disabled \
|
||||||
-Dvulkan-drivers="
|
-Dvulkan-drivers= \
|
||||||
|
-Dshared-llvm=disabled \
|
||||||
|
-Dtools=panfrost"
|
||||||
|
|
||||||
PKG_MESON_OPTS_TARGET="-Dgallium-drivers=${GALLIUM_DRIVERS// /,} \
|
PKG_MESON_OPTS_TARGET="-Dgallium-drivers=${GALLIUM_DRIVERS// /,} \
|
||||||
-Dgallium-extra-hud=false \
|
-Dgallium-extra-hud=false \
|
||||||
@ -61,15 +63,9 @@ if listcontains "${GRAPHIC_DRIVERS}" "etnaviv"; then
|
|||||||
PKG_DEPENDS_TARGET+=" pycparser:host"
|
PKG_DEPENDS_TARGET+=" pycparser:host"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if listcontains "${GRAPHIC_DRIVERS}" "iris"; then
|
if listcontains "${GRAPHIC_DRIVERS}" "(iris|panfrost)"; then
|
||||||
PKG_DEPENDS_TARGET+=" mesa:host"
|
PKG_DEPENDS_TARGET+=" mesa:host"
|
||||||
PKG_MESON_OPTS_TARGET+=" -Dmesa-clc=system"
|
PKG_MESON_OPTS_TARGET+=" -Dmesa-clc=system -Dprecomp-compiler=system"
|
||||||
fi
|
|
||||||
|
|
||||||
if listcontains "${GRAPHIC_DRIVERS}" "panfrost"; then
|
|
||||||
PKG_DEPENDS_TARGET+=" mesa:host"
|
|
||||||
PKG_MESON_OPTS_HOST+=" -Dtools=panfrost"
|
|
||||||
PKG_MESON_OPTS_TARGET+=" -Dprecomp-compiler=system -Dmesa-clc=system"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if listcontains "${GRAPHIC_DRIVERS}" "(nvidia|nvidia-ng)" ||
|
if listcontains "${GRAPHIC_DRIVERS}" "(nvidia|nvidia-ng)" ||
|
||||||
@ -123,11 +119,8 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
makeinstall_host() {
|
makeinstall_host() {
|
||||||
mkdir -p "${TOOLCHAIN}/bin"
|
host_files="src/compiler/clc/mesa_clc src/compiler/spirv/vtn_bindgen2 src/panfrost/clc/panfrost_compile"
|
||||||
cp -a src/compiler/clc/mesa_clc "${TOOLCHAIN}/bin"
|
|
||||||
cp -a src/compiler/spirv/vtn_bindgen2 "${TOOLCHAIN}/bin"
|
|
||||||
|
|
||||||
if listcontains "${GRAPHIC_DRIVERS}" "panfrost"; then
|
mkdir -p "${TOOLCHAIN}/bin"
|
||||||
cp -a src/panfrost/clc/panfrost_compile "${TOOLCHAIN}/bin"
|
cp -a ${host_files} "${TOOLCHAIN}/bin"
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ RUN apt-get install -y \
|
|||||||
curl bash bc gcc-14 cpp-14 sed patch patchutils tar bzip2 gzip xz-utils zstd perl gawk gperf zip \
|
curl bash bc gcc-14 cpp-14 sed patch patchutils tar bzip2 gzip xz-utils zstd perl gawk gperf zip \
|
||||||
unzip diffutils lzop make file g++-14 xfonts-utils xsltproc default-jre-headless python3 \
|
unzip diffutils lzop make file g++-14 xfonts-utils xsltproc default-jre-headless python3 \
|
||||||
libc6-dev libncurses5-dev libjson-perl libxml-parser-perl libparse-yapp-perl rdfind \
|
libc6-dev libncurses5-dev libjson-perl libxml-parser-perl libparse-yapp-perl rdfind \
|
||||||
golang-1.23-go git openssh-client rsync \
|
golang-1.23-go git openssh-client rsync upx-ucl \
|
||||||
--no-install-recommends \
|
--no-install-recommends \
|
||||||
&& ln -s /usr/lib/go-1.23 /usr/lib/go \
|
&& ln -s /usr/lib/go-1.23 /usr/lib/go \
|
||||||
&& ln -s /usr/lib/go-1.23/bin/go /usr/bin/go \
|
&& ln -s /usr/lib/go-1.23/bin/go /usr/bin/go \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user