-
Notifications
You must be signed in to change notification settings - Fork 120
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
feat: fix Mellanox Build & add missing Kernel Flags #1048
base: main
Are you sure you want to change the base?
Changes from 1 commit
33d94f0
3ca8d7d
9afe9be
1875262
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,9 +140,9 @@ vars: | |
lvm2_sha256: 4c5a6923bd1ace7ce04474608a84937ce053ba91b1ace9f0b0017268e732dc7c | ||
lvm2_sha512: 17cd24ceee8026481566824b688dafd03ec816201d5cb3549cb7fc8a36f4cdaa982faaef4dcd26debfe775dea5ffa2744798164314ea6dc99a84f8ccccfc33ff | ||
|
||
mellanox_ofed_version: 5.9-0.5.6.0 | ||
mellanox_ofed_sha256: 4503258cbe92b00c734e612c3a7ad1d71e023fdffae2a2c119f7b537505e499c | ||
mellanox_ofed_sha512: 58604ea89aa8351727532c48f0c59b4e533ba8bfcef9533f45d94e15ffdcf3a5c464398706cad14ebf3826b132972bd044fadbf7f047e60bdb0c2a454c96acd7 | ||
mellanox_ofed_version: 24.07-0.6.1.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please also include a note about the version update in the commit message |
||
mellanox_ofed_sha256: 2d34880b9b79291cb555409c471f06c7eb4375d2f46c96384bf1f71bfaa69dcc | ||
mellanox_ofed_sha512: d2cc757ec8de3fe282c5e51abda6d072810c49d2aae515b4e1039d8ebc11af468266a6eee949ded27fec1e75961b0bce5fca601e0ecaf96e0aa127915701b0e8 | ||
|
||
# renovate: datasource=git-tags extractVersion=^v(?<version>.*)$ depName=git://git.musl-libc.org/musl | ||
musl_version: 1.2.5 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: mellanox-ofed-pkg | ||
variant: scratch | ||
variant: alpine | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure whether or not we should do so. Why doesn't it work without |
||
shell: /toolchain/bin/bash | ||
dependencies: | ||
- stage: kernel-build | ||
|
@@ -13,29 +13,27 @@ steps: | |
ARCH: {{ if eq .ARCH "aarch64"}}arm64{{ else if eq .ARCH "x86_64" }}x86_64{{ else }}unsupported{{ end }} | ||
prepare: | ||
- | | ||
tar -xzf mellanox_ofed.tgz --strip-components=1 | ||
rm /bin/mktemp | ||
ln -s /toolchain/bin/mktemp /bin/ | ||
Comment on lines
+16
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you please add a comment why is this replacement done? |
||
|
||
tar -xzf mellanox_ofed.tgz --strip-components=1 | ||
cd SOURCES | ||
tar xf mlnx-ofed-kernel_5.9.orig.tar.gz | ||
tar xf mlnx-ofed-kernel_* | ||
build: | ||
- | | ||
cd SOURCES/mlnx-ofed-kernel-5.9 | ||
cd SOURCES/mlnx-ofed-kernel-* | ||
|
||
./configure --with-core-mod \ | ||
--with-user_mad-mod \ | ||
--with-user_access-mod \ | ||
--with-addr_trans-mod \ | ||
--with-mlx5-mod \ | ||
--with-ipoib-mod \ | ||
--with-srp-mod \ | ||
--with-iser-mod \ | ||
./configure --all \ | ||
--without-core-mod \ | ||
--without-nvmf_host-mod \ | ||
--without-nvmf_target-mod \ | ||
--kernel-sources=/src \ | ||
-j $(nproc) | ||
|
||
make kernel -j $(nproc) | ||
install: | ||
- | | ||
cd SOURCES/mlnx-ofed-kernel-5.9 | ||
cd SOURCES/mlnx-ofed-kernel-* | ||
|
||
mkdir -p /rootfs/lib/modules/$(cat /src/include/config/kernel.release)/ | ||
cp /src/modules.order /rootfs/lib/modules/$(cat /src/include/config/kernel.release)/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file is generated, instead
.kres.yaml
should be updated withmake rekres
after that