-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ON-15113: Simplify DKMS using pure mkdist tarball
- Loading branch information
1 parent
1957083
commit 310033b
Showing
11 changed files
with
130 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,10 @@ | ||
# SPDX-License-Identifier: BSD-2-Clause | ||
# SPDX-FileCopyrightText: (c) Copyright 2023 Advanced Micro Devices, Inc. | ||
|
||
# Unpack onload.tar.bz2 | ||
cd /usr/src && bzip2 -d #TYPE#.tar.bz2 && tar xf #TYPE#.tar | ||
rm -f /usr/src/#TYPE#.tar | ||
|
||
# Put the DKMS config file in the right place | ||
sed -e "s/^PACKAGE_VERSION=.*/PACKAGE_VERSION=#VERSION#/" -e "s/openonload/#TYPE#/g" \ | ||
< /usr/src/modules/#TYPE#-#VERSION#/debian/#TYPE#-dkms.dkms \ | ||
> /usr/src/modules/#TYPE#-#VERSION#/dkms.conf | ||
# SPDX-FileCopyrightText: (c) Copyright 2023-2024 Advanced Micro Devices, Inc. | ||
|
||
# Remove if already exists | ||
dkms remove -m #TYPE# -v #VERSION# --all > /dev/null 2>&1 || true | ||
|
||
# Build and install | ||
dkms add -m #TYPE# -v #VERSION# --sourcetree /usr/src/modules | ||
dkms add -m #TYPE# -v #VERSION# | ||
dkms build -m #TYPE# -v #VERSION# | ||
dkms install -m #TYPE# -v #VERSION# | ||
|
||
# Reload drivers | ||
onload_tool reload | ||
dkms install -m #TYPE# -v #VERSION# --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
# SPDX-License-Identifier: BSD-2-Clause | ||
# SPDX-FileCopyrightText: (c) Copyright 2023 Advanced Micro Devices, Inc. | ||
|
||
onload_tool unload | ||
dkms remove -m #TYPE# -v #VERSION# | ||
rm -rf /usr/src/modules/#TYPE#-#VERSION# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.