Commit Graph

14 Commits

Author SHA1 Message Date
mettacrawler
3436b28078 Support Arch
Arch uses /proc/kallsyms and /proc/config.gz by default instead of /boot/System.map* and /boot/config*
2018-04-29 10:33:30 -07:00
Burt P
7f59901679 Makefile: DKMS fix
Allow DKMS (or anyone) to specify TARGET in Makefile.

Signed-off-by: Burt P <pburt0@gmail.com>
2018-01-13 13:19:57 -08:00
Burt P
5edd7bb6f9 Add optional DKMS target to Makefile (v2)
Using DKMS, the driver will be automatically rebuilt when
the kernel is updated.

* `make dkms` to install via DKMS
* `make dkms_clean` to remove from DKMS

Signed-off-by: Burt P <pburt0@gmail.com>
2018-01-06 04:19:36 -08:00
Guenter Roeck
8293dc9f82 Revert "Add optional DKMS target to Makefile"
This reverts commit 6c1e48b4f1.

See comments:

"This is indeed not working, at least on Fedora. I tried specifying
MAKE and CLEAN but the outcome is the same (which makes sense, since
the defaults should already cover this)."

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2017-12-30 18:26:30 -08:00
Burt P
6c1e48b4f1 Add optional DKMS target to Makefile
Using DKMS, the driver will be automatically rebuilt when
the kernel is updated.

* `make dkms` to install via DKMS
* `make dkms_clean` to remove from DKMS

Signed-off-by: Burt P <pburt0@gmail.com>
2017-12-03 09:53:19 -08:00
Guenter Roeck
1d68bab74c Makefile: Versioning, take three
Make sure the build passes if the source is not in a git repository.
Again, that means that version information won't be available, but there
is only so much we can do about that.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2017-10-02 10:53:44 -07:00
Guenter Roeck
5e4d82b615 Drop version.h
Some distributions use their own Makefile and thus won't create version.h,
resulting in a build failure. Pass the version as define instead.
That won't help for generating the driver version with those distributions,
but at least the driver will build.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2017-10-01 19:15:58 -07:00
Guenter Roeck
32d442e05e Remove version.h when running clean, and clean does not depend on version.h
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2017-09-24 04:20:38 -07:00
Guenter Roeck
e7caee4aaf Makefile: Generate version.h
Update version after each change in it87.c.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2017-09-24 04:15:20 -07:00
Guenter Roeck
74647ea3f4 Try to add support for automatically detected build directories
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2017-09-20 15:46:28 -07:00
Guenter Roeck
e140a1cda3 Makefile: Add support for compressed modules
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2017-09-15 08:15:05 -07:00
Yohan Pereira
b9deb7cb41 Create the hwmon folder if it does not exist 2017-08-27 10:18:07 -07:00
Guenter Roeck
034e27046c Synchronize with upstream version
Also ensure the driver still builds with the latest upstream kernel.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2015-01-17 10:01:10 -08:00
Guenter Roeck
af0c89e86e it87: upstream version
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2012-03-02 12:50:18 -08:00