diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-12-11 07:27:49 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2016-12-13 05:47:44 +0100 |
commit | 3aa598104ca4c6f8de67b228ced3e680fbcab677 (patch) | |
tree | a737c19928f8d853b97e5d655353a547df822fef /toolchain/gcc/Makefile | |
parent | 9ce0683145795cdb3d35f0cd764e4765cc127f13 (diff) |
sh2-nommu/j2: add better support and add required patches from musl-cross-make
Diffstat (limited to 'toolchain/gcc/Makefile')
-rw-r--r-- | toolchain/gcc/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile index ba00225f5..6af157934 100644 --- a/toolchain/gcc/Makefile +++ b/toolchain/gcc/Makefile @@ -140,6 +140,10 @@ GCC_CONFOPTS+= --with-endian=little else GCC_CONFOPTS+= --with-endian=big endif +ifeq ($(ADK_TARGET_CPU_SH_J2),y) +GCC_CONFOPTS+= --enable-fdpic +GCC_FINAL_CONFOPTS+= --with-multilib-list=mj2 +endif ifeq ($(ADK_TARGET_CPU_SH_SH2),y) GCC_FINAL_CONFOPTS+= --with-multilib-list=m2 endif @@ -229,6 +233,9 @@ endif (cd $(TOOLCHAIN_DIR)/usr/$(GNU_TARGET_NAME); \ ln -s ../$(STAGING_HOST2TARGET)/usr/lib lib) 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_SH3),y) (cd ${STAGING_TARGET_DIR}/ && ln -sf . m3) endif |