Skip to content

Commit

Permalink
feat: add rdma-core
Browse files Browse the repository at this point in the history
Add rdma-core

Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
frezbo committed Mar 2, 2023
1 parent 29859fa commit 67600b3
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"matchPackageNames": [
"golang/go",
"nvidia/open-gpu-kernel-modules",
"open-iscsi/open-isns"
"open-iscsi/open-isns",
"linux-rdma/rdma-core"
],
"versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.?(?<patch>\\d+)?$"
},
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ endif

# keep in sync with Pkgfile
BLDR_RELEASE ?= v0.2.0-alpha.12
PKGS ?= v1.4.0-alpha.0-29-g5dbce6b
PKGS ?= v1.4.0-alpha.0-30-g0e63e95

BUILD := docker buildx build
PLATFORM ?= linux/amd64,linux/arm64
Expand Down Expand Up @@ -51,7 +51,8 @@ TARGETS = \
nut-client \
nvidia-container-toolkit \
nvidia-fabricmanager \
nvidia-open-gpu-kernel-modules
nvidia-open-gpu-kernel-modules \
rdma-core

# Temporarily disabled, as mellanox-ofed fails to build with Linux 6.1
# mellanox-ofed \
Expand Down
10 changes: 10 additions & 0 deletions rdma-core/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1alpha1
metadata:
name: rdma-core
version: "$VERSION"
author: Sidero Labs
description: |
This system extension provides Intel microcode binaries.
compatibility:
talos:
version: ">= v1.4.0"
40 changes: 40 additions & 0 deletions rdma-core/pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: rdma-core
variant: scratch
shell: /toolchain/bin/bash
dependencies:
- stage: base
steps:
- sources:
- url: https://github.com/linux-rdma/rdma-core/releases/download/v{{ .RDMA_CORE_VERSION }}/rdma-core-{{ .RDMA_CORE_VERSION }}.tar.gz
destination: rdma-core.tar.gz
sha256: 25d6601e60f27bbcd75e07fe340400cb80e6c3c487679700535385cfc9d9858b
sha512: f31c63aee415fb4aa721fdec2e4d9fb2bef964b1bea93f0170d30fb03b1e798cb11d46bb123db4b2a5002dec17ec16dc6e6aeaebe9f84517bf538dd114726ae1
prepare:
- |
sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml
- |
tar -xzf rdma-core.tar.gz --strip-components=1
mkdir build
cd build
cmake ..
build:
- |
cd build
make -j $(nproc)
install:
- |
mkdir -p /rootfs/
cd build
make DESTDIR=/rootfs install
/lib/ld-musl-x86_64.so.1 --list /rootfs/usr/local/bin/* && exit 1
finalize:
- from: /rootfs
to: /rootfs
- from: /pkg/manifest.yaml
to: /
2 changes: 2 additions & 0 deletions rdma-core/vars.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# renovate: datasource=github-releases extractVersion=^v(?<version>.*)$ depName=linux-rdma/rdma-core
RDMA_CORE_VERSION: 44.0

0 comments on commit 67600b3

Please sign in to comment.