G'day, Here's the SuperH patches for kbuild-2.5 upgraded to 2.2 (kernel 2.5.10).
There's no functional change except that 2.5.10 is slightly less broken than 2.5.8 so the "hacks" patch is smaller. I just noticed that 2.3 is out...<sigh> if I'd started an hour earlier perhaps this message wouldn't be obsolete at posting. Anyway I'll update SuperH to 2.3 on Friday. 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.10.tar.bz2 Linus tarball from ftp.kernel.org
linuxsh-2.5.10.tar.bz2/ LinuxSH tarball from linuxsh.sf.net
kbuild-2.5-core-8.bz2 KBuild 2.5 core patch from kbuild.sf.net
kbuild-2.5-common-2.5.10-2.bz2 KBuild 2.5 common patch from kbuild.sf.net
kbuild-2.5-sh-2.5.10-1gnb.bz2 KBuild SuperH patch, from here
kbuild-2.5-shcommon-2.5.10-1gnb.bz2 KBuild common intersection with SuperH
patch, from here
kbuild-2.5-hacks-2.5.10-1gnb.bz2 Hacks so 2.5.10 compiles, from here
Procedure
---------
1. Extract linux-2.5.10.tar.bz2 into a directory linux-2.5.10
2. Apply patches to linux-2.5.10 (the order matters)
* kbuild-2.5-core-8.bz2
* kbuild-2.5-common-2.5.10-2.bz2
* kbuild-2.5-sh-2.5.10-1gnb.bz2
* kbuild-2.5-shcommon-2.5.10-1gnb.bz2
* kbuild-2.5-hacks-2.5.10-1gnb.bz2
3. Checkout (or extract) linuxsh-2.5.10
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.10/
export KBUILD_SRCTREE_001=$PWD/linuxsh-2.5.10/
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.10-1gnb.bz2
Description: Binary data
kbuild-2.5-shcommon-2.5.10-1gnb.bz2
Description: Binary data
BZh91AY&SY,��� -_? 0H�~��ʯ���0�U4�m!?�@d�hzjis�?==B4d�1? 1
D?&L�d�M5=CM 6���?OR?�b\~?���c5.�X,^b.��*�?�+H\Syf7.>�k�t:
*��*�Y?\F��T<z01FE KAz���?E?! �?�M��q�ii ��|�m;�?��_�{
�^d^'�?"E]?Db��G�Pmf"�?����d�x:|G�J0S��B?��gfS?������`K?f>�Jgi:����<�Fe&N�?V�M/m�S��?���b�?r�L??���4�TQ8<�rE8P?,���
