G'day, Here's the SuperH patches for kbuild-2.5 upgraded to 2.3 (kernel 2.5.12).
There's no functional change except that 2.5.12 is even less broken so the "hacks" patch is gone. I'll update to 2.4 (2.5.13) sometime after 2.5.13 is merged into LinuxSH. Greg. -- the price of civilisation today is a courageous willingness to prevail, with force, if necessary, against whatever vicious and uncomprehending enemies try to strike it down. - Roger Sandall, The Age, 28Sep2001.
KBuild-2.5 for the SuperH Linux port
====================================
Here's how to build a LinuxSH kernel using kbuild-2.5.
Ingredients
-----------
linux-2.5.12.tar.bz2 Linus tarball from ftp.kernel.org
linuxsh-2.5.12.tar.bz2 LinuxSH tarball from linuxsh.sf.net
kbuild-2.5-core-9.bz2 KBuild 2.5 core patch from kbuild.sf.net
kbuild-2.5-common-2.5.12-1.bz2 KBuild 2.5 common patch from kbuild.sf.net
kbuild-2.5-sh-2.5.12-1gnb.bz2 KBuild SuperH patch, from here
kbuild-2.5-shcommon-2.5.12-1gnb.bz2 KBuild common intersection with SuperH
patch, from here
Procedure
---------
1. Extract linux-2.5.12.tar.bz2 into a directory linux-2.5.12
2. Apply patches to linux-2.5.12 (the order matters)
* kbuild-2.5-core-9.bz2
* kbuild-2.5-common-2.5.12-1.bz2
* kbuild-2.5-sh-2.5.12-1gnb.bz2
* kbuild-2.5-shcommon-2.5.12-1gnb.bz2
3. Checkout (or extract) linuxsh-2.5.12
4. Make the directory where all the build output will go
mkdir obj
5. Setup environment variables (in bash syntax). Note that the
full pathnames and trailing /s are significant.
export KBUILD_SRCTREE_000=$PWD/linux-2.5.12/
export KBUILD_SRCTREE_001=$PWD/linuxsh-2.5.12/
export KBUILD_OBJTREE=$PWD/obj/
6. Copy your .config into $KBUILD_OBJTREE and
make \
-f $KBUILD_SRCTREE_000/Makefile-2.5 \
ARCH=sh CROSS_COMPILE=sh-unknown-linux-gnu- \
oldconfig
7. Do the actual build
make \
-f $KBUILD_SRCTREE_000/Makefile-2.5 \
ARCH=sh CROSS_COMPILE=sh-unknown-linux-gnu- \
installable
8. Install the results
make \
-f $KBUILD_SRCTREE_000/Makefile-2.5 \
ARCH=sh CROSS_COMPILE=sh-unknown-linux-gnu- \
install
kbuild-2.5-sh-2.5.12-1gnb.bz2
Description: Binary data
kbuild-2.5-shcommon-2.5.12-1gnb.bz2
Description: Binary data
