Regression: pmbootstrap can't build linux-postmarketos-rockchip: can't find /home/pmos/build/src//include/config/kernel.release
Using the envkernel.sh flow, with something like the following steps:
source /path/to/pmbootstrap/helpers/envkernel.sh
cp /path/to/postmarketos/var/pmbootstrap/cache_git/pmaports/device/community/linux-postmarketos-rockchip/config-postmarketos-rockchip.aarch64 arch/arm64/configs/rockchip_defconfig
make rockchip_defconfig
make -j
pmbootstrap -v --details-to-stdout build --envkernel linux-postmarketos-rockchip
The last step fails with the following (trimmed):
[...]
[11:42:48] run: ['sudo', 'env', '-i', '/usr/bin/sh', '-c', 'CHARSET=UTF-8 HISTFILE=\'~/.ash_history\' HOME=/root LANG=UTF-8 PATH=/usr/lib/ccache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PYTHONUNBUFFERED=1 SHELL=/bin/ash TERM=xterm /usr/sbin/chroot /path/to/postmarketos/var/pmbootstrap/chroot_native /bin/sh -c \'cd /home/pmos/build;busybox su pmos -c \'"\'"\'CARCH=aarch64 CHOST=aarch64 CBUILD=x86_64 SUDO_APK=\'"\'"\'"\'"\'"\'"\'"\'"\'abuild-apk --no-progress\'"\'"\'"\'"\'"\'"\'"\'"\' HOME=/home/pmos abuild rootpkg ;\'"\'"\' ;\' ;']
>>> linux-postmarketos-rockchip: Entering fakeroot...
install: can't stat '/home/pmos/build/src//include/config/kernel.release': No such file or directory
Could not find zImage in /home/pmos/build/src/arch/arm64/boot!
>>> ERROR: linux-postmarketos-rockchip*: package failed
>>> ERROR: linux-postmarketos-rockchip: rootpkg failed
[...]
If I revert this commit in bootstrap, this process no longer fails:
commit 04635dcb Author: Caleb Connolly caleb@postmarketos.org Date: Sat Nov 16 21:08:45 2024 +0100
build: envkernel: cleanup behaviour (MR 2491)