Makefile.in: pass ARCH for modules_install as well

To do a cross-build using only kbuild rather than a full source tree,
ARCH= needs to be passed for the kbuild Makefile to find the
archspecific Makefile.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16944
This commit is contained in:
Rob Norris 2025-01-14 11:51:37 +11:00 committed by Ameer Hamza
parent fabdd502f4
commit 8eba6a5ba1

View File

@ -90,6 +90,7 @@ modules_install-Linux: modules_uninstall-Linux-legacy
$(MAKE) -C @LINUX_OBJ@ M="$$PWD" modules_install \ $(MAKE) -C @LINUX_OBJ@ M="$$PWD" modules_install \
INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) \ INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) \
INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) \ INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) \
$(if @KERNEL_ARCH@,ARCH=@KERNEL_ARCH@) \
KERNELRELEASE=@LINUX_VERSION@ KERNELRELEASE=@LINUX_VERSION@
@# Remove extraneous build products when packaging @# Remove extraneous build products when packaging
if [ -n "$(DESTDIR)" ]; then \ if [ -n "$(DESTDIR)" ]; then \