Browse Source

* Updated for the CRIS port.
* Added variable LIBGCC which is included when linking libc.so. Arch
specific linker options go into LIBGCC_CFLAGS defined in Config.<arch>.

Tobias Anderberg 22 years ago
parent
commit
7e973d0205
2 changed files with 4 additions and 0 deletions
  1. 2 0
      Makefile
  2. 2 0
      Rules.mak

+ 2 - 0
Makefile

@@ -82,6 +82,8 @@ headers: dummy
 	    ln -fs mips mipsel; \
 	    cd $(shell pwd)/libpthread/linuxthreads/sysdeps; \
 	    ln -fs mips mipsel; \
+	elif [ $(TARGET_ARCH) = "cris" ];then \
+		ln -fs $(KERNEL_SOURCE)/include/asm-cris include/asm; \
 	else \
 	    if [ $(HAS_MMU) != "true" ]; then \
 	    	if [ -d $(KERNEL_SOURCE)/include/asm-$(TARGET_ARCH)nommu ] ; then \

+ 2 - 0
Rules.mak

@@ -35,6 +35,7 @@ SHARED_FULLNAME:=libuClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
 SHARED_MAJORNAME:=libc.so.$(MAJOR_VERSION)
 UCLIBC_LDSO:=ld-uClibc.so.$(MAJOR_VERSION)
 LIBC:=$(TOPDIR)libc/libc.a
+LIBGCC:=$(shell $(CC) $(LIBGCC_CFLAGS) -print-libgcc-file-name)
 
 NATIVE_ARCH:= ${shell uname -m | sed \
 		-e 's/i.86/i386/' \
@@ -56,6 +57,7 @@ TARGET_ARCH:=${shell $(CC) -dumpmachine | sed -e s'/-.*//' \
 		-e 's/v850.*/v850/g' \
 		-e 's/sh[234]/sh/' \
 		-e 's/mips.*/mips/' \
+		-e 's/cris.*/cris/' \
 		}
 endif