From 53361ff7109edba622d927dc9d58c212d0a2f507 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 21 Jul 2017 22:35:37 +0200 Subject: add basic support for architecture c-sky, not yet working --- target/config/Config.in.binutils | 7 +++++++ target/config/Config.in.compiler | 8 ++++++++ target/config/Config.in.cpu | 10 ++++++++++ target/config/Config.in.kernelversion | 14 ++++++++++++++ target/config/Config.in.libc | 2 ++ 5 files changed, 41 insertions(+) (limited to 'target/config') diff --git a/target/config/Config.in.binutils b/target/config/Config.in.binutils index 2921828e4..c456925f3 100644 --- a/target/config/Config.in.binutils +++ b/target/config/Config.in.binutils @@ -4,6 +4,7 @@ choice prompt "Binutils version" default ADK_TOOLCHAIN_BINUTILS_ARC if ADK_TARGET_ARCH_ARC +default ADK_TOOLCHAIN_BINUTILS_CSKY if ADK_TARGET_ARCH_CSKY default ADK_TOOLCHAIN_BINUTILS_NDS32 if ADK_TARGET_ARCH_NDS32 default ADK_TOOLCHAIN_BINUTILS_2_20_1 if ADK_TARGET_ARCH_AVR32 default ADK_TOOLCHAIN_BINUTILS_GIT if ADK_TARGET_ARCH_MIPS @@ -13,11 +14,13 @@ default ADK_TOOLCHAIN_BINUTILS_2_28 config ADK_TOOLCHAIN_BINUTILS_GIT bool "git" depends on !ADK_TARGET_ARCH_AVR32 + depends on !ADK_TARGET_ARCH_CSKY depends on !ADK_TARGET_ARCH_NDS32 config ADK_TOOLCHAIN_BINUTILS_2_28 bool "2.28" depends on !ADK_TARGET_ARCH_AVR32 + depends on !ADK_TARGET_ARCH_CSKY depends on !ADK_TARGET_ARCH_NDS32 depends on !ADK_TARGET_ARCH_RISCV32 depends on !ADK_TARGET_ARCH_RISCV64 @@ -30,6 +33,10 @@ config ADK_TOOLCHAIN_BINUTILS_ARC bool "arc-2016.09-release" depends on ADK_TARGET_ARCH_ARC +config ADK_TOOLCHAIN_BINUTILS_CSKY + bool "2.27-c-sky" + depends on ADK_TARGET_ARCH_CSKY + config ADK_TOOLCHAIN_BINUTILS_2_20_1 bool "2.20.1" depends on ADK_TARGET_ARCH_AVR32 diff --git a/target/config/Config.in.compiler b/target/config/Config.in.compiler index 8fdcc7ee5..908440ecd 100644 --- a/target/config/Config.in.compiler +++ b/target/config/Config.in.compiler @@ -17,6 +17,7 @@ choice prompt "GCC version" depends on ADK_BUILD_COMPILER_GCC default ADK_TOOLCHAIN_GCC_ARC if ADK_TARGET_ARCH_ARC +default ADK_TOOLCHAIN_GCC_CSKY if ADK_TARGET_ARCH_CSKY default ADK_TOOLCHAIN_GCC_OR1K if ADK_TARGET_ARCH_OR1K default ADK_TOOLCHAIN_GCC_NDS32 if ADK_TARGET_ARCH_NDS32 default ADK_TOOLCHAIN_GCC_4_2 if ADK_TARGET_ARCH_METAG @@ -29,6 +30,7 @@ default ADK_TOOLCHAIN_GCC_7 config ADK_TOOLCHAIN_GCC_GIT bool "git" depends on !ADK_TARGET_ARCH_AVR32 + depends on !ADK_TARGET_ARCH_CSKY depends on !ADK_TARGET_ARCH_METAG depends on !ADK_TARGET_ARCH_NDS32 depends on !ADK_TARGET_ARCH_OR1K @@ -38,6 +40,7 @@ config ADK_TOOLCHAIN_GCC_GIT config ADK_TOOLCHAIN_GCC_7 bool "7.1.0" depends on !ADK_TARGET_ARCH_AVR32 + depends on !ADK_TARGET_ARCH_CSKY depends on !ADK_TARGET_ARCH_METAG depends on !ADK_TARGET_ARCH_NDS32 depends on !ADK_TARGET_ARCH_OR1K @@ -54,6 +57,11 @@ config ADK_TOOLCHAIN_GCC_4_9 depends on ADK_TARGET_ARCH_LM32 depends on ADK_TARGET_SYSTEM_KINETIS_K70 +config ADK_TOOLCHAIN_GCC_CSKY + bool "csky" + select ADK_DISABLE_HONOUR_CFLAGS + depends on ADK_TARGET_ARCH_CSKY + config ADK_TOOLCHAIN_GCC_OR1K bool "or1k" select ADK_DISABLE_HONOUR_CFLAGS diff --git a/target/config/Config.in.cpu b/target/config/Config.in.cpu index 86e77b6dc..61ce10ca9 100644 --- a/target/config/Config.in.cpu +++ b/target/config/Config.in.cpu @@ -479,6 +479,15 @@ config ADK_TARGET_CPU_CRIS_CRISV32 select ADK_TARGET_WITH_MMU depends on ADK_TARGET_ARCH_CRIS +# c-sky +config ADK_TARGET_CPU_CSKY_CK610 + bool "ck610" + 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 + # epiphany config ADK_TARGET_CPU_EPIPHANY bool "epiphany" @@ -2069,6 +2078,7 @@ config ADK_TARGET_CPU_ARCH default "cr16" if ADK_TARGET_ARCH_CR16 default "cris" if ADK_TARGET_CPU_CRIS_CRISV10 default "crisv32" if ADK_TARGET_CPU_CRIS_CRISV32 + default "csky" if ADK_TARGET_ARCH_CSKY default "epiphany" if ADK_TARGET_ARCH_EPIPHANY default "frv" if ADK_TARGET_ARCH_FRV default "i486" if ADK_TARGET_CPU_X86_I486 diff --git a/target/config/Config.in.kernelversion b/target/config/Config.in.kernelversion index 181f79f07..8d272ddc6 100644 --- a/target/config/Config.in.kernelversion +++ b/target/config/Config.in.kernelversion @@ -10,6 +10,7 @@ default ADK_TARGET_KERNEL_VERSION_GIT if ADK_TARGET_SYSTEM_SOLIDRUN_CLEARFOG default ADK_TARGET_KERNEL_VERSION_GIT if ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK default ADK_TARGET_KERNEL_VERSION_GIT if ADK_TARGET_SYSTEM_KINETIS_K70 default ADK_TARGET_KERNEL_VERSION_GIT if ADK_TARGET_SYSTEM_ADSP_BF537 +default ADK_TARGET_KERNEL_VERSION_GIT if ADK_TARGET_ARCH_CSKY default ADK_TARGET_KERNEL_VERSION_GIT if ADK_TARGET_ARCH_LM32 default ADK_TARGET_KERNEL_VERSION_4_4 if ADK_TARGET_ARCH_CRIS default ADK_TARGET_KERNEL_VERSION_4_4 if ADK_TARGET_ARCH_METAG @@ -32,6 +33,7 @@ config ADK_TARGET_KERNEL_VERSION_4_12 bool "4.12.3" depends on !ADK_TARGET_ARCH_AVR32 depends on !ADK_TARGET_ARCH_CRIS + depends on !ADK_TARGET_ARCH_CSKY depends on !ADK_TARGET_ARCH_METAG depends on !ADK_TARGET_ARCH_NDS32 depends on !ADK_TARGET_ARCH_RISCV32 @@ -41,6 +43,7 @@ config ADK_TARGET_KERNEL_VERSION_4_12 config ADK_TARGET_KERNEL_VERSION_4_9 bool "4.9.38" depends on !ADK_TARGET_ARCH_CRIS + depends on !ADK_TARGET_ARCH_CSKY depends on !ADK_TARGET_ARCH_METAG depends on !ADK_TARGET_ARCH_NDS32 depends on !ADK_TARGET_ARCH_RISCV32 @@ -53,6 +56,7 @@ config ADK_TARGET_KERNEL_VERSION_4_6 config ADK_TARGET_KERNEL_VERSION_4_4 bool "4.4.77" + depends on !ADK_TARGET_ARCH_CSKY depends on !ADK_TARGET_ARCH_NDS32 depends on !ADK_TARGET_ARCH_NIOS2 depends on !ADK_TARGET_ARCH_OR1K @@ -66,6 +70,7 @@ config ADK_TARGET_KERNEL_VERSION_4_1 bool "4.1.42" depends on !ADK_TARGET_ARCH_ARC depends on !ADK_TARGET_ARCH_BFIN + depends on !ADK_TARGET_ARCH_CSKY depends on !ADK_TARGET_ARCH_H8300 depends on !ADK_TARGET_ARCH_NIOS2 depends on !ADK_TARGET_ARCH_NDS32 @@ -83,6 +88,7 @@ config ADK_TARGET_KERNEL_VERSION_3_16 bool "3.16.43" depends on !ADK_TARGET_ARCH_ARC depends on !ADK_TARGET_ARCH_BFIN + depends on !ADK_TARGET_ARCH_CSKY depends on !ADK_TARGET_ARCH_H8300 depends on !ADK_TARGET_ARCH_NDS32 depends on !ADK_TARGET_ARCH_NIOS2 @@ -105,6 +111,7 @@ config ADK_TARGET_KERNEL_VERSION_3_10 bool "3.10.105" depends on !ADK_TARGET_ARCH_ARC depends on !ADK_TARGET_ARCH_BFIN + depends on !ADK_TARGET_ARCH_CSKY depends on !ADK_TARGET_ARCH_H8300 depends on !ADK_TARGET_ARCH_NDS32 depends on !ADK_TARGET_ARCH_NIOS2 @@ -128,6 +135,7 @@ config ADK_TARGET_KERNEL_VERSION_3_4 bool "3.4.113" depends on !ADK_TARGET_ARCH_ARC depends on !ADK_TARGET_ARCH_BFIN + depends on !ADK_TARGET_ARCH_CSKY depends on !ADK_TARGET_ARCH_H8300 depends on !ADK_TARGET_ARCH_NDS32 depends on !ADK_TARGET_ARCH_NIOS2 @@ -155,6 +163,7 @@ config ADK_TARGET_KERNEL_VERSION_3_2 bool "3.2.88" depends on !ADK_TARGET_ARCH_ARC depends on !ADK_TARGET_ARCH_BFIN + depends on !ADK_TARGET_ARCH_CSKY depends on !ADK_TARGET_ARCH_H8300 depends on !ADK_TARGET_ARCH_NDS32 depends on !ADK_TARGET_ARCH_NIOS2 @@ -177,6 +186,7 @@ config ADK_TARGET_KERNEL_VERSION_2_6_32 bool "2.6.32.70" depends on !ADK_TARGET_ARCH_ARC depends on !ADK_TARGET_ARCH_BFIN + depends on !ADK_TARGET_ARCH_CSKY depends on !ADK_TARGET_ARCH_H8300 depends on !ADK_TARGET_ARCH_NDS32 depends on !ADK_TARGET_ARCH_NIOS2 @@ -207,6 +217,7 @@ config ADK_TARGET_KERNEL_GIT_REPO default "https://github.com/SolidRun/linux-armada38x.git" if ADK_TARGET_SYSTEM_SOLIDRUN_CLEARFOG default "https://github.com/beagleboard/linux.git" if ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK default "https://github.com/m-labs/linux-milkymist.git" if ADK_TARGET_ARCH_LM32 + default "https://github.com/c-sky/linux-4.9.y.git" if ADK_TARGET_ARCH_CSKY default "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git" help GIT repository to use. @@ -221,6 +232,7 @@ config ADK_TARGET_KERNEL_GIT_REPO_NAME default "clearfog" if ADK_TARGET_SYSTEM_SOLIDRUN_CLEARFOG default "bb" if ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK default "lm32" if ADK_TARGET_ARCH_LM32 + default "csky" if ADK_TARGET_ARCH_CSKY default "linus" config ADK_TARGET_KERNEL_GIT @@ -229,6 +241,7 @@ config ADK_TARGET_KERNEL_GIT default "cfa29b46af94d83e31aa000dbaee553f9c4d670c" if ADK_TARGET_BOARD_BCM28XX default "f8d3b2a0fa5054aaed0f14cd457db9d8922bb167" if ADK_TARGET_SYSTEM_ADSP_BF537 default "6a2f2e4198eaff63ee75f6085ce9f966c47b4441" if ADK_TARGET_ARCH_LM32 + default "314c498ddc8c43a66ca96ff3af7da98e10fa1cc6" if ADK_TARGET_ARCH_CSKY default "1d008423ab5fd12459f53342e4d17585ec63cfe4" if ADK_TARGET_SYSTEM_KINETIS_K70 default "902739f3353150ac9eb69ad995098f3079d862a3" if ADK_TARGET_SYSTEM_SOLIDRUN_CLEARFOG default "27e61f66e7f03cc6199ddc2787340a01b80c6ed6" if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6 @@ -237,6 +250,7 @@ config ADK_TARGET_KERNEL_GIT config ADK_TARGET_KERNEL_GIT_VER string "kernel version" depends on ADK_TARGET_KERNEL_VERSION_GIT + default "4.9.13" if ADK_TARGET_ARCH_CSKY default "4.9.37" if ADK_TARGET_BOARD_BCM28XX default "3.14.79" if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6 default "4.4.37" if ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK diff --git a/target/config/Config.in.libc b/target/config/Config.in.libc index f1966727c..c6980b482 100644 --- a/target/config/Config.in.libc +++ b/target/config/Config.in.libc @@ -17,6 +17,7 @@ config ADK_TARGET_LIB_UCLIBC_NG ADK_TARGET_ARCH_BFIN || \ ADK_TARGET_ARCH_C6X || \ ADK_TARGET_ARCH_CRIS || \ + ADK_TARGET_ARCH_CSKY || \ ADK_TARGET_ARCH_FRV || \ ADK_TARGET_ARCH_H8300 || \ ADK_TARGET_ARCH_HPPA || \ @@ -97,6 +98,7 @@ config ADK_TARGET_LIB_NEWLIB ADK_TARGET_ARCH_BFIN || \ ADK_TARGET_ARCH_CR16 || \ ADK_TARGET_ARCH_CRIS || \ + ADK_TARGET_ARCH_CSKY || \ ADK_TARGET_ARCH_EPIPHANY || \ ADK_TARGET_ARCH_FRV || \ ADK_TARGET_ARCH_H8300 || \ -- cgit v1.2.3