mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-18 11:09:32 +00:00
for kernels 2.4+, install modules to kernel/drivers/[i2c,sensors]
instead of misc, and delete old modules in misc. This will prevent
duplicate modules.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1351 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
69e7d54d17
commit
39cc76464b
4 files changed
+42
-6
No files matched your search
+15
-2
@@ -113,10 +113,23 @@ INCLUDEFILES += $(KERNELCHIPSTARGETS:.o=.d)
|
||||
all-kernel-chips: $(KERNELCHIPSTARGETS)
|
||||
all :: all-kernel-chips
|
||||
|
||||
#
|
||||
# If $MODPREF/kernel exists, we presume the new (2.4.0) /lib/modules/x.y.z directory
|
||||
# layout, so we install in kernel/drivers/sensors/ and remove old versions in misc/
|
||||
# Otherwise we install in misc/ as before.
|
||||
#
|
||||
install-kernel-chips: all-kernel-chips
|
||||
if [ -n "$(KERNELCHIPSTARGETS)" ] ; then \
|
||||
$(MKDIR) $(DESTDIR)$(MODDIR) ; \
|
||||
$(INSTALL) -o root -g root -m 644 $(KERNELCHIPSTARGETS) $(DESTDIR)$(MODDIR) ;\
|
||||
if [ -d "$(DESTDIR)$(MODPREF)/kernel" ] ; then \
|
||||
$(MKDIR) $(DESTDIR)$(MODPREF)/kernel/drivers/sensors ; \
|
||||
$(INSTALL) -o root -g root -m 644 $(KERNELCHIPSTARGETS) $(DESTDIR)$(MODPREF)/kernel/drivers/sensors ; \
|
||||
for i in $(KERNELCHIPSTARGETS) ; do \
|
||||
$(RM) $(DESTDIR)$(MODPREF)/misc/`basename $$i` ; \
|
||||
done \
|
||||
else \
|
||||
$(MKDIR) $(DESTDIR)$(MODPREF)/misc ; \
|
||||
$(INSTALL) -o root -g root -m 644 $(KERNELCHIPSTARGETS) $(DESTDIR)$(MODPREF)/misc ; \
|
||||
fi \
|
||||
fi
|
||||
|
||||
install :: install-kernel-chips
|
||||
|
||||
Reference in new issue
Block a user