Skip to content

Commit

Permalink
Makefile.in: pass ARCH for modules_install as well
Browse files Browse the repository at this point in the history
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
  • Loading branch information
robn authored Jan 14, 2025
1 parent 2aa3fbe commit fe44c5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions module/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit fe44c5a

Please sign in to comment.