linux-firmware/main.sh

32 lines
960 B
Bash
Raw Normal View History

2023-03-04 12:07:54 +03:00
#! /bin/bash
2023-06-16 18:46:34 +01:00
2024-07-24 00:14:54 +03:00
set -e
2024-12-06 12:36:58 +01:00
VERSION="$(date '+%Y%m%d').git"
#VERSION='20241110'
2024-07-24 00:14:54 +03:00
2024-07-24 14:00:13 +03:00
source ./pika-build-config.sh
echo "$PIKA_BUILD_ARCH" > pika-build-arch
2024-07-22 00:13:20 +03:00
2023-03-03 23:53:16 +03:00
# Clone Upstream
2024-12-06 12:36:58 +01:00
git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/ -b main --depth 1
#git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/ -b $VERSION --depth 1
2024-07-22 02:28:18 +03:00
cp -rvf ./debian ./linux-firmware/
cp -rvf ./ath12k ./linux-firmware/
2023-03-03 23:59:31 +03:00
cd ./linux-firmware
touch debian/changelog
2024-09-02 02:53:27 +02:00
echo -e "linux-firmware ("$VERSION"-101pika1) pika; urgency=medium\n\n * New Upstream Release\n\n -- Ward Nakchbandi <hotrod.master@hotmail.com> Sat, 01 Oct 2022 14:50:00 +0200" > debian/changelog
2023-03-03 23:53:16 +03:00
# Get build deps
apt-get build-dep ./ -y
# Build package
2024-07-24 00:14:54 +03:00
LOGNAME=root dh_make --createorig -y -l -p linux-firmware_"$VERSION" || echo "dh-make: Ignoring Last Error"
2023-05-26 17:35:04 +03:00
dpkg-buildpackage --no-sign
2023-03-03 23:53:16 +03:00
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/