From: "Adam J. Richter" <adam@yggdrasil.com>
To: kai@tp1.ruhr-uni-bochum.de
Cc: linux-kernel@vger.kernel.org
Subject: Patch: linux-2.5.23/Rules.make - enable modversions.h to build even if some files do not compile
Date: Wed, 19 Jun 2002 09:56:41 -0700 [thread overview]
Message-ID: <200206191656.JAA00313@baldur.yggdrasil.com> (raw)
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 \
reply other threads:[~2002-06-19 16:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200206191656.JAA00313@baldur.yggdrasil.com \
--to=adam@yggdrasil.com \
--cc=kai@tp1.ruhr-uni-bochum.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).