The following patch enables "make include/linux/modversions.h" to
complete even if some symbol exporting files do not pass gcc, due
to #error statements. This problem had absorbed at least an hour a
day as I commented out #error lines or Makefile lines and worked
around the problem, which only interferes with my ability to later
see which drivers still do not compile.
I could live with a patch that only allowed modversions.h
to build in these circumstances with "make -k".
Adam J. Richter __ ______________ 575 Oroville Road
[email protected] \ / Milpitas, California 95035
+1 408 309-6081 | g g d r a s i l United States of America
"Free Software For The Rest Of Us."
--- linux-2.5.23/Rules.make 2002-06-18 19:11:52.000000000 -0700
+++ linux/Rules.make 2002-06-19 02:53:38.000000000 -0700
@@ -165,7 +165,7 @@
define rule_cc_ver_c
$(if $($(quiet)cmd_cc_ver_c),echo ' $($(quiet)cmd_cc_ver_c)';) \
$(cmd_cc_ver_c); \
- if [ ! -r $(depfile) ]; then exit 1; fi; \
+ if [ ! -r $(depfile) ]; then touch $(depfile); fi; \
$(TOPDIR)/scripts/fixdep $(depfile) $@ $(TOPDIR) '$(cmd_cc_ver_c)' > $(@D)/.$(@F).tmp; \
rm -f $(depfile); \
if [ ! -r $@ ] || cmp -s $@ [email protected]; then \