[lkml]   [2003]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] mkdep patch in 2.4.21-pre4-ac7 breaks pci/drivers

This patch works for me and doesn't require any changes in mkdep. I
believe it's the right thing to do. The rule for names.o already exists
in the Makefile. The only problem with it is that it's misplaced - it
should precede the generated dependencies.

GNU make just concatenates the lists of dependencies and tries to create
the dependencies in the order is which they appear in the makefile. If
devlist.h without path is first, then make will create it because there is
a rule for that. Thn make will see that devlist.h with path is already

On the other hand, if devlist.h with path is first, then make won't know
how to create it and will abort rather than go to the next target.

This patch has been tested and works for me. How to test:

make oldconfig
make clean
make depend
make bzImage
make depend
make clean
make bzImage

It works fine now. Patch:

--- linux.orig/drivers/pci/Makefile
+++ linux/drivers/pci/Makefile
@@ -35,10 +35,10 @@
obj-y += syscall.o

-include $(TOPDIR)/Rules.make
names.o: names.c devlist.h classlist.h

+include $(TOPDIR)/Rules.make
devlist.h classlist.h: pci.ids gen-devlist
./gen-devlist <pci.ids

The patch fixes the problem in Alan's 2.4 series, but it can be safely
applied to the Marcelo's 2.4 branch as well.

Pavel Roskin
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:33    [W:0.057 / U:17.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site