linux-firmware/mainv3.sh

36 lines
1.5 KiB
Bash
Raw Normal View History

2023-03-04 10:07:54 +01:00
#! /bin/bash
2023-06-16 19:46:34 +02:00
2024-07-23 23:14:54 +02:00
set -e
VERSION="$(date '+%Y%m%d').git"
2024-07-22 22:25:11 +02:00
export DEBIAN_FRONTEND="noninteractive"
export DEB_BUILD_MAINT_OPTIONS="optimize=+lto -march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32"
export DEB_CFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32"
export DEB_CPPFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32"
export DEB_CXXFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32"
export DEB_LDFLAGS_MAINT_APPEND="-march=x86-64-v3 -O3 -flto -fuse-linker-plugin -falign-functions=32"
export DEB_BUILD_OPTIONS="nocheck notest terse"
export DPKG_GENSYMBOLS_CHECK_LEVEL=0
2024-07-21 23:13:20 +02:00
2023-03-03 21:53:16 +01:00
# Clone Upstream
2023-05-26 16:35:04 +02:00
#git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/
2024-07-22 01:30:51 +02:00
git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/ -b main --depth 1
2024-07-22 01:28:18 +02:00
cp -rvf ./debian ./linux-firmware/
cp -rvf ./ath12k ./linux-firmware/
2023-03-03 21:59:31 +01:00
cd ./linux-firmware
touch debian/changelog
2024-07-23 23:14:54 +02:00
echo -e "linux-firmware ("$VERSION"-101pika1) canary; 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 21:53:16 +01:00
# Get build deps
apt-get build-dep ./ -y
# Build package
2024-07-23 23:14:54 +02:00
LOGNAME=root dh_make --createorig -y -l -p linux-firmware_"$VERSION" || echo "dh-make: Ignoring Last Error"
2023-05-26 16:35:04 +02:00
dpkg-buildpackage --no-sign
2023-03-03 21:53:16 +01:00
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/