From: Greg Kroah-Hartman Date: Wed, 14 Jan 2015 22:55:24 +0000 (-0800) Subject: greybus: Makefile: provide install target X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=025677def8717bd34dc1b554ade30b3b07626cab;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git greybus: Makefile: provide install target Provide an install Makefile target for those that want to install the kernel modules. Signed-off-by: Greg Kroah-Hartman -- 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 --- diff --git a/drivers/staging/greybus/Makefile b/drivers/staging/greybus/Makefile index 8e6551b08a93..bdb175ca810c 100644 --- a/drivers/staging/greybus/Makefile +++ b/drivers/staging/greybus/Makefile @@ -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)