summaryrefslogtreecommitdiff
path: root/toolchain/llvm
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2018-01-28 12:54:30 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2018-02-01 19:03:48 +0000
commit4a762acdd380273ac072a66aaca12be2cc6d7a1f (patch)
tree34f72739f4c15c423ae241101e78a2c81e6c8763 /toolchain/llvm
parent0cf6f8479ebccb88cbe11359740a46efa02ad47e (diff)
llvm: update to 5.0.1
Diffstat (limited to 'toolchain/llvm')
-rw-r--r--toolchain/llvm/Makefile21
-rw-r--r--toolchain/llvm/Makefile.inc6
2 files changed, 23 insertions, 4 deletions
diff --git a/toolchain/llvm/Makefile b/toolchain/llvm/Makefile
index be5e4dab8..de6492454 100644
--- a/toolchain/llvm/Makefile
+++ b/toolchain/llvm/Makefile
@@ -10,8 +10,12 @@ include ${ADK_TOPDIR}/mk/buildhlp.mk
BUILD_DIR_INITIAL:= $(WRKBUILD)-initial
BUILD_DIR_FINAL:= $(WRKBUILD)-final
-LLVM_VERSION:=4.0.0
+LLVM_VERSION:= $(ADK_TOOLCHAIN_LLVM_VERSION)
+LLVM_TRIPLE:= $(ADK_TARGET_ARCH)-linux
+ifeq ($(ADK_TARGET_ARCH_AARCH64),y)
+LLVM_TARGETS:=AArch64
+endif
ifeq ($(ADK_TARGET_ARCH_ARM),y)
LLVM_TARGETS:=ARM
ifeq ($(ADK_TARGET_SOFT_FLOAT),y)
@@ -21,6 +25,21 @@ ifeq ($(ADK_TARGET_HARD_FLOAT),y)
LLVM_TRIPLE:=arm-linux-eabihf
endif
endif
+ifeq ($(ADK_TARGET_ARCH_MIPS)$(ADK_TARGET_ARCH_MIPS64),y)
+LLVM_TARGETS:=Mips
+endif
+ifeq ($(ADK_TARGET_ARCH_PPC)$(ADK_TARGET_ARCH_PPC64),y)
+LLVM_TARGETS:=PowerPC
+endif
+ifeq ($(ADK_TARGET_ARCH_SPARC)$(ADK_TARGET_ARCH_SPARC64),y)
+LLVM_TARGETS:=Sparc
+endif
+ifeq ($(ADK_TARGET_ARCH_S390),y)
+LLVM_TARGETS:=SystemZ
+endif
+ifeq ($(ADK_TARGET_ARCH_X86)$(ADK_TARGET_ARCH_X86_64),y)
+LLVM_TARGETS:=X86
+endif
$(BUILD_DIR_INITIAL)/.configured:
(cd $(DL_DIR); \
diff --git a/toolchain/llvm/Makefile.inc b/toolchain/llvm/Makefile.inc
index fe41a1d93..e33edd478 100644
--- a/toolchain/llvm/Makefile.inc
+++ b/toolchain/llvm/Makefile.inc
@@ -2,9 +2,9 @@
# material, please see the LICENCE file in the top-level directory.
PKG_NAME:= llvm
-PKG_VERSION:= 4.0.0
-PKG_HASH:= 8d10511df96e73b8ff9e7abbfb4d4d432edbdbe965f1f4f07afaf370b8a533be
-PKG_SITES:= http://llvm.org/releases/4.0.0/
+PKG_VERSION:= 5.0.1
+PKG_HASH:= 5fa7489fc0225b11821cab0362f5813a05f2bcf2533e8a4ea9c9c860168807b0
+PKG_SITES:= http://llvm.org/releases/5.0.1/
PKG_RELEASE:= 1
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.src.tar.xz
WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}.src