You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
840 B
35 lines
840 B
# Copyright 2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
inherit go-module
|
|
# update these on every bump
|
|
VERSION=v1.18.1-8-gabd271e
|
|
TAG="amd-gpu-helm-${PV}"
|
|
|
|
DESCRIPTION="AMD GPU device plugin for kubernetes"
|
|
HOMEPAGE="https://github.com/RadeonOpenCompute/k8s-device-plugin"
|
|
SRC_URI="https://github.com/RadeonOpenCompute/k8s-device-plugin/archive/${TAG}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="Apache-2.0"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
DEPEND="sys-apps/hwloc
|
|
x11-libs/libdrm[video_cards_amdgpu]"
|
|
RDEPEND="${DEPEND}
|
|
sys-cluster/kubelet"
|
|
|
|
S="${WORKDIR}/k8s-device-plugin-${TAG}"
|
|
|
|
src_compile() {
|
|
GOBIN="${S}/bin" ego install -ldflags="-X main.gitDescribe=${VERSION}" \
|
|
./cmd/k8s-device-plugin
|
|
}
|
|
|
|
src_install() {
|
|
exeinto /var/lib/kubelet/device-plugins
|
|
doexe bin/k8s-device-plugin
|
|
einstalldocs
|
|
}
|