summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-09-13 14:37:51 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-09-13 14:37:51 +0200
commite186d88bff21f249538b1f19e124700cbc1c774e (patch)
tree2f90bbc8990722edccb479bdde7ba894ef42e787
parentce57b051ea75be9e680edc7283c0485ebbb05d83 (diff)
trying to get mips and ppc musl working
-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 \