libhsakmt - Add make option to package thunk as RPM
Add an option to libhsakmt to allow the thunk to be packaged as an RPM. The default will remain being built as-is, but this can now be packaged as an RPM by using "make src rpm" . build_thunk.sh will be modified to reflect this new option. Change-Id: I38e03d10cfb5035bdf0a87635a784c47a709a5b6
Este commit está contenido en:
1 padre
f885e551aa
commit
6ceed7def3
3 files changed
+43
-3
No files matched your search
@@ -0,0 +1,30 @@
|
||||
%define name libhsakmt
|
||||
%define version 1.6.0
|
||||
%define thunkroot %{getenv:THUNK_ROOT}
|
||||
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
Release: 1
|
||||
Summary: Thunk libraries for AMD KFD
|
||||
|
||||
Group: System Environment/Libraries
|
||||
License: Advanced Micro Devices Inc.
|
||||
|
||||
%description
|
||||
This package includes the libhsakmt (Thunk) libraries
|
||||
for AMD KFD
|
||||
|
||||
%prep
|
||||
%setup -T -D -c -n %{name}
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT
|
||||
cp -R %{thunkroot}/build/rpm/libhsakmt/usr $RPM_BUILD_ROOT
|
||||
|
||||
find $RPM_BUILD_ROOT \! -type d | sed "s|$RPM_BUILD_ROOT||"> fw.list
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f fw.list
|
||||
%defattr(-,root,root,-)
|
||||
Reference in new issue
Block a user