On Wed, Oct 30, 2002 at 01:02:39PM +0100, Holger Waechtler wrote: > gcc-only is ok right now, AFAIK the kernel compiles only using gcc. The Intel people claimed to have built a kernel with their compiler. ;-) Anyway, here is the patch. The current implementation drops some messages "Makefile:94: no file name for `include'" when run for the first time. If you think this is annoying, I can work around that, but as the kernel has some cyclic dependencies, personally I expect this message to be a minor issue. ;-) Robert Index: driver/.cvsignore =================================================================== RCS file: /cvs/linuxtv/DVB/driver/.cvsignore,v retrieving revision 1.6 diff -u -r1.6 .cvsignore --- driver/.cvsignore 10 Oct 2002 19:22:28 -0000 1.6 +++ driver/.cvsignore 30 Oct 2002 12:26:10 -0000 @@ -1,3 +1,4 @@ +*.d *.flags fdump dvb_firm.h Index: driver/Makefile =================================================================== RCS file: /cvs/linuxtv/DVB/driver/Makefile,v retrieving revision 1.38 diff -u -r1.38 Makefile --- driver/Makefile 10 Oct 2002 19:22:28 -0000 1.38 +++ driver/Makefile 30 Oct 2002 12:26:10 -0000 @@ -66,7 +66,7 @@ ) clean: - -rm -f $(M_OBJS) $(MX_OBJS) *.o .*.o.flags *~ + -rm -f $(M_OBJS) $(MX_OBJS) *.o *.d .*.o.flags *~ make -C frontends clean $(foreach card, $(CARDS), make -C $(card) clean;) @@ -86,17 +86,12 @@ subdir-y := frontends $(CARDS) mod-subdirs := frontends $(CARDS) -EXTRA_CFLAGS = -I ../include -I . -g -DUSE_OSD +EXTRA_CFLAGS = -I ../include -I . -g -DUSE_OSD -MD dvb-core.o: $(dvb-core-objs) $(LD) -r -o $@ $(dvb-core-objs) -dvb_demux.o: dvb_demux.h dmxdev.h - -dmxdev.o: dmxdev.h dvb_demux.h - -dvb_filter.o: dvb_filter.c dvb_filter.h - +include $(wildcard *.d) include $(TOPDIR)/Rules.make Index: driver/av7110/.cvsignore =================================================================== RCS file: /cvs/linuxtv/DVB/driver/av7110/.cvsignore,v retrieving revision 1.2 diff -u -r1.2 .cvsignore --- driver/av7110/.cvsignore 10 Oct 2002 19:22:28 -0000 1.2 +++ driver/av7110/.cvsignore 30 Oct 2002 12:26:10 -0000 @@ -1,3 +1,4 @@ +*.d *.o.flags av7110_firm.h fdump Index: driver/av7110/Makefile =================================================================== RCS file: /cvs/linuxtv/DVB/driver/av7110/Makefile,v retrieving revision 1.2 diff -u -r1.2 Makefile --- driver/av7110/Makefile 10 Oct 2002 19:22:29 -0000 1.2 +++ driver/av7110/Makefile 30 Oct 2002 12:26:10 -0000 @@ -14,7 +14,7 @@ $(LD) -r -o $@ $(dvb-ttpci-objs) -EXTRA_CFLAGS = -I.. -I. -g -DUSE_OSD +EXTRA_CFLAGS = -I.. -I. -g -DUSE_OSD -MD ifdef DVB_PACK @@ -65,7 +65,7 @@ $(HOSTCC) $(HOSTCFLAGS) -o fdump fdump.c clean: - -rm -f *.o .*.o.flags *~ av7110_firm.h fdump + -rm -f *.o *.d .*.o.flags *~ av7110_firm.h fdump insmod: insmod input; \ @@ -85,8 +85,4 @@ av7110_firm.h: Root Dpram fdump ./fdump > av7110_firm.h -av7110.o: av7110_firm.h - -saa7146_core.o: saa7146_core.c saa7146.c - - +include $(wildcard *.d) Index: driver/frontends/.cvsignore =================================================================== RCS file: /cvs/linuxtv/DVB/driver/frontends/.cvsignore,v retrieving revision 1.2 diff -u -r1.2 .cvsignore --- driver/frontends/.cvsignore 10 Oct 2002 19:22:30 -0000 1.2 +++ driver/frontends/.cvsignore 30 Oct 2002 12:26:10 -0000 @@ -1 +1,2 @@ +*.d .*.o.flags Index: driver/frontends/Makefile =================================================================== RCS file: /cvs/linuxtv/DVB/driver/frontends/Makefile,v retrieving revision 1.4 diff -u -r1.4 Makefile --- driver/frontends/Makefile 24 Oct 2002 11:28:27 -0000 1.4 +++ driver/frontends/Makefile 30 Oct 2002 12:26:10 -0000 @@ -16,10 +16,11 @@ list-multi := +EXTRA_CFLAGS = -MD ifdef DVB_PACK obj-m += alps_bsru6.o alps_bsrv2.o alps_tdmb7.o alps_tdlb7.o grundig_29504-401.o grundig_29504-491.o ves1820.o -EXTRA_CFLAGS = -I ../../include -I . -g -I.. +EXTRA_CFLAGS += -I ../../include -I . -g -I.. else obj-$(CONFIG_DVB_ALPS_BSRU6) += alps_bsru6.o obj-$(CONFIG_DVB_ALPS_BSRV2) += alps_bsrv2.o @@ -53,7 +54,7 @@ fastdep: clean: - -rm -f $(M_OBJS) $(MX_OBJS) *.o .*.o.flags *~ + -rm -f $(M_OBJS) $(MX_OBJS) *.o *.d .*.o.flags *~ insmod: $(foreach frontend, $(obj-m), insmod $(frontend); ) @@ -61,3 +62,4 @@ rmmod: $(foreach frontend, $(obj-m), rmmod $(frontend:.o=); ) +include $(wildcard *.d) -- Robert Schiele Tel.: +49-621-181-2517 Dipl.-Wirtsch.informatiker mailto:rschiele@uni-mannheim.de
Attachment:
pgp00022.pgp
Description: PGP signature