Created
October 25, 2024 23:29
-
-
Save jarkkojs/d95bbfaf9b35a18fc9199ab72e51a91c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Ripped off from Mastodon. Guaranteed not to work. | |
# https://fosstodon.org/@kernellogger/113368479010345513 | |
git clone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ | |
cd linux | |
git remote add --no-tags -t ark-vanilla-mainline ark-vanilla https://gitlab.com/knurd42/linux/ | |
git fetch ark-vanilla-mainline | |
git archive --format=tar ark-vanilla/ark-vanilla-mainline makefile Makefile.rhelver redhat/ .copr | tar -x | |
sed -i '/# We are using a recursive / i include Makefile.rhelver\n' Makefile | |
sed -i 's!define with_realtime 1!define with_realtime 0!' redhat/kernel.spec.template | |
# https://fosstodon.org/@kernellogger/113368484973982057 | |
sed -i 's!^\(UPSTREAM_BRANCH \?.\?=\)\(.*\)!\1 origin!' redhat/kernel.spec.template | |
git add Makefile makefile Makefile.rhelver redhat/ | |
git add -f .copr redhat/kabi/kabi-module/kabi* | |
git commit -q -s -m "import ark-infra" | |
make -j $(nproc --all) dist-srpm | |
mock redhat/rpm/SRPMS/kernel-*.src.rpm | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment