Browse Source

Removed redundant definition of __USE_WEAK_ALIASES.
Added option for selecting cris architecure type. For now, only CRIS is
available.
Added a default configuration for cris.

Tobias Anderberg 21 năm trước cách đây
mục cha
commit
3f4393ac14
2 tập tin đã thay đổi với 79 bổ sung1 xóa
  1. 16 1
      extra/Configs/Config.cris
  2. 63 0
      extra/Configs/Config.cris.default

+ 16 - 1
extra/Configs/Config.cris

@@ -13,7 +13,6 @@ config HAVE_ELF
 
 config ARCH_CFLAGS
 	string
-	default "-fpic -mlinux -D__USE_WEAK_ALIASES"
 
 config ARCH_LDFLAGS
 	string
@@ -23,6 +22,22 @@ config LIBGCC_CFLAGS
 	string
 	default "-mlinux"
 
+
+choice
+	prompt "Target Architecture Type"
+	default CONFIG_CRIS
+	help
+		This is the architecture type of your CPU. This information is used for
+		optimizing purposes.
+
+		These are the possible settings:
+		- CRIS  Generic support for Axis' CRIS architecture.
+
+config CONFIG_CRIS
+	bool "CRIS"
+
+endchoice
+
 source "extra/Configs/Config.in.arch"
 
 endmenu

+ 63 - 0
extra/Configs/Config.cris.default

@@ -0,0 +1,63 @@
+#
+# Automatically generated make config: don't edit
+#
+
+#
+# Target Architecture Features and Options
+#
+HAVE_ELF=y
+ARCH_LDFLAGS="-mcrislinux"
+LIBGCC_CFLAGS="-mlinux"
+CONFIG_CRIS=y
+UCLIBC_HAS_MMU=y
+UCLIBC_HAS_FLOATS=y
+HAS_FPU=y
+# DO_C99_MATH is not set
+WARNINGS="-Wall"
+KERNEL_SOURCE="$(AXIS_KERNEL_DIR)"
+C_SYMBOL_PREFIX=""
+
+#
+# General Library Settings
+#
+DOPIC=y
+HAVE_SHARED=y
+BUILD_UCLIBC_LDSO=y
+# LDSO_LDD_SUPPORT is not set
+UCLIBC_HAS_THREADS=y
+UCLIBC_HAS_LFS=y
+# MALLOC is not set
+MALLOC_930716=y
+HAS_SHADOW=y
+UCLIBC_HAS_REGEX=y
+UNIX98PTY_ONLY=y
+ASSUME_DEVPTS=y
+
+#
+# Networking Support
+#
+UCLIBC_HAS_IPV6=y
+UCLIBC_HAS_RPC=y
+# UCLIBC_HAS_FULL_RPC is not set
+
+#
+# String and Stdio Support
+#
+# UCLIBC_HAS_WCHAR is not set
+# USE_OLD_VFPRINTF is not set
+
+#
+# Library Installation Options
+#
+SHARED_LIB_LOADER_PATH="$(DEVEL_PREFIX)/lib"
+DEVEL_PREFIX="$(AXIS_TOP_DIR)/target/cris-axis-linux-gnuuclibc"
+SYSTEM_DEVEL_PREFIX="$(DEVEL_PREFIX)"
+DEVEL_TOOL_PREFIX="$(DEVEL_PREFIX)/usr"
+
+#
+# uClibc hacking options
+#
+# DODEBUG is not set
+# DOASSERTS is not set
+# SUPPORT_LD_DEBUG is not set
+# SUPPORT_LD_DEBUG_EARLY is not set