
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 47s
30 lines
810 B
Bash
Executable File
30 lines
810 B
Bash
Executable File
#! /bin/bash
|
|
|
|
set -e
|
|
|
|
. ./pika-build-config.sh
|
|
|
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
|
|
|
VERSION="6.10.5.60300"
|
|
LINUX_FIRMWARE_VERSION="20250109"
|
|
|
|
# Clone Upstream
|
|
git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/ -b "$LINUX_FIRMWARE_VERSION" --depth 1
|
|
mkdir -p ./amdgpu-dkms-firmware-upstream/lib/firmware/updates/
|
|
cp -rvf ./linux-firmware/amdgpu ./amdgpu-dkms-firmware-upstream/lib/firmware/updates/
|
|
cp -rvf ./debian ./amdgpu-dkms-firmware-upstream/
|
|
cd ./amdgpu-dkms-firmware-upstream/
|
|
|
|
# Get build deps
|
|
LOGNAME=root dh_make --createorig -y -l -p amdgpu-dkms-firmware-upstream_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
|
apt-get build-dep ./ -y
|
|
|
|
# Build package
|
|
dpkg-buildpackage --no-sign
|
|
|
|
# Move the debs to output
|
|
cd ../
|
|
mkdir -p ./output
|
|
mv ./*.deb ./output/
|