mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-24 12:04:33 +00:00
Automatically delete old kernel modules on a 'make install'
It tries to delete bit-via.o, bit-mb.o, isa.o and piix4.o in the module install directory. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@194 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
b86777ddd3
commit
b9b60a0195
1 file changed
+3
@@ -25,6 +25,8 @@ MODULE_DIR := kernel/busses
|
||||
KERNELBUSSESTARGETS := $(MODULE_DIR)/i2c-piix4.o $(MODULE_DIR)/i2c-isa.o \
|
||||
$(MODULE_DIR)/i2c-via.o
|
||||
|
||||
KERNELBUSSESOLD := bit-via.o bit-mb.o isa.o piix4.o
|
||||
|
||||
# Include all dependency files
|
||||
INCLUDEFILES += $(KERNELBUSSESTARGETS:.o=.d)
|
||||
|
||||
@@ -32,6 +34,7 @@ all-kernel-busses: $(KERNELBUSSESTARGETS)
|
||||
all :: all-kernel-busses
|
||||
|
||||
install-kernel-busses: all-kernel-busses
|
||||
$(RM) $(addprefix $(MODDIR)/,$(KERNELBUSSESOLD))
|
||||
$(MKDIR) $(MODDIR)
|
||||
$(INSTALL) -o root -g root -m 644 $(KERNELBUSSESTARGETS) $(MODDIR)
|
||||
install :: install-kernel-busses
|
||||
|
||||
Reference in new issue
Block a user