22.03 build fails on button-hotplug package

Freshly cloned 22.03 compiles fine with a bare x86 config (make menuconfig, and only select x86_64 target), but after I select packages in menuconfig it fails to build button-hotplug. It looks like a build byproduct isn't being cleaned up, so it doesn't re-make the generated makefile that includes the definition for button-hotplug.o. I made another build tree to compare side-by-side and it looks like .button-hotplug.o.cmd and .button-hotplug.mod.cmd never get re-generated.

Running make clean doesn't work, only make distclean works to clean it up and it will build after that if I use a bare config. As soon as I copy in the .config with all the packages selected, it fails. Any help would be appreciated.

Here's the end of the build output where it fails (V=sc):

make[3]: Entering directory '/home/ld-admin/openwrt-22.03/package/kernel/button-hotplug'
rm -f /home/ld-admin/openwrt-22.03/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/.built
touch /home/ld-admin/openwrt-22.03/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/.built_check
make -C "/home/ld-admin/openwrt-22.03/build_dir/target-x86_64_musl/linux-x86_64/linux-5.10.131" KCFLAGS="-fmacro-prefix-map=/home/ld-admin/openwrt-22.03/build_dir/target-x86_64_musl=target-x86_64_musl -fno-caller-saves " HOSTCFLAGS="-O2 -I/home/ld-admin/openwrt-22.03/staging_dir/host/include -I/home/ld-admin/openwrt-22.03/staging_dir/hostpkg/include -I/home/ld-admin/openwrt-22.03/staging_dir/target-x86_64_musl/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="x86_64-openwrt-linux-musl-" ARCH="x86" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Wed Jul 27 22:50:13 2022" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/home/ld-admin/openwrt-22.03/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/home/ld-admin/openwrt-22.03/staging_dir/host/lib" CONFIG_SHELL="bash" V=1  cmd_syscalls= KBUILD_EXTRA_SYMBOLS="" KERNELRELEASE=5.10.131 M="/home/ld-admin/openwrt-22.03/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug" EXTRA_CFLAGS=" -DCONFIG_BUTTON_HOTPLUG=1  " CONFIG_BUTTON_HOTPLUG=m modules
make[4]: Entering directory '/home/ld-admin/openwrt-22.03/build_dir/target-x86_64_musl/linux-x86_64/linux-5.10.131'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
echo >&2;                                                       \
echo >&2 "  ERROR: Kernel configuration is invalid.";           \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";      \
echo >&2 ;                                                      \
/bin/false)
make -f ./scripts/Makefile.build obj=/home/ld-admin/openwrt-22.03/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug \
single-build= \
need-builtin=1 need-modorder=1
make[5]: *** No rule to make target '/home/ld-admin/openwrt-22.03/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/button-hotplug.o', needed by '/home/ld-admin/openwrt-22.03/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/button-hotplug.mod'.  Stop.
make[4]: *** [Makefile:1822: /home/ld-admin/openwrt-22.03/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug] Error 2
make[4]: Leaving directory '/home/ld-admin/openwrt-22.03/build_dir/target-x86_64_musl/linux-x86_64/linux-5.10.131'
make[3]: *** [Makefile:53: /home/ld-admin/openwrt-22.03/build_dir/target-x86_64_musl/linux-x86_64/button-hotplug/.built] Error 2
make[3]: Leaving directory '/home/ld-admin/openwrt-22.03/package/kernel/button-hotplug'
time: package/kernel/button-hotplug/compile#0.59#0.14#0.72
    ERROR: package/kernel/button-hotplug failed to build.
make[2]: *** [package/Makefile:116: package/kernel/button-hotplug/compile] Error 1
make[2]: Leaving directory '/home/ld-admin/openwrt-22.03'
make[1]: *** [package/Makefile:110: /home/ld-admin/openwrt-22.03/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/ld-admin/openwrt-22.03'
make: *** [/home/ld-admin/openwrt-22.03/include/toplevel.mk:230: world] Error 2