Skip to content

Commit fe44c5a

Browse files
authored
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 <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #16944
1 parent 2aa3fbe commit fe44c5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

module/Makefile.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ modules_install-Linux: modules_uninstall-Linux-legacy
9090
$(MAKE) -C @LINUX_OBJ@ M="$$PWD" modules_install \
9191
INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) \
9292
INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) \
93+
$(if @KERNEL_ARCH@,ARCH=@KERNEL_ARCH@) \
9394
KERNELRELEASE=@LINUX_VERSION@
9495
@# Remove extraneous build products when packaging
9596
if [ -n "$(DESTDIR)" ]; then \

0 commit comments

Comments
 (0)