[uClibc] SH4 linux header file fixes

Paul Mundt lethal at linux-sh.org
Wed Aug 18 13:50:27 UTC 2004


On Wed, Aug 18, 2004 at 11:54:32AM +0100, Carl SHAW wrote:
> Here is a patch for extra/scripts/fix-includes.sh so asm is correctly
> linked to asm-sh rather than the non-existent asm-sh4 for the sh4 arch.
> 
> --- fix_includes.sh.orig        2004-08-18 11:49:50.490742704 +0100
> +++ fix_includes.sh     2004-08-18 11:53:17.231313360 +0100
> @@ -134,6 +134,10 @@
>         set -x;
>         ln -fs $KERNEL_SOURCE/include/asm-cris include/asm;
>         set +x;
> +    elif [ "$TARGET_ARCH" = "sh4" ]; then
> +       set -x;
> +       ln -fs $KERNEL_SOURCE/include/asm-sh include/asm;
> +       set +x;
>      elif [ "$HAS_MMU" != "y" ]; then
>             if [ -d $KERNEL_SOURCE/include/asm-${TARGET_ARCH}nommu ] ;
> then
>                 set -x;
> 
Why would you build with TARGET_ARCH=sh4? To get the desired behaviour,
you should have TARGET_ARCH set to sh and have CONFIG_SH4 set. Note that
the top-level Rules.mak assumes this as well.

The only place where sh4 comes in useful is if we're interested in
setting up the include/asm-sh/cpu symlink for the desired processor
family.. but this can be just as easily determined from CONFIG_SH2/3/4,
and is only a 2.6 issue.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20040818/f57a15b4/attachment-0002.pgp 


More information about the uClibc mailing list