mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-22 16:14:20 +00:00
Makefile: add a modules_install target
Allows to cleanly install the module in the standard way, as suggested by Documentation/kbuild/modules.txt in the kernel sources. This is needed when installing from within a build system (such as Buildroot) that implement depmod on its own, and does not need the blacklist and other fixups that are implemented by the 'install' target. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
This commit is contained in:
parent
7b7d6b392a
commit
f7e5725ea2
1 changed files with 3 additions and 0 deletions
3
Makefile
3
Makefile
|
@ -149,6 +149,9 @@ modules:
|
||||||
strip:
|
strip:
|
||||||
$(CROSS_COMPILE)strip 8188eu.ko --strip-unneeded
|
$(CROSS_COMPILE)strip 8188eu.ko --strip-unneeded
|
||||||
|
|
||||||
|
modules_install:
|
||||||
|
$(MAKE) -C $(KSRC) M=`pwd` modules_install
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install -p -m 644 8188eu.ko $(MODDESTDIR)
|
install -p -m 644 8188eu.ko $(MODDESTDIR)
|
||||||
@if [ -a /lib/modules/$(KVER)/kernel/drivers/staging/rtl8188eu/r8188eu.ko ] ; then modprobe -r r8188eu; fi;
|
@if [ -a /lib/modules/$(KVER)/kernel/drivers/staging/rtl8188eu/r8188eu.ko ] ; then modprobe -r r8188eu; fi;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue