[parisc-linux] Proposed change to arch/parisc/Makefile and generation of offset.h
Sat, 2 Feb 2002 14:07:41 +0000
On Fri, Feb 01, 2002 at 10:34:08PM -0800, Randolph Chung wrote:
> 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.
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.