2023-03-26 07:32:30 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2023-12-17 14:52:08 +00:00
|
|
|
# Copyright (C) 2022-present JELOS (https://github.com/JustEnoughLinuxOS)
|
2023-03-26 07:32:30 +00:00
|
|
|
|
|
|
|
PKG_NAME="libmali-vulkan"
|
2023-12-01 01:41:46 +00:00
|
|
|
PKG_VERSION="r46p0-01eac1"
|
2023-08-25 15:12:58 +00:00
|
|
|
PKG_LICENSE="mali_driver"
|
2023-03-26 07:32:30 +00:00
|
|
|
PKG_ARCH="arm aarch64"
|
2023-08-25 15:12:58 +00:00
|
|
|
PKG_SITE="https://developer.arm.com/downloads/-/mali-drivers/user-space"
|
|
|
|
PKG_URL="https://developer.arm.com/-/media/Files/downloads/mali-drivers/user-space/odroid-n2plus/BXODROIDN2PL-${PKG_VERSION}.tar"
|
2023-03-30 01:19:03 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain mesa vulkan-tools"
|
2023-03-26 07:32:30 +00:00
|
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
PKG_LONGDESC="Vulkan Mali drivers for s922x soc"
|
|
|
|
|
2023-08-25 15:12:58 +00:00
|
|
|
make_target() {
|
|
|
|
:
|
|
|
|
}
|
|
|
|
|
2023-03-26 07:32:30 +00:00
|
|
|
makeinstall_target() {
|
2023-08-25 15:12:58 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/{lib,share}
|
2023-08-25 15:40:15 +00:00
|
|
|
tar -xvJf ${PKG_BUILD}/mali.tar.xz -C ${INSTALL}
|
|
|
|
mv ${INSTALL}/lib/${TARGET_ARCH}-linux-gnu/* ${INSTALL}/usr/lib
|
|
|
|
rm -r ${INSTALL}/lib
|
2023-08-28 14:48:42 +00:00
|
|
|
tar -xvJf ${PKG_BUILD}/rootfs_additions.tar.xz -C ${INSTALL}/usr/share
|
|
|
|
mv ${INSTALL}/usr/share/etc/vulkan/* ${INSTALL}/usr/share/vulkan/
|
|
|
|
rm -r ${INSTALL}/usr/share/etc
|
2023-03-26 07:32:30 +00:00
|
|
|
}
|