device/msm8916*: Generate extlinux.conf
Update all msm8916 devices (selected by dependency on the kernel) to generate extlinux.conf so it's there when new lk2nd is released that will drop support for boot/boot.img file in favour of extlinux.conf
Even though "future" lk2nd supports the dtbdir
directive and dtb selection, this uses explicit dtb
to keep the behaviour as-is for the images. Generic images will be tackled at a later point.
This should be a no-op change for most existing installs.
For the reference, this was generated with:
# Add extlinux=true
pmbootstrap chroot --rootfs -- \
apk list -d linux-postmarketos-qcom-msm8916 \
| sed 's/.*{\(.*\)}.*/\1/' | sort -u \
| xargs -i \
sh -c "sed -i '/deviceinfo_generate_bootimg/adeviceinfo_generate_extlinux_config=\"true\"' device/*/{}/deviceinfo"
# Update checksum
pmbootstrap chroot --rootfs -- \
apk list -d linux-postmarketos-qcom-msm8916 \
| sed 's/.*{\(.*\)}.*/\1/' | sort -u \
| xargs -i \
pmbootstrap checksum {}
# reset pkgrel
git status --porcelain | awk 'match($1, "M"){print $2}' | grep APKBUILD | \
xargs sed -i "s/pkgrel=.*/pkgrel=0/"
# bump pkgver
git status --porcelain | awk 'match($1, "M"){print $2}' | grep APKBUILD | \
xargs -i sh -c \
'sed -i "s/pkgver=.*/pkgver=$(( $(grep -m1 pkgver {} | cut -b8- | sed "s/\..*//") + 1))/" {}'