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)
- To: linux-dvb@linuxtv.org
- Subject: [linux-dvb] DVB/drivers/Makefile - de-hardcode `make install` target (patch)
- From: Guido Draheim <guidod-2003-@gmx.de>
- Date: Fri, 06 Jun 2003 17:22:38 +0200
- Content-transfer-encoding: 7bit
- Content-type: text/plain; charset=us-ascii; format=flowed
- Sender: linux-dvb-bounce@linuxtv.org
- User-agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.1) Gecko/20020826
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