diff --git a/.github/renovate.json b/.github/renovate.json index 13a1ac21..d007ac9f 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -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:^(?\\d+)\\.(?\\d+)\\.?(?\\d+)?$" }, diff --git a/Makefile b/Makefile index 3f03d66a..930304df 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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 \ diff --git a/rdma-core/manifest.yaml b/rdma-core/manifest.yaml new file mode 100644 index 00000000..ec943e19 --- /dev/null +++ b/rdma-core/manifest.yaml @@ -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" diff --git a/rdma-core/pkg.yaml b/rdma-core/pkg.yaml new file mode 100644 index 00000000..a80bf90a --- /dev/null +++ b/rdma-core/pkg.yaml @@ -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: / diff --git a/rdma-core/vars.yaml b/rdma-core/vars.yaml new file mode 100644 index 00000000..3dde11fe --- /dev/null +++ b/rdma-core/vars.yaml @@ -0,0 +1,2 @@ +# renovate: datasource=github-releases extractVersion=^v(?.*)$ depName=linux-rdma/rdma-core +RDMA_CORE_VERSION: 44.0