public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* bringing back 'make symlinks'?
@ 2004-05-25 15:45 Dan Kegel
  2004-05-25 21:43 ` Sam Ravnborg
  0 siblings, 1 reply; 6+ messages in thread
From: Dan Kegel @ 2004-05-25 15:45 UTC (permalink / raw)
  To: linux-kernel

In the 2.4 kernel, 'make symlinks' created the symlinks needed
to use the kernel tree's headers for building a gcc/glibc toolchain.

In the 2.6 kernel, you can do the same thing with 'include include/asm'.
Unless you're trying to build arm or cris, or maybe others, in which case you also need
'include/asm-$(ARCH)/.arch'.

That's fine, but it means that a script (like crosstool) or a book (like LFS)
that's trying to build a gcc/glibc toolchain for both 2.4 and 2.6 ends up
with a section like

case "$KERNEL_VERSION.$KERNEL_PATCHLEVEL.x" in
2.2.x|2.4.x) make ARCH=$ARCH symlinks    include/linux/version.h
              ;;
2.6.x)       make ARCH=$ARCH include/asm include/linux/version.h
              case $ARCH in
              arm*|cris*) make ARCH=$ARCH include/asm-$ARCH/.arch
                          ;;
              esac
              ;;
*)           abort "Unsupported kernel version $KERNEL_VERSION.$KERNEL_PATCHLEVEL"
esac

which is a bit ugly.  It'd be nice if 'make symlinks' did the neccesary
stuff in 2.6, too.  Think a patch to do that would be accepted?
- Dan

-- 
My technical stuff: http://kegel.com
My politics: see http://www.misleader.org for examples of why I'm for regime change

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

end of thread, other threads:[~2004-05-31 20:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-25 15:45 bringing back 'make symlinks'? Dan Kegel
2004-05-25 21:43 ` Sam Ravnborg
2004-05-26  3:47   ` Dan Kegel
2004-05-30 10:55     ` Sam Ravnborg
2004-05-31 18:40       ` Dan Kegel
2004-05-31 20:16         ` Sam Ravnborg

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