Skip to content

Commit 18d09f3

Browse files
raramakrraramakr
andauthored
Create non versioned package along with versioned package (#1673)
Added more logging for debugging purpose Input argument will be artifacts directory rather than artifact URL Downloading and extracting artifacts will be performed independently. Clean up the package build directory after building each package Used llvm-strip in the RPM jinja templates, since gcc strip was not able to strip amdgpu code objects TODO: May need to use the same for debian as well ## Motivation Non versioned package is also a requirement ## Technical Details Create non versioned package that depends on versioned package ## Test Plan Verified the nonversioned package creation and its dependencies ## Test Result Versioned and non versioned packages are getting created ## Submission Checklist - [ ] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests. --------- Co-authored-by: raramakr <[email protected]>
1 parent 2e2c743 commit 18d09f3

File tree

4 files changed

+401
-238
lines changed

4 files changed

+401
-238
lines changed

build_tools/packaging/linux/README.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The current scope of this is for producing AMD vendor packaging for hosting in A
55
Python version required : python 3.12 or above
66
Almalinux:
77
dnf install rpm-build
8+
dnf install llvm
89
pip install -r requirements.txt
910

1011
Ubuntu:
@@ -16,9 +17,9 @@ pip install -r requirements.txt
1617

1718
#Usage:
1819
Almalinux:
19-
./build_package.py --artifact-url "https://therock-artifacts.s3.amazonaws.com/16418185899-linux/index-gfx94X-dcgpu.html" --dest-dir ./OUTPUT_PKG --rocm-version 7.1.0 --pkg-type rpm
20+
./build_package.py --artifacts-dir ./ARTIFACTS_DIR --target gfx94X-dcgpu --dest-dir ./OUTPUT_PKG --rocm-version 7.1.0 --pkg-type rpm
2021

2122
Ubuntu:
22-
./build_package.py --artifact-url "https://therock-artifacts.s3.amazonaws.com/16418185899-linux/index-gfx94X-dcgpu.html" --dest-dir ./OUTPUT_PKG --rocm-version 7.1.0 --pkg-type deb
23+
./build_package.py --artifacts-dir ./ARTIFACTS_DIR --target gfx94X-dcgpu --dest-dir ./OUTPUT_PKG --rocm-version 7.1.0 --pkg-type deb
2324

2425
For more options ./build_package.py -h

0 commit comments

Comments
 (0)