Skip to content

Commit

Permalink
feat: add mellanox ofed drivers extension
Browse files Browse the repository at this point in the history
Add Mellanox OFED drivers extension.
Keeping it disabled until it builds with kernel 6.1
Ref: siderolabs/pkgs#661

Signed-off-by: Noel Georgi <git@frezbo.dev>
  • Loading branch information
frezbo committed Jan 26, 2023
1 parent 2126f28 commit b378a46
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ TARGETS = \

# Temporarily disabled, as drbd-pkg fails to build with Linux 6.1
# drbd \
# mellanox-ofed \
NONFREE_TARGETS =

Expand Down
10 changes: 10 additions & 0 deletions drivers/mellanox-ofed/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1alpha1
metadata:
name: mellanox-ofed
version: "$VERSION"
author: SideroLabs
description: |
This system extension provides kernel module driver for Mellanox OFED built against a specific Talos version.
compatibility:
talos:
version: ">= v1.3.0"
22 changes: 22 additions & 0 deletions drivers/mellanox-ofed/pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: mellanox-ofed
variant: scratch
shell: /toolchain/bin/bash
dependencies:
- stage: base
# The pkgs version for a particular release of Talos as defined in
# https://github.com/siderolabs/talos/blob/<talos version>/pkg/machinery/gendata/data/pkgs
- image: "{{ .PKGS_PREFIX }}/mellanox-ofed-pkg:{{ .PKGS_VERSION }}"
steps:
- prepare:
- |
sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml
- install:
- |
mkdir -p /rootfs/lib/modules
cp -R /lib/modules/* /rootfs/lib/modules
finalize:
- from: /rootfs
to: /rootfs
- from: /pkg/manifest.yaml
to: /
2 changes: 2 additions & 0 deletions drivers/mellanox-ofed/vars.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# the first part is the driver version and the second the talos version for which the module is built against
VERSION: "5.8-1.1.2.1-{{ .BUILD_ARG_TAG }}"

0 comments on commit b378a46

Please sign in to comment.