OSDN Git Service

greybus: Makefile: provide install target
authorGreg Kroah-Hartman <greg@kroah.com>
Wed, 14 Jan 2015 22:55:24 +0000 (14:55 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 15 Jan 2015 05:09:27 +0000 (21:09 -0800)
Provide an install Makefile target for those that want to install the
kernel modules.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
--
v3: resend to list, somehow this thread got taken private and v2 never
    made it there.

v2: add -a option to depmod, thanks to Mitchell

drivers/staging/greybus/Makefile

index 8e6551b..bdb175c 100644 (file)
@@ -46,3 +46,7 @@ clean:
 coccicheck:
        $(MAKE) -C $(KERNELDIR) M=$(PWD) coccicheck
 
+install: module
+       mkdir -p /lib/modules/$(KERNELVER)/kernel/drivers/greybus/
+       cp -f *.ko /lib/modules/$(KERNELVER)/kernel/drivers/greybus/
+       depmod -a $(KERNELVER)