This commit is contained in:
parent
9214845714
commit
6bc1b407f8
@ -7,17 +7,15 @@ cd ./output/amdgpu
|
|||||||
# amdgpu drm dir
|
# amdgpu drm dir
|
||||||
mkdir -p ./libd
|
mkdir -p ./libd
|
||||||
cd ./libd
|
cd ./libd
|
||||||
wget --recursive --no-parent -m http://repo.radeon.com/amdgpu/5.5.3/ubuntu/pool/main/libd/
|
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m http://repo.radeon.com/amdgpu/5.5.3/ubuntu/pool/main/libd/
|
||||||
# Return to AMDGPU MIRROR
|
# Return to AMDGPU MIRROR
|
||||||
cd ../
|
cd ../
|
||||||
# amdgpu proprietary dir
|
# amdgpu proprietary dir
|
||||||
mkdir -p ./proprietary
|
mkdir -p ./proprietary
|
||||||
cd ./proprietary
|
cd ./proprietary
|
||||||
wget --recursive --no-parent -m https://repo.radeon.com/amdgpu/5.5.3/ubuntu/pool/proprietary/
|
wget --recursive --no-parent -R "*20.04*.deb" -A "*" -m https://repo.radeon.com/amdgpu/5.5.3/ubuntu/pool/proprietary/
|
||||||
# Return to AMDGPU MIRROR
|
# Return to AMDGPU MIRROR
|
||||||
cd ../
|
cd ../
|
||||||
# Get rid of all 20.04 deb files
|
|
||||||
find . -name \*20.04*.deb -exec rm -fv {} \;
|
|
||||||
# amdgpu-dkms-firmware dir
|
# amdgpu-dkms-firmware dir
|
||||||
mkdir -p ./amdgpu-dkms-firmware
|
mkdir -p ./amdgpu-dkms-firmware
|
||||||
cd ./amdgpu-dkms-firmware
|
cd ./amdgpu-dkms-firmware
|
||||||
|
24
rocm.sh
24
rocm.sh
@ -1,8 +1,6 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
apt install tree
|
|
||||||
|
|
||||||
# ROCm MIRROR
|
# ROCm MIRROR
|
||||||
mkdir -p ./output/rocm
|
mkdir -p ./output/rocm
|
||||||
cd ./output/rocm
|
cd ./output/rocm
|
||||||
@ -13,24 +11,22 @@ cd ../
|
|||||||
mkdir -p ./output
|
mkdir -p ./output
|
||||||
find . -name \*.deb -exec cp -vf {} ./output \;
|
find . -name \*.deb -exec cp -vf {} ./output \;
|
||||||
|
|
||||||
tree
|
|
||||||
|
|
||||||
# Sign the packages
|
# Sign the packages
|
||||||
#dpkg-sig --sign builder ./output/*.deb
|
dpkg-sig --sign builder ./output/*.deb
|
||||||
|
|
||||||
# Pull down existing ppa repo db files etc
|
# Pull down existing ppa repo db files etc
|
||||||
#rsync -azP --exclude '*.deb' ferreo@direct.pika-os.com:/srv/www/pikappa/ ./output/repo
|
rsync -azP --exclude '*.deb' ferreo@direct.pika-os.com:/srv/www/pikappa/ ./output/repo
|
||||||
|
|
||||||
# Check if the rocm component exists
|
# Check if the rocm component exists
|
||||||
#if cat ./output/repo/conf/distributions | grep Components: | grep rocm
|
if cat ./output/repo/conf/distributions | grep Components: | grep rocm
|
||||||
#then
|
then
|
||||||
# true
|
true
|
||||||
#else
|
else
|
||||||
# sed -i "s#Components:#Components: rocm#" ./output/repo/conf/distributions
|
sed -i "s#Components:#Components: rocm#" ./output/repo/conf/distributions
|
||||||
#fi
|
fi
|
||||||
|
|
||||||
# Add the new package to the repo
|
# Add the new package to the repo
|
||||||
#reprepro -C rocm -V --basedir ./output/repo/ includedeb lunar ./output/*.deb
|
reprepro -C rocm -V --basedir ./output/repo/ includedeb lunar ./output/*.deb
|
||||||
|
|
||||||
# Push the updated ppa repo to the server
|
# Push the updated ppa repo to the server
|
||||||
#rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/
|
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/
|
||||||
|
Loading…
Reference in New Issue
Block a user