lkml.org 
[lkml]   [2002]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
SubjectPatch: linux-2.5.23/Rules.make - enable modversions.h to build even if some files do not compile
	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/
\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.194 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site