Update buildroot 2020.02.01 (#622)
* Update buildroot 2020.02.01 Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * Fix LN * Fix wpa Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * Fix lint Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * fix-network Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch> * Fix script Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
This commit is contained in:
@@ -4,19 +4,26 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LLVM_VERSION = 7.0.1
|
||||
LLVM_SITE = http://llvm.org/releases/$(LLVM_VERSION)
|
||||
# LLVM, Clang and lld should be version bumped together
|
||||
LLVM_VERSION = 9.0.1
|
||||
LLVM_SITE = https://github.com/llvm/llvm-project/releases/download/llvmorg-$(LLVM_VERSION)
|
||||
LLVM_SOURCE = llvm-$(LLVM_VERSION).src.tar.xz
|
||||
LLVM_LICENSE = NCSA
|
||||
LLVM_LICENSE = Apache-2.0 with exceptions
|
||||
LLVM_LICENSE_FILES = LICENSE.TXT
|
||||
LLVM_SUPPORTS_IN_SOURCE_BUILD = NO
|
||||
LLVM_INSTALL_STAGING = YES
|
||||
|
||||
# http://llvm.org/docs/GettingStarted.html#software
|
||||
# host-python: Python interpreter 2.7 or newer is required for builds and testing.
|
||||
HOST_LLVM_DEPENDENCIES = host-python
|
||||
# LLVM >= 9.0 can use python3 to build.
|
||||
HOST_LLVM_DEPENDENCIES = host-python3
|
||||
LLVM_DEPENDENCIES = host-llvm
|
||||
|
||||
# LLVM >= 9.0 will soon require C++14 support, building llvm 8.x using a
|
||||
# toolchain using gcc < 5.1 gives an error but actually still works. Setting
|
||||
# this option makes it still build with gcc >= 4.8.
|
||||
# https://reviews.llvm.org/D57264
|
||||
HOST_LLVM_CONF_OPTS += -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON
|
||||
LLVM_CONF_OPTS += -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON
|
||||
|
||||
# Don't build clang libcxx libcxxabi lldb compiler-rt lld polly as llvm subprojects
|
||||
# This flag assumes that projects are checked out side-by-side and not nested
|
||||
HOST_LLVM_CONF_OPTS += -DLLVM_ENABLE_PROJECTS=""
|
||||
@@ -125,6 +132,15 @@ HOST_LLVM_CONF_OPTS += -DLLVM_ENABLE_ZLIB=ON
|
||||
HOST_LLVM_DEPENDENCIES += host-zlib
|
||||
LLVM_CONF_OPTS += -DLLVM_ENABLE_ZLIB=OFF
|
||||
|
||||
# libxml2 can be disabled as it is used for LLVM Windows builds where COFF
|
||||
# files include manifest info
|
||||
HOST_LLVM_CONF_OPTS += -DLLVM_ENABLE_LIBXML2=OFF
|
||||
LLVM_CONF_OPTS += -DLLVM_ENABLE_LIBXML2=OFF
|
||||
|
||||
# Disable optional Z3Prover since there is no such package in Buildroot.
|
||||
HOST_LLVM_CONF_OPTS += -DLLVM_ENABLE_Z3_SOLVER=OFF
|
||||
LLVM_CONF_OPTS += -DLLVM_ENABLE_Z3_SOLVER=OFF
|
||||
|
||||
# We don't use llvm for static only build, so enable PIC
|
||||
HOST_LLVM_CONF_OPTS += -DLLVM_ENABLE_PIC=ON
|
||||
LLVM_CONF_OPTS += -DLLVM_ENABLE_PIC=ON
|
||||
@@ -177,7 +193,8 @@ LLVM_CONF_OPTS += -DLLVM_HOST_TRIPLE=$(GNU_TARGET_NAME)
|
||||
# check preventively. Building the Go and OCaml bindings is yet unsupported.
|
||||
HOST_LLVM_CONF_OPTS += \
|
||||
-DGO_EXECUTABLE=GO_EXECUTABLE-NOTFOUND \
|
||||
-DOCAMLFIND=OCAMLFIND-NOTFOUND
|
||||
-DOCAMLFIND=OCAMLFIND-NOTFOUND \
|
||||
-DLLVM_ENABLE_BINDINGS=OFF
|
||||
|
||||
# Builds a release host tablegen that gets used during the LLVM build.
|
||||
HOST_LLVM_CONF_OPTS += -DLLVM_OPTIMIZED_TABLEGEN=ON
|
||||
@@ -203,6 +220,14 @@ LLVM_CONF_OPTS += \
|
||||
-DLLVM_INCLUDE_TOOLS=ON \
|
||||
-DLLVM_BUILD_TOOLS=OFF
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LLVM_RTTI),y)
|
||||
HOST_LLVM_CONF_OPTS += -DLLVM_ENABLE_RTTI=ON
|
||||
LLVM_CONF_OPTS += -DLLVM_ENABLE_RTTI=ON
|
||||
else
|
||||
HOST_LLVM_CONF_OPTS += -DLLVM_ENABLE_RTTI=OFF
|
||||
LLVM_CONF_OPTS += -DLLVM_ENABLE_RTTI=OFF
|
||||
endif
|
||||
|
||||
# Compiler-rt not in the source tree.
|
||||
# llvm runtime libraries are not in the source tree.
|
||||
# Polly is not in the source tree.
|
||||
|
||||
Reference in New Issue
Block a user