Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] DVB/drivers/Makefile - de-hardcode `make install` target (patch)



While debugging of DVB drivers, the `make install` is not quite right
for me since Mandrake has the dvb drivers originally in
      /lib/modules/2.4.21-0.13mdk/kernel/3rdparty/mod_dvb/

The following patch modifies the hardcoded path (using .../misc)
into a format using a make-variable that can be overridden for
some `make install DVB_MOD_SUBDIR=kernel/3rdparty/mod_dvb` or
similar.

Thanks, guido

RCS file: /cvs/linuxtv/DVB/driver/Makefile,v
retrieving revision 1.52
diff -u -r1.52 Makefile
--- driver/Makefile 24 Apr 2003 22:58:08 -0000  1.52
+++ driver/Makefile 6 Jun 2003 15:14:03 -0000
@@ -38,14 +38,16 @@
   DIR=`pwd`; (cd $(KERNEL_LOCATION); $(MAKE) SUBDIRS=$$DIR modules)
   @echo

+DVB_MOD_SUBDIR=misc
+DVB_MOD_DIR=/lib/modules/$(KERNEL_VERSION)/$(DVB_MOD_SUBDIR)
 install:
-  install -v -m 0755 -d $(DESTDIR)/lib/modules/$(KERNEL_VERSION)/misc
+  install -v -m 0755 -d $(DESTDIR)$(DVB_MOD_DIR)
   install -v -m 0755 -d $(DESTDIR)/lib/DVB
-  install -m 0644 dvb-core.o $(DESTDIR)/lib/modules/$(KERNEL_VERSION)/misc/
-  install -m 0644 av7110/dvb-ttpci.o $(DESTDIR)/lib/modules/$(KERNEL_VERSION)/misc/
+  install -m 0644 dvb-core.o $(DESTDIR)$(DVB_MOD_DIR)
+  install -m 0644 av7110/dvb-ttpci.o $(DESTDIR)$(DVB_MOD_DIR)
   install -m 0644 av7110/Dpram $(DESTDIR)/lib/DVB
   install -m 0644 av7110/Root $(DESTDIR)/lib/DVB
-  find frontends/ -name "*.o" -exec install -v -m 0644 {} $(DESTDIR)/lib/modules/$(KERNEL_VERSION)/misc/ \;
+  find frontends/ -name "*.o" -exec install -v -m 0644 {} $(DESTDIR)$(DVB_MOD_DIR) \;
   depmod -a

 reload: rmmod insmod



--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index