Open amstan opened 2 years ago
So let's start!
In https://github.com/archlinuxarm/PKGBUILDs:
last_arch_commit=$(git log --oneline origin/master | grep "core/linux-armv7 to 5.16.1-1"|head -n 1)
git show $(echo $last_arch_commit|cut -d " " -f1):core/linux-armv7/config > /tmp/arch.config
Seems to lead us with https://github.com/archlinuxarm/PKGBUILDs/blob/96d0a0a8a/core/linux-armv7/config
Then back in this our repo, linux-mister/
folder:
cp config mister_old_config
cat /tmp/arch.config | grep -v "#" > config
cat mister_old_config | grep -v "#" >> config
Try compiling, note down the config conflicts (by grepping for "changes choice state") and verify each of them (arch vs mister vs what the result was).
Hold enter to all the options to select all the default options (there's probably a lot because of the 5.16->5.15 mismatch).
Arch will come with a few too many configs, CONFIG_CRYPTO_AEGIS128 even fails to compile.
Try booting.
Then a little bit of normalization by temporarily un-commenting "Copy back our configuration" in the PKGBUILD steps.
Sigh, something went horribly wrong:
-rw-r--r-- 1 alex users 576M Mar 5 15:45 linux-mister-5.15-6-armv7h.pkg.tar.zst
500MB kernel package is a little too big. Maybe the "Hold enter to all the options to select all the default options" step is a little too much. I've done this before though, weird.
Aha, I should have kep the "#" lines from the original arch config. Much less stuff to hold "enter" for now.
Edit: Gah, still no luck:
-rw-r--r-- 1 alex users 576M Mar 5 16:03 linux-mister-5.15-6-armv7h.pkg.tar.zst
I expect to be in the vicinity of 50MB:
-rw-r--r-- 1 alex users 49M Mar 2 09:09 linux-armv7-5.16.12-1-armv7h.pkg.tar.xz
In comparisson, we're at 27MB now without these arch additions:
-rw-r--r-- 1 alex users 27M Mar 5 14:21 linux-mister-5.15-5-armv7h.pkg.tar.zst
Before we get a ton new bugs about configs to add for various gadgets and things, I should probably just enable everything that's already enabled in arch's armv7 config.
Some care has to be taken (since we don't exactly need to boot on absolutelly everything), but a lot of those configs will probably improve quality of life, with not a lot of performance loss.