summaryrefslogtreecommitdiff
path: root/target/config
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-01-25 23:38:49 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2016-01-25 23:38:49 +0100
commitd787919ca32f7b8ce29b64f7d9f9b4c1d79c7e29 (patch)
treed01c8233f0e3657cbfac25b44c840bc80c9c63b1 /target/config
parent2826acfb9da3f85743ba3f8c2d34568109ab3c22 (diff)
allow to build different ppc64 subarchs
Diffstat (limited to 'target/config')
-rw-r--r--target/config/Config.in.cpu27
-rw-r--r--target/config/Config.in.tc16
2 files changed, 39 insertions, 4 deletions
diff --git a/target/config/Config.in.cpu b/target/config/Config.in.cpu
index 4e26ca5c1..6498a9159 100644
--- a/target/config/Config.in.cpu
+++ b/target/config/Config.in.cpu
@@ -894,6 +894,24 @@ config ADK_CPU_PPC_440
select ADK_TARGET_WITH_NPTL
select ADK_TARGET_WITH_MMU
+config ADK_CPU_POWER6
+ bool
+ select ADK_LINUX_64
+ select ADK_TARGET_WITH_NPTL
+ select ADK_TARGET_WITH_MMU
+
+config ADK_CPU_POWER7
+ bool
+ select ADK_LINUX_64
+ select ADK_TARGET_WITH_NPTL
+ select ADK_TARGET_WITH_MMU
+
+config ADK_CPU_POWER8
+ bool
+ select ADK_LINUX_64
+ select ADK_TARGET_WITH_NPTL
+ select ADK_TARGET_WITH_MMU
+
config ADK_CPU_PPC64
bool
select ADK_LINUX_64
@@ -1132,6 +1150,8 @@ config ADK_TARGET_GCC_CPU
default "cortex-m3" if ADK_CPU_CORTEX_M3
default "cortex-m4" if ADK_CPU_CORTEX_M4
default "powerpc" if ADK_CPU_PPC
+ default "power7" if ADK_CPU_POWER7
+ default "power8" if ADK_CPU_POWER8
default "ultrasparc" if ADK_CPU_SPARC_V9
default "v8" if ADK_CPU_SPARC_V8
default "leon" if ADK_CPU_SPARC_LEON
@@ -1338,10 +1358,9 @@ config ADK_TARGET_CPU_ARCH
default "mipsel" if ADK_TARGET_ARCH_MIPS && ADK_TARGET_LITTLE_ENDIAN
default "nios2" if ADK_TARGET_ARCH_NIOS2
default "or1k" if ADK_TARGET_ARCH_OR1K
- default "ppc" if ADK_CPU_PPC
- default "ppc" if ADK_CPU_PPC_440
- default "ppc64le" if ADK_CPU_PPC64 && ADK_TARGET_LITTLE_ENDIAN
- default "ppc64" if ADK_CPU_PPC64 && ADK_TARGET_BIG_ENDIAN
+ default "ppc" if ADK_TARGET_ARCH_PPC
+ default "ppc64le" if ADK_TARGET_ARCH_PPC64 && ADK_TARGET_LITTLE_ENDIAN
+ default "ppc64" if ADK_TARGET_ARCH_PPC64 && ADK_TARGET_BIG_ENDIAN
default "s390x" if ADK_TARGET_ARCH_S390
default "sh2" if ADK_CPU_SH2 && ADK_TARGET_LITTLE_ENDIAN
default "sh2eb" if ADK_CPU_SH2 && ADK_TARGET_BIG_ENDIAN
diff --git a/target/config/Config.in.tc b/target/config/Config.in.tc
index 3975c99f9..26e0aa1f7 100644
--- a/target/config/Config.in.tc
+++ b/target/config/Config.in.tc
@@ -12,6 +12,7 @@ depends on (ADK_TARGET_TOOLCHAIN || ADK_TARGET_SIM || ADK_TARGET_SYSTEM_GENERIC_
|| ADK_TARGET_ARCH_M68K \
|| ADK_TARGET_ARCH_MIPS \
|| ADK_TARGET_ARCH_MIPS64 \
+ || ADK_TARGET_ARCH_PPC64 \
|| ADK_TARGET_ARCH_SH \
|| ADK_TARGET_ARCH_SPARC \
|| ADK_TARGET_ARCH_X86 \
@@ -449,6 +450,21 @@ config ADK_TARGET_CPU_MIPS_MIPS64R6
select ADK_CPU_MIPS64R6
depends on ADK_TARGET_ARCH_MIPS64
+config ADK_TARGET_CPU_PPC64_POWER6
+ bool "power6"
+ select ADK_CPU_POWER6
+ depends on ADK_TARGET_ARCH_PPC64
+
+config ADK_TARGET_CPU_PPC64_POWER7
+ bool "power7"
+ select ADK_CPU_POWER7
+ depends on ADK_TARGET_ARCH_PPC64
+
+config ADK_TARGET_CPU_PPC64_POWER8
+ bool "power8"
+ select ADK_CPU_POWER8
+ depends on ADK_TARGET_ARCH_PPC64
+
config ADK_TARGET_CPU_SH_SH2
bool "sh2"
select ADK_CPU_SH2