diff options
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/gcc/Makefile | 23 | ||||
-rw-r--r-- | toolchain/uclibc-ng/Makefile | 2 |
2 files changed, 17 insertions, 8 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile index 8f8cacd8f..397a74279 100644 --- a/toolchain/gcc/Makefile +++ b/toolchain/gcc/Makefile @@ -135,32 +135,35 @@ GCC_FINAL_CONFOPTS+= --disable-biarch --disable-multilib endif ifeq ($(ADK_TARGET_ARCH_SH),y) + ifeq ($(ADK_TARGET_LITTLE_ENDIAN),y) GCC_CONFOPTS+= --with-endian=little else GCC_CONFOPTS+= --with-endian=big endif -ifeq ($(ADK_TARGET_ARCH_SH),y) ifeq ($(ADK_TARGET_BINFMT_FDPIC),y) GCC_CONFOPTS+= --enable-fdpic endif -GCC_FINAL_CONFOPTS+= --with-multilib-list=mj2 + +ifeq ($(ADK_TARGET_CPU_SH_J2),y) +GCC_CONFOPTS+= --with-multilib-list=mj2 endif ifeq ($(ADK_TARGET_CPU_SH_SH2),y) -GCC_FINAL_CONFOPTS+= --with-multilib-list=m2 +GCC_CONFOPTS+= --with-multilib-list=m2 endif ifeq ($(ADK_TARGET_CPU_SH_SH2A),y) -GCC_FINAL_CONFOPTS+= --with-multilib-list=m2a +GCC_CONFOPTS+= --with-multilib-list=m2a,m2a-nofpu endif ifeq ($(ADK_TARGET_CPU_SH_SH3),y) -GCC_FINAL_CONFOPTS+= --with-multilib-list=m3 +GCC_CONFOPTS+= --with-multilib-list=m3 endif ifeq ($(ADK_TARGET_CPU_SH_SH4),y) -GCC_FINAL_CONFOPTS+= --with-multilib-list=m4,m4-nofpu +GCC_CONFOPTS+= --with-multilib-list=m4,m4-nofpu endif ifeq ($(ADK_TARGET_CPU_SH_SH4A),y) -GCC_FINAL_CONFOPTS+= --with-multilib-list=m4a,m4a-nofpu +GCC_CONFOPTS+= --with-multilib-list=m4a,m4a-nofpu endif + endif ifeq ($(ADK_TARGET_ARCH_X86),y) @@ -238,6 +241,12 @@ ifeq ($(ADK_TARGET_ARCH_SH),y) ifeq ($(ADK_TARGET_CPU_SH_J2),y) (cd ${STAGING_TARGET_DIR}/ && ln -sf . mj2) endif +ifeq ($(ADK_TARGET_CPU_SH_SH2),y) + (cd ${STAGING_TARGET_DIR}/ && ln -sf . m2) +endif +ifeq ($(ADK_TARGET_CPU_SH_SH2A),y) + (cd ${STAGING_TARGET_DIR}/ && ln -sf . m2a) +endif ifeq ($(ADK_TARGET_CPU_SH_SH3),y) (cd ${STAGING_TARGET_DIR}/ && ln -sf . m3) endif diff --git a/toolchain/uclibc-ng/Makefile b/toolchain/uclibc-ng/Makefile index 04a768f26..1db3c17ac 100644 --- a/toolchain/uclibc-ng/Makefile +++ b/toolchain/uclibc-ng/Makefile @@ -245,7 +245,7 @@ ifeq ($(ADK_TARGET_CPU_SH_SH2)$(ADK_TARGET_CPU_SH_J2),y) endif ifeq ($(ADK_TARGET_CPU_SH_SH2A),y) $(SED) 's/.*\(UCLIBC_HAS_FPU\).*/# \1 is not set/' ${WRKBUILD}/.config - $(SED) 's/.*\(CONFIG_SH2A\).*/# \1 is not set/' ${WRKBUILD}/.config + $(SED) 's/.*\(CONFIG_SH2\).*/# \1 is not set/' ${WRKBUILD}/.config $(SED) 's/.*\(CONFIG_SH3\).*/# \1 is not set/' ${WRKBUILD}/.config $(SED) 's/.*\(CONFIG_SH4\).*/# \1 is not set/' ${WRKBUILD}/.config $(SED) 's/.*\(CONFIG_SH4A\).*/# \1 is not set/' ${WRKBUILD}/.config |