Skip to content

feat: add rdma-core #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
38 changes: 38 additions & 0 deletions rdma-core/pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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
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