main/devicepkg-dev: support installing kernel-specific cmdline config

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7830>
This commit is contained in:
Clayton Craft 2026-01-26 10:45:41 -08:00 committed by The Friendly Merge Bot
parent 43109bb7fd
commit 5f04b534f7
No known key found for this signature in database
5 changed files with 10 additions and 10 deletions

View file

@ -38,6 +38,11 @@ if [ -f "$srcdir/modules-initfs.$kernel" ]; then
> "$subpkgdir/usr/share/mkinitfs/files/00-$pkgname-modules.files"
fi
if [ -f "$srcdir/kernel-cmdline.$kernel.conf" ]; then
install -Dm644 "$srcdir/kernel-cmdline.$kernel.conf" \
"$subpkgdir/usr/lib/kernel-cmdline.d/50-$pkgname.conf"
fi
# Iterate over deviceinfo variables that have the kernel type as suffix
# var looks like: deviceinfo_kernel_cmdline, ...
grep -E "(.+)_$kernel=.*" "$deviceinfo" | \