From: Randolph Chung <randolph@tausq.org>
To: Richard Hirst <rhirst@linuxcare.com>
Cc: parisc-linux@parisc-linux.org
Subject: Re: [parisc-linux] Proposed change to arch/parisc/Makefile and generation of offset.h
Date: Sat, 2 Feb 2002 08:44:06 -0800 [thread overview]
Message-ID: <20020202164406.GB604@tausq.org> (raw)
In-Reply-To: <20020202140740.GD2884@sleepie.demon.co.uk>
> Sounds like a reasonable compromise to me. Only snag is that if you
> build a 32 bit kernel, make clean, change config for a 64 bit kernel,
> then make again, you will build a 64 bit kernel with the wrong offset.h.
>
> Would be nice if 'make' could verify that the offset.h ifile was correct,
> without changing it (and so triggering dependencies). If it could do
> that, it could regenerate it only if it was wrong.
I think it's reasonable to expect people to manually do a full 'make
dep' when switching. I'm not sure offset.h is the only thing that'll
break if they don't.
With that said, sanity checking offset.h is never a bad thing. How about
if I also add this so that the build will complain loudly if you used
the wrong one?
Index: arch/parisc/tools/offset.c
===================================================================
RCS file: /var/cvs/linux/arch/parisc/tools/offset.c,v
retrieving revision 1.16
diff -u -p -r1.16 offset.c
--- arch/parisc/tools/offset.c 2001/10/04 11:05:47 1.16
+++ arch/parisc/tools/offset.c 2002/02/02 16:43:01
@@ -39,6 +39,15 @@ linefeed;
text("#ifndef _PARISC_OFFSET_H");
text("#define _PARISC_OFFSET_H");
linefeed;
+#ifdef __LP64__
+text("#ifndef __LP64__");
+text("#error offset.h was generated for 64-bit build; did you do 'make dep'?");
+#else
+text("#ifdef __LP64__");
+text("#error offset.h was generated for 32-bit build; did you do 'make dep'?");
+#endif
+text("#endif");
+linefeed;
void output_task_ptreg_defines(void)
{
randolph
--
@..@ http://www.TauSq.org/
(----)
( >__< )
^^ ~~ ^^
next prev parent reply other threads:[~2002-02-02 16:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-02 6:34 [parisc-linux] Proposed change to arch/parisc/Makefile and generation of offset.h Randolph Chung
2002-02-02 14:07 ` Richard Hirst
2002-02-02 16:44 ` Randolph Chung [this message]
2002-02-02 16:42 ` Richard Hirst
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=20020202164406.GB604@tausq.org \
--to=randolph@tausq.org \
--cc=parisc-linux@parisc-linux.org \
--cc=rhirst@linuxcare.com \
/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