summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/musl/Makefile6
-rw-r--r--toolchain/musl/Makefile4
2 files changed, 10 insertions, 0 deletions
diff --git a/package/musl/Makefile b/package/musl/Makefile
index e7526572f..86e75cc26 100644
--- a/package/musl/Makefile
+++ b/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:
diff --git a/toolchain/musl/Makefile b/toolchain/musl/Makefile
index e75b8c607..074eaea37 100644
--- a/toolchain/musl/Makefile
+++ b/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 \