From 025677def8717bd34dc1b554ade30b3b07626cab Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Wed, 14 Jan 2015 14:55:24 -0800 Subject: [PATCH] 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 --- drivers/staging/greybus/Makefile | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.39.2