From: Randolph Chung <randolph@tausq.org>
To: parisc-linux@parisc-linux.org
Subject: [parisc-linux] Proposed change to arch/parisc/Makefile and generation of offset.h
Date: Fri, 1 Feb 2002 22:34:08 -0800 [thread overview]
Message-ID: <20020202063408.GA604@tausq.org> (raw)
I'd like to check this change in to change how we clean up and
regenerate include/asm-parisc/offset.h. This will let us ship a working
offset.h in our kernel-headers package to be used by glibc builds, and
will also allow things like gdb to build.
(basically, the problem right now is that offset.h is removed after a
'make clean')
With this change, 'make dep' will regenerate the offset.h and allow the
kernel dependency mechanism to kick in. 'make mrproper' will remove the
offset.h file, but 'make clean' will not.
comments?
randolph
Index: arch/parisc/Makefile
===================================================================
RCS file: /var/cvs/linux/arch/parisc/Makefile,v
retrieving revision 1.28
diff -u -p -r1.28 Makefile
--- arch/parisc/Makefile 2001/07/14 04:53:24 1.28
+++ arch/parisc/Makefile 2002/02/02 06:31:54
@@ -32,6 +32,7 @@ CROSS_COMPILE := hppa-linux-
endif
endif
+OFFSET_H := $(TOPDIR)/include/asm-parisc/offset.h
FINAL_LD=$(CROSS_COMPILE)ld --warn-common --warn-section-align
CPP=$(CC) -E
@@ -79,7 +80,7 @@ SUBDIRS := $(SUBDIRS) $(addprefix arch/p
CORE_FILES := $(addprefix arch/parisc/, kernel/pdc_cons.o kernel/process.o \
lib/lib.a mm/mm.o kernel/kernel.o hpux/hpux.o) \
$(CORE_FILES) arch/parisc/kernel/init_task.o
-CLEAN_FILES := $(CLEAN_FILES) arch/parisc/tools/offset.[hs] include/asm-parisc/offset.h*
+CLEAN_FILES := $(CLEAN_FILES) arch/parisc/tools/offset.[hs]
ifdef CONFIG_PARISC64
HEAD := arch/parisc/kernel/head64.o
@@ -122,8 +123,14 @@ compressed: zImage
install:
+archmrproper:
+ rm -f $(OFFSET_H)
+
archclean:
-archmrproper:
+archdep: $(OFFSET_H)
+
+$(OFFSET_H): include/linux/version.h
+ $(MAKE) -C $(TOPDIR)/arch/$(ARCH)/tools all
-archdep:
+.PHONY: archdep $(OFFSET_H)
--
@..@ http://www.TauSq.org/
(----)
( >__< )
^^ ~~ ^^
next reply other threads:[~2002-02-02 6:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-02 6:34 Randolph Chung [this message]
2002-02-02 14:07 ` [parisc-linux] Proposed change to arch/parisc/Makefile and generation of offset.h Richard Hirst
2002-02-02 16:44 ` Randolph Chung
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=20020202063408.GA604@tausq.org \
--to=randolph@tausq.org \
--cc=parisc-linux@parisc-linux.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