Browse Source

trying to get mips and ppc musl working

Waldemar Brodkorb 10 years ago
parent
commit
e186d88bff
2 changed files with 10 additions and 0 deletions
  1. 6 0
      package/musl/Makefile
  2. 4 0
      toolchain/musl/Makefile

+ 6 - 0
package/musl/Makefile

@@ -33,6 +33,12 @@ endif
 ifeq ($(CPU_ARCH),i486)
 MARCH:=			i386
 endif
+ifeq ($(CPU_ARCH),mipsel)
+MARCH:=			mips
+endif
+ifeq ($(CPU_ARCH),ppc)
+MARCH:=			powerpc
+endif
 
 # do nothing, musl is already build in toolchain directory
 do-install:

+ 4 - 0
toolchain/musl/Makefile

@@ -6,6 +6,10 @@ include ../rules.mk
 include Makefile.inc
 include ${TOPDIR}/mk/buildhlp.mk
 
+ifeq ($(CPU_ARCH),ppc)
+REAL_GNU_TARGET_NAME:= $(subst ppc,powerpc,$(REAL_GNU_TARGET_NAME))
+endif
+
 $(WRKBUILD)/.headers:
 	(cd $(WRKBUILD); CC='$(TARGET_CC)' CROSS_COMPILE='$(TARGET_CROSS)' \
 		./configure --prefix=/usr \