From: Peter Chubb <peter@chubb.wattle.id.au>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] offsets.h generation
Date: Mon, 19 May 2003 04:30:57 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590723705941@msgid-missing> (raw)
[-- Attachment #1: message body text --]
[-- Type: text/plain, Size: 234 bytes --]
At present, if you change something that means offsets.h should be
regenerated, the automatic dependencies mechanism doesn't do it.
Herewith a patch that adds proper dependency generation for
printoffsets.s (and hence offsets.h)
[-- Attachment #2: p1 --]
[-- Type: text/plain, Size: 1964 bytes --]
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.1091 -> 1.1092
# arch/ia64/Makefile 1.48 -> 1.49
# arch/ia64/tools/Makefile 1.12 -> 1.13
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/05/19 peterc@wombat.disy.cse.unsw.edu.au 1.1092
# [IA64] Add dependencies so that offsets.h gets regenerated if it has to be.
# --------------------------------------------
#
diff -Nru a/arch/ia64/Makefile b/arch/ia64/Makefile
--- a/arch/ia64/Makefile Mon May 19 14:27:48 2003
+++ b/arch/ia64/Makefile Mon May 19 14:27:48 2003
@@ -86,10 +86,12 @@
prepare: include/asm-ia64/offsets.h
+include/asm-ia64/offsets.h : arch/ia64/tools/offsets.h
+
boot: lib/lib.a vmlinux
$(Q)$(MAKE) $(build)=$(boot) $@
-include/asm-ia64/offsets.h:
+arch/ia64/tools/offsets.h include/asm-ia64/offsets.h:
$(Q)$(MAKE) $(build)=$(tools) $@
define archhelp
diff -Nru a/arch/ia64/tools/Makefile b/arch/ia64/tools/Makefile
--- a/arch/ia64/tools/Makefile Mon May 19 14:27:48 2003
+++ b/arch/ia64/tools/Makefile Mon May 19 14:27:48 2003
@@ -32,8 +32,7 @@
$(obj)/print_offsets: $(src)/print_offsets.c FORCE
[ -r $(TARGET) ] || echo "#define IA64_TASK_SIZE 0" > $(TARGET)
- $(CC) $(CFLAGS) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) \
- $(src)/print_offsets.c -o $@
+ $(CC) $(c_flags) $(src)/print_offsets.c -o $@
FORCE:
@@ -44,7 +43,9 @@
$(obj)/print_offsets.s: $(src)/print_offsets.c
[ -r $(TARGET) ] || echo "#define IA64_TASK_SIZE 0" > $(TARGET)
- $(CC) $(CFLAGS) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) -S $^ -o $@
+ $(CC) $(c_flags) -MT $@ -S $^ -o $@
+ scripts/fixdep $(depfile) $@ "$(CC) $(c_flags) -MT $@ -S $^ -o $@" > $(obj)/.print_offsets.s.cmd
+ rm $(depfile)
endif
next reply other threads:[~2003-05-19 4:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-19 4:30 Peter Chubb [this message]
2003-05-19 17:13 ` [Linux-ia64] offsets.h generation Sam Ravnborg
2003-05-20 1:26 ` Peter Chubb
2003-05-20 4:40 ` Sam Ravnborg
2003-05-20 6:31 ` David Mosberger
2003-05-20 9:15 ` Peter Chubb
2003-05-23 1:09 ` Peter Chubb
2003-05-23 1:50 ` David Mosberger
2003-05-26 23:25 ` Peter Chubb
2003-05-27 0:03 ` Peter Chubb
2003-05-27 0:03 ` Peter Chubb
2003-05-31 0:34 ` David Mosberger
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=marc-linux-ia64-105590723705941@msgid-missing \
--to=peter@chubb.wattle.id.au \
--cc=linux-ia64@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