From fe44c5ae27993a8ff53f4cefb8a1510863efc8dc Mon Sep 17 00:00:00 2001 From: Rob Norris Date: Tue, 14 Jan 2025 11:51:37 +1100 Subject: [PATCH] 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 Signed-off-by: Rob Norris Closes #16944 --- module/Makefile.in | 1 + 1 file changed, 1 insertion(+) diff --git a/module/Makefile.in b/module/Makefile.in index 529ab81dcec5..f76e94afa410 100644 --- a/module/Makefile.in +++ b/module/Makefile.in @@ -90,6 +90,7 @@ modules_install-Linux: modules_uninstall-Linux-legacy $(MAKE) -C @LINUX_OBJ@ M="$$PWD" modules_install \ INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) \ INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) \ + $(if @KERNEL_ARCH@,ARCH=@KERNEL_ARCH@) \ KERNELRELEASE=@LINUX_VERSION@ @# Remove extraneous build products when packaging if [ -n "$(DESTDIR)" ]; then \