]> git.sur5r.net Git - groeck-it87/commitdiff
Create the hwmon folder if it does not exist
authorYohan Pereira <yohan.pereira@gmail.com>
Sat, 26 Aug 2017 13:16:09 +0000 (18:46 +0530)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 27 Aug 2017 17:18:07 +0000 (10:18 -0700)
Makefile

index 1ee555c22e6f86a1482a40676c47e8d0243092bb..b975bc769a333c92dd6f884cb76d29919c128200 100644 (file)
--- 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)