diff options
-rw-r--r-- | target/config/Config.in.cpu | 4 | ||||
-rw-r--r-- | toolchain/gcc/Makefile | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/target/config/Config.in.cpu b/target/config/Config.in.cpu index 62bc8e83e..70e054846 100644 --- a/target/config/Config.in.cpu +++ b/target/config/Config.in.cpu @@ -623,6 +623,7 @@ config ADK_CPU_SH2A config ADK_CPU_SH3 bool + select ADK_TARGET_WITH_NPTL select ADK_TARGET_WITH_MMU config ADK_CPU_SH4 @@ -963,7 +964,8 @@ config ADK_TARGET_CPU_ARCH default "s390x" if ADK_TARGET_ARCH_S390 default "sh2" if ADK_CPU_SH2 default "sh2a" if ADK_CPU_SH2A - default "sh3" if ADK_CPU_SH3 + default "sh3" if ADK_CPU_SH3 && ADK_TARGET_LITTLE_ENDIAN + default "sh3eb" if ADK_CPU_SH3 && ADK_TARGET_BIG_ENDIAN default "sh4" if ADK_CPU_SH4 && ADK_TARGET_LITTLE_ENDIAN default "sh4eb" if ADK_CPU_SH4 && ADK_TARGET_BIG_ENDIAN default "sh4a" if ADK_CPU_SH4A && ADK_TARGET_LITTLE_ENDIAN diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile index 98213946b..c9bafde0b 100644 --- a/toolchain/gcc/Makefile +++ b/toolchain/gcc/Makefile @@ -207,6 +207,9 @@ endif (cd $(TOOLCHAIN_DIR)/usr/$(GNU_TARGET_NAME); \ ln -s ../$(STAGING_HOST2TARGET)/lib lib) ifeq ($(ADK_TARGET_ARCH_SH),y) +ifeq ($(ADK_CPU_SH3),y) + (cd ${STAGING_TARGET_DIR}/ && ln -sf . m3) +endif ifeq ($(ADK_CPU_SH4),y) (cd ${STAGING_TARGET_DIR}/ && ln -sf . m4) endif |