public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] offsets.h generation
@ 2003-05-19  4:30 Peter Chubb
  2003-05-19 17:13 ` Sam Ravnborg
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Peter Chubb @ 2003-05-19  4:30 UTC (permalink / raw)
  To: linux-ia64

[-- 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
 

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2003-05-31  0:34 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-19  4:30 [Linux-ia64] offsets.h generation Peter Chubb
2003-05-19 17:13 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox