Bläddra i källkod

csky: fine tune support

Waldemar Brodkorb 7 år sedan
förälder
incheckning
069acf1a02
4 ändrade filer med 32 tillägg och 2 borttagningar
  1. 4 0
      mk/vars.mk
  2. 21 2
      target/config/Config.in.cpu
  3. 1 0
      target/csky/kernel/qemu-csky
  4. 6 0
      target/csky/systems/qemu-csky

+ 4 - 0
mk/vars.mk

@@ -76,7 +76,11 @@ ifeq ($(ADK_TARGET_ARCH_C6X),y)
 GNU_TARGET_NAME:=	$(ADK_TARGET_CPU_ARCH)-$(ADK_TARGET_LINUXTYPE)
 endif
 ifeq ($(ADK_TARGET_ARCH_CSKY),y)
+ifeq ($(ADK_TARGET_CPU_CSKY_CK610F),y)
 GNU_TARGET_NAME:=	$(ADK_TARGET_CPU_ARCH)-unknown-$(ADK_TARGET_LINUXTYPE)
+else
+GNU_TARGET_NAME:=	$(ADK_TARGET_CPU_ARCH)-abiv2-$(ADK_TARGET_LINUXTYPE)
+endif
 endif
 ifeq ($(ADK_TARGET_LIB_NEWLIB),y)
 ifeq ($(ADK_TARGET_OS_FROSTED),y)

+ 21 - 2
target/config/Config.in.cpu

@@ -480,8 +480,24 @@ config ADK_TARGET_CPU_CRIS_CRISV32
 	depends on ADK_TARGET_ARCH_CRIS
 
 # c-sky
-config ADK_TARGET_CPU_CSKY_CK610
-	bool "ck610"
+config ADK_TARGET_CPU_CSKY_CK610F
+	bool "ck610f"
+	select ADK_TARGET_SUPPORTS_THREADS
+	select ADK_TARGET_SUPPORTS_LT
+	select ADK_TARGET_SUPPORTS_NPTL
+	select ADK_TARGET_WITH_MMU
+	depends on ADK_TARGET_ARCH_CSKY
+
+config ADK_TARGET_CPU_CSKY_CK810F
+	bool "ck810f"
+	select ADK_TARGET_SUPPORTS_THREADS
+	select ADK_TARGET_SUPPORTS_LT
+	select ADK_TARGET_SUPPORTS_NPTL
+	select ADK_TARGET_WITH_MMU
+	depends on ADK_TARGET_ARCH_CSKY
+
+config ADK_TARGET_CPU_CSKY_CK807F
+	bool "ck807f"
 	select ADK_TARGET_SUPPORTS_THREADS
 	select ADK_TARGET_SUPPORTS_LT
 	select ADK_TARGET_SUPPORTS_NPTL
@@ -1949,6 +1965,9 @@ config ADK_TARGET_CPU_FLAGS
 	default "-mcpu=bf549m" if ADK_TARGET_CPU_BFIN_BF549M
 	default "-mcpu=bf561" if ADK_TARGET_CPU_BFIN_BF561
 	default "-mcpu=bf592" if ADK_TARGET_CPU_BFIN_BF592
+	default "-mcpu=ck610f" if ADK_TARGET_CPU_CSKY_CK610F
+	default "-mcpu=ck810f" if ADK_TARGET_CPU_CSKY_CK810F
+	default "-mcpu=ck807f" if ADK_TARGET_CPU_CSKY_CK807F
 	default "-mcpu=v10" if ADK_TARGET_CPU_CRIS_CRISV10
 	default "-mcpu=v32" if ADK_TARGET_CPU_CRIS_CRISV32
 	default "-mh" if ADK_TARGET_CPU_H8300H

+ 1 - 0
target/csky/kernel/qemu-csky

@@ -0,0 +1 @@
+CONFIG_CSKY=y

+ 6 - 0
target/csky/systems/qemu-csky

@@ -0,0 +1,6 @@
+config ADK_TARGET_SYSTEM_QEMU_CSKY
+	bool "Qemu Emulator"
+	select ADK_TARGET_QEMU
+	help
+	  Qemu Emulator for C-SKY architecture.
+