Patch: linux-2.5.23/Rules.make - enable modversions.h to build even if some files do not compile

From: Adam J. Richter (adam@yggdrasil.com)
Date: Wed Jun 19 2002 - 11:56:41 EST


        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
adam@yggdrasil.com \ / 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 $@ $@.tmp; then \
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jun 23 2002 - 22:00:19 EST