blob: d6426fa96bbe3879bd0a47aa17e3d3474a6149c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# 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
}
|