[uClibc] SH4 linux header file fixes

Carl SHAW carl.shaw at st.com
Wed Aug 18 10:54:32 UTC 2004


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;


Here is a similar thing for the gcc 3.4.1 toolchain
make/kernel-header.mk file


--- kernel-headers.mk.orig      2004-08-18 11:42:39.770222176 +0100
+++ kernel-headers.mk   2004-08-18 11:42:39.757224152 +0100
@@ -65,6 +65,8 @@
             ln -fs arch-ebsa285 arch; fi); \
        elif [ "$(ARCH)" = "cris" ];then \
            (cd $(LINUX_DIR)/include; ln -fs asm-cris asm;) \
+       elif [ "$(ARCH)" = "sh4" ]; then \
+           (cd $(LINUX_DIR)/include; ln -fs asm-sh asm;) \
        else \
            (cd $(LINUX_DIR)/include; ln -fs asm-$(ARCH)$(NOMMU) asm;) \
        fi




In the latest uClibc snapshot, I've also had to revert to version 1.39
of ldso/libdl/Makefile otherwise the build fails at shared:


Carl







More information about the uClibc mailing list