mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
vulkan-loader: fix asm_offset hacks
This commit is contained in:
parent
45370153c4
commit
82e4f7114e
@ -8,16 +8,10 @@ PKG_SHA256="3e30621aea870bfe12227018e73926d4bfacb46b0b207553eb2ebd966df1b202"
|
||||
PKG_LICENSE="Apache-2.0"
|
||||
PKG_SITE="https://github.com/KhronosGroup/Vulkan-Loader"
|
||||
PKG_URL="https://github.com/KhronosGroup/Vulkan-Loader/archive/v${PKG_VERSION}.tar.gz"
|
||||
PKG_DEPENDS_HOST="toolchain:host vulkan-headers:host"
|
||||
PKG_DEPENDS_TARGET="toolchain vulkan-headers"
|
||||
PKG_DEPENDS_TARGET="toolchain Python3:host vulkan-headers"
|
||||
PKG_LONGDESC="Vulkan Installable Client Driver (ICD) Loader."
|
||||
|
||||
configure_package() {
|
||||
# Builds asm_offset binary for GAS / GNU Assembler
|
||||
if [ "${ARCH}" != "arm" ]; then
|
||||
PKG_DEPENDS_TARGET+=" vulkan-loader:host"
|
||||
fi
|
||||
|
||||
# Displayserver Support
|
||||
if [ "${DISPLAYSERVER}" = "x11" ]; then
|
||||
PKG_DEPENDS_TARGET+=" libxcb libX11"
|
||||
@ -26,21 +20,6 @@ configure_package() {
|
||||
fi
|
||||
}
|
||||
|
||||
pre_configure_host() {
|
||||
PKG_CMAKE_OPTS_HOST="-DBUILD_WSI_XCB_SUPPORT=OFF \
|
||||
-DBUILD_WSI_XLIB_SUPPORT=OFF \
|
||||
-DBUILD_WSI_WAYLAND_SUPPORT=OFF \
|
||||
-DBUILD_TESTS=OFF"
|
||||
|
||||
# Hack to workaround missing options to build a standalone asm_offset binary,
|
||||
# if the glibc version of the host & target system differs build will fail otherwise.
|
||||
sed -e 's|COMMAND asm_offset GAS|COMMAND ./asm_offset GAS|g' -i ${PKG_BUILD}/loader/CMakeLists.txt
|
||||
}
|
||||
|
||||
makeinstall_host() {
|
||||
cp ${PKG_BUILD}/.${HOST_NAME}/loader/asm_offset ${TOOLCHAIN}/bin/
|
||||
}
|
||||
|
||||
pre_configure_target() {
|
||||
PKG_CMAKE_OPTS_TARGET="-DBUILD_TESTS=OFF"
|
||||
|
||||
@ -62,7 +41,4 @@ pre_configure_target() {
|
||||
-DBUILD_WSI_XLIB_SUPPORT=OFF \
|
||||
-DBUILD_WSI_WAYLAND_SUPPORT=OFF"
|
||||
fi
|
||||
|
||||
# Hack to run asm_offset located at toolchain path
|
||||
sed -e 's|COMMAND ./asm_offset GAS|COMMAND asm_offset GAS|g' -i ${PKG_BUILD}/loader/CMakeLists.txt
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user