From b9deb7cb414069672ccadbc934322db50ed168c2 Mon Sep 17 00:00:00 2001 From: Yohan Pereira Date: Sat, 26 Aug 2017 18:46:09 +0530 Subject: [PATCH] Create the hwmon folder if it does not exist --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1ee555c..b975bc7 100644 --- a/Makefile +++ b/Makefile @@ -32,5 +32,6 @@ modules clean: install: modules_install modules_install: - cp $(DRIVER).ko $(KERNEL_MODULES)/kernel/$(MOD_SUBDIR) + mkdir -p $(KERNEL_MODULES)/kernel/$(MOD_SUBDIR) + cp $(DRIVER).ko $(KERNEL_MODULES)/kernel/$(MOD_SUBDIR)/ depmod -a -F $(SYSTEM_MAP) $(TARGET) -- 2.39.2