The building of BR2_x86_64 with BR2_LINUX_KERNEL_LATEST_VERSION=y on Buildroot 2022.02-rc2 does not work. >>> linux-headers 5.15.13 Building >>> linux-headers 5.15.13 Installing to staging directory (cd /home/fr/work/egate/x/egate/build/linux-headers-5.15.13; PATH="/home/fr/work/egate/x/egate/host/bin:/home/fr/work/egate/x/egate/host/sbin:/home/fr/bin:/home/fr/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" /usr/bin/make -j9 ARCH=x86_64 HOSTCC="/usr/bin/gcc" HOSTCFLAGS="" HOSTCXX="/usr/bin/g++" INSTALL_HDR_PATH=/home/fr/work/egate/x/egate/host/x86_64-buildroot-linux-gnu/sysroot/usr headers_install) INSTALL /home/fr/work/egate/x/egate/host/x86_64-buildroot-linux-gnu/sysroot/usr/include if ! support/scripts/check-kernel-headers.sh /home/fr/work/egate/x/egate/build /home/fr/work/egate/x/egate/host/x86_64-buildroot-linux-gnu/sysroot 5.16 loose; then exit 1; fi Incorrect selection of kernel headers: expected 5.16.x, got 5.15.x make[1]: *** [package/pkg-generic.mk:332: /home/fr/work/egate/x/egate/build/linux-headers-5.15.13/.stamp_staging_installed] Error 1 make: *** [Makefile:84: _all] Error 2
These Bug still exists in 2022.02-rc3 INSTALL /home/fr/work/egate/x/egate/host/x86_64-buildroot-linux-gnu/sysroot/usr/include if ! support/scripts/check-kernel-headers.sh /home/fr/work/egate/x/egate/build /home/fr/work/egate/x/egate/host/x86_64-buildroot-linux-gnu/sysroot 5.16 loose; then exit 1; fi Incorrect selection of kernel headers: expected 5.16.x, got 5.15.x make[1]: *** [package/pkg-generic.mk:332: /home/fr/work/egate/x/egate/build/linux-headers-5.15.13/.stamp_staging_installed] Error 1
Fixed in git, thanks: https://git.buildroot.org/buildroot/commit/?id=5dc3cfbff11934a3b29f8b2b98aed22ec01e7c42