mxm_wifiex: add modules_install target

To install out-of-tree kernel module, as per documentation:

    modules_install
        Install the external module(s). The default location is
        /lib/modules/<kernel_release>/extra/, but a prefix may
        be added with INSTALL_MOD_PATH (discussed in section 5).

Link: https://www.kernel.org/doc/Documentation/kbuild/modules.txt
Signed-off-by: grygorii tertychnyi <grembeter@outlook.com>
This commit is contained in:
grygorii tertychnyi 2024-05-19 10:19:19 +02:00
parent a84df58315
commit 1f71540d8e
No known key found for this signature in database
GPG key ID: A93FE45E545E545F

View file

@ -660,6 +660,9 @@ install: default
echo $(INSTALLDIR)
echo "MX Driver Installed"
modules_install:
$(MAKE) -C $(KERNELDIR) M=$(PWD) INSTALL_MOD_DIR=$(INSTALLDIR) modules_install
distclean:
-find . -name "*.o" -exec rm {} \;
-find . -name "*.orig" -exec rm {} \;