Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

synocli-devel: New package - debugging, target python wheel building #5225

Merged
merged 61 commits into from
Apr 10, 2023
Merged
Show file tree
Hide file tree
Changes from 50 commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
5387b27
gdb: New package to help debugging
th0ma7 Apr 22, 2022
8ba7cbc
gdb: Does not support armv5 & ppc (qoriq)
th0ma7 Apr 22, 2022
2e1083b
gdb: Fix variable PLIST entries per arch using PLIST.auto
th0ma7 Apr 24, 2022
67da46f
gdb: Adjust PLIST_TRANSFORM to remove libs per archs
th0ma7 Apr 24, 2022
aba9104
mpfr: Update from version 4.0.2 to 4.1.1
th0ma7 Dec 27, 2022
079bc90
binutils: Update from version 2.38 to 2.39
th0ma7 Dec 27, 2022
9ba53cd
gdb: Update from version 11.2 to 12.1
th0ma7 Dec 27, 2022
dc671fa
gdb: Update package information
th0ma7 Dec 27, 2022
0cde1dd
binutils-legacy: Provide a compatible version for older archs
th0ma7 Dec 27, 2022
ac46d04
gdb-legacy: Add old gdb version that compiles without c++11
th0ma7 Dec 27, 2022
e5670de
synocli-devel: Switch to calling the package synocli-devel
th0ma7 Dec 27, 2022
4ad91dd
synoclie-devel: Remove obsolete DEPENDS
th0ma7 Dec 27, 2022
daa4f1c
synocli-devel: Rename the directory to match new package naming
th0ma7 Dec 27, 2022
49d1ad5
synocli-devel: include arch definitions to handle exceptions
th0ma7 Dec 28, 2022
d11f888
synocli-devel: Inverse gdb vs binutils build and add bc
th0ma7 Dec 28, 2022
66df094
binutils: Move to include/binutils for armv5 and enable other opt
th0ma7 Dec 28, 2022
181945e
gdb: Add a diyspk for gdb
th0ma7 Dec 28, 2022
4492349
binutils: Move includes as conflicting with gdb's version
th0ma7 Dec 28, 2022
f3c8e42
synocli-develop: Include @hgy59 proposed icon
th0ma7 Dec 28, 2022
2ca653c
synocli-devel: Multiple changes + adding symlinks for all binaries
th0ma7 Dec 28, 2022
042dfba
binutils-legacy: No needed anymore as compiling on all archs
th0ma7 Dec 28, 2022
5c51e0c
binutils: Disable gprofng on i686 as it fails to build
th0ma7 Dec 28, 2022
0e1c649
gdb: Convert to use multiple versions automatically
th0ma7 Mar 6, 2023
b03f479
gdb: Update from version 12.1 to 13.1
th0ma7 Mar 6, 2023
5e797d6
cross-cmake.mk + tc.mk: Allow BUILD_SHARED_LIBS to be manually set
th0ma7 Mar 6, 2023
2b3fc28
llvm: Allow multiple versions of LLVM
th0ma7 Mar 6, 2023
3c04a0c
gdb: Fix type for main makefile
th0ma7 Mar 6, 2023
0c3cc0c
llvm-9.0: Use native/llvm to access *-tblgen tools
th0ma7 Mar 6, 2023
67f180e
llvm-latest: Enable zlib by default
th0ma7 Mar 6, 2023
3965f5b
llvm-9.0: Fix access to llvm-tblgen and clang-tblgen
th0ma7 Mar 6, 2023
5eeb639
llvm-9.0: First working build - pending toolchain patches commit
th0ma7 Mar 8, 2023
c1facbc
toolchain: Define missing SCSI_IOCTL_TAGGED_ENABLE|DISABLE
th0ma7 Mar 9, 2023
13d1cbf
synocli-devel: Adjust LLVM and build first
th0ma7 Mar 9, 2023
5f23688
llvm-latest: Sync back with llvm-9.0
th0ma7 Mar 9, 2023
d5337cc
synocli-devel: Fix type in re-ordering
th0ma7 Mar 9, 2023
1edf7a8
llvm-latest: Disable zlib for all and libfuzzer for aarch64
th0ma7 Mar 9, 2023
819c0c9
synocli-devel: Mark ARMv5 as unsupported
th0ma7 Mar 9, 2023
61ac346
synocli-devel: LLVM is now compiled with limited toolset
th0ma7 Mar 13, 2023
45d62d4
llvm-9.0: First version working on all regular archs
th0ma7 Mar 13, 2023
302d8c6
llvm-9.0: Enable RTTI
th0ma7 Mar 13, 2023
4241742
llvm-9.0: ncursesw patch no more needed
th0ma7 Mar 14, 2023
3455ce5
llvm-9.0: pcre2 no more needed
th0ma7 Mar 14, 2023
6a676a5
toolchain: Keep SCSI_IOCTL_TAGGED_* patches on for mandatory archs
th0ma7 Mar 14, 2023
b0146d4
toolchain (armv7-7.x): Define missing SCSI_IOCTL_TAGGED_ENABLE|DISABLE
th0ma7 Apr 1, 2023
ac1b5df
llvm (dsm7): Upgrade to version 16.0
th0ma7 Apr 2, 2023
600d21a
synocli-devel: Re-enable llvm-latest using LLVM version 16.0
th0ma7 Apr 2, 2023
bd18987
synocli-devel: Add autoconf & automake
th0ma7 Apr 2, 2023
3e60c0c
plist.mk: Ensure to process *script* as rsc files
th0ma7 Apr 2, 2023
bd3a8f1
synocli-devel: Add GNU make
th0ma7 Apr 2, 2023
0b22d46
synocli-devel: Add pkg-config
th0ma7 Apr 2, 2023
5cdfcc5
synocli-devel: Move pkg-config up for glib failure with libiconv
th0ma7 Apr 2, 2023
ee3396b
make: Adjust license as changed since version 4.3
th0ma7 Apr 3, 2023
ddfdbab
tc.mk: Export TC_SYSROOT for GCC
th0ma7 Apr 4, 2023
39bff93
gcc: Variations on a trial & mostly errors
th0ma7 Apr 4, 2023
9f31cd5
LLVM: Update to version 16.0.1
th0ma7 Apr 9, 2023
5e96ce2
cloog: Add version 0.20.0
th0ma7 Apr 9, 2023
327dff5
isl: Add version 0.25
th0ma7 Apr 9, 2023
fc29567
synocli-devel: Update homepage & license
th0ma7 Apr 9, 2023
f68296a
m4 & make: Fix URL
th0ma7 Apr 9, 2023
7af9986
mpfr: Update from version 4.1.1 to 4.2.0
th0ma7 Apr 9, 2023
24b930d
gcc: Removal of tentative of cross-compiling GCC suite
th0ma7 Apr 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions cross/autoconf/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
PKG_NAME = autoconf
PKG_VERS = 2.71
PKG_EXT = tar.xz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://ftp.gnu.org/gnu/autoconf/
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = cross/m4

HOMEPAGE = https://www.gnu.org/software/autoconf/
COMMENT = Autoconf is an extensible package of M4 macros that produce shell scripts to automatically configure software source code packages.
LICENSE = GPLv2

GNU_CONFIGURE = 1

include ../../mk/spksrc.cross-cc.mk
Empty file added cross/autoconf/PLIST.auto
Empty file.
3 changes: 3 additions & 0 deletions cross/autoconf/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
autoconf-2.71.tar.xz SHA1 1b5b1dbed849c6653be47c56d28d26fcf3f7238a
autoconf-2.71.tar.xz SHA256 f14c83cfebcc9427f2c3cea7258bd90df972d92eb26752da4ddad81c87a0faa4
autoconf-2.71.tar.xz MD5 12cfa1687ffa2606337efe1a64416106
16 changes: 16 additions & 0 deletions cross/automake/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
PKG_NAME = automake
PKG_VERS = 1.16.5
PKG_EXT = tar.xz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://ftp.gnu.org/gnu/automake/
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS =

HOMEPAGE = https://www.gnu.org/software/automake/
COMMENT = GNU Automake is a tool for automatically generating Makefile.in files compliant with the GNU Coding Standards.
LICENSE = GPLv2

GNU_CONFIGURE = 1

include ../../mk/spksrc.cross-cc.mk
Empty file added cross/automake/PLIST.auto
Empty file.
3 changes: 3 additions & 0 deletions cross/automake/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
automake-1.16.5.tar.xz SHA1 32fb36e73568271ff506b60c55a6170b67681375
automake-1.16.5.tar.xz SHA256 f01d58cd6d9d77fbdca9eb4bbd5ead1988228fdb73d6f7a201f5f8d6b118b469
automake-1.16.5.tar.xz MD5 4017e96f89fca45ca946f1c5db6be714
28 changes: 28 additions & 0 deletions cross/binutils/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
PKG_NAME = binutils
PKG_VERS = 2.39
PKG_EXT = tar.xz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://ftp.gnu.org/gnu/binutils/
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = cross/zlib cross/gmp cross/mpfr

HOMEPAGE = https://www.gnu.org/software/binutils/
COMMENT = GNU Binutils
LICENSE = GPLv2/LGPLv2

GNU_CONFIGURE = 1

include ../../mk/spksrc.archs.mk

CONFIGURE_ARGS += --enable-host-shared
CONFIGURE_ARGS += --with-system-zlib
CONFIGURE_ARGS += --enable-gold=yes
# Fails to build on i686
ifeq ($(findstring $(ARCH),$(i686_ARCHS)),$(ARCH))
CONFIGURE_ARGS += --enable-gprofng=no
endif
# Otherwise conflicts with gdb
CONFIGURE_ARGS += --includedir=$(INSTALL_PREFIX)/include/binutils

include ../../mk/spksrc.cross-cc.mk
17 changes: 17 additions & 0 deletions cross/binutils/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
bin:bin/addr2line
bin:bin/ar
bin:bin/as
bin:bin/c++filt
bin:bin/dwp
bin:bin/elfedit
bin:bin/gp*
bin:bin/ld*
bin:bin/nm
bin:bin/objcopy
bin:bin/objdump
bin:bin/ranlib
bin:bin/readelf
bin:bin/size
bin:bin/strings
bin:bin/strip
lib:lib/bfd-plugins/libdep.so
3 changes: 3 additions & 0 deletions cross/binutils/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
binutils-2.39.tar.xz SHA1 f17653e7b1d1fa5242a408919845da23e8cc5141
binutils-2.39.tar.xz SHA256 645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
binutils-2.39.tar.xz MD5 f7e986ae9ff06405cafb2e585ee36d27
53 changes: 53 additions & 0 deletions cross/gdb-7.12/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
PKG_NAME = gdb
PKG_VERS = 7.12.1
PKG_EXT = tar.xz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://ftp.gnu.org/gnu/gdb
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = cross/zlib cross/libexpat cross/gmp cross/ncursesw cross/mpfr

HOMEPAGE = https://www.gnu.org/software/gdb/
COMMENT = The GNU Project Debugger
LICENSE = GPLv2/LGPLv2

UNSUPPORTED_ARCHS = $(PPC_ARCHS)

GNU_CONFIGURE = 1

CONFIGURE_TARGET = gdb_configure
COMPILE_TARGET = gdb_compile
INSTALL_TARGET = gdb_install

include ../../mk/spksrc.common.mk

CONFIGURE_ARGS += $(TC_CONFIGURE_ARGS)
CONFIGURE_ARGS += --prefix=$(INSTALL_PREFIX)
CONFIGURE_ARGS += --enable-host-shared
CONFIGURE_ARGS += --with-system-zlib
ifeq ($(call version_ge, ${TCVERSION}, 7.0),1)
CONFIGURE_ARGS += --localstatedir=$(INSTALL_PREFIX_VAR)
endif

include ../../mk/spksrc.cross-cc.mk

# Library is not created under armv5 and armv7
ifeq ($(findstring $(ARCH),$(ARMv5_ARCHS) $(ARMv7_ARCHS) $(ARMv7L_ARCHS)),$(ARCH))
PLIST_TRANSFORM = sed -e 's?lib:lib/libinproctrace.so??g'
# binary only created on armv7
else
PLIST_TRANSFORM = sed -e 's?bin:bin/run??g'
endif

.PHONY: gdb_configure
gdb_configure:
@$(RUN) mkdir -p build
@$(RUN) ; cd build ; PATH=$(TC_PATH):$$PATH CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CPPFLAGS="$(CPPFLAGS)" CXXFLAGS="$(CXXFLAGS)" $(WORK_DIR)/$(PKG_DIR)/configure $(CONFIGURE_ARGS)

.PHONY: gdb_compile
gdb_compile:
@$(RUN) ; cd build ; PATH=$(TC_PATH):$$PATH make

.PHONY: gdb_install
gdb_install:
@$(RUN) ; cd build ; PATH=$(TC_PATH):$$PATH make install DESTDIR=$(INSTALL_DIR)
5 changes: 5 additions & 0 deletions cross/gdb-7.12/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bin:bin/gcore
bin:bin/gdb
bin:bin/gdbserver
bin:bin/run
lib:lib/libinproctrace.so
3 changes: 3 additions & 0 deletions cross/gdb-7.12/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
gdb-7.12.1.tar.xz SHA1 ef77c5345d6f9fdcdf7a5d8503301242b701936e
gdb-7.12.1.tar.xz SHA256 4607680b973d3ec92c30ad029f1b7dbde3876869e6b3a117d8a7e90081113186
gdb-7.12.1.tar.xz MD5 193453347ddced7acb6b1cd2ee8f2e4b
28 changes: 28 additions & 0 deletions cross/gdb-latest/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
PKG_NAME = gdb
PKG_VERS = 13.1
PKG_EXT = tar.xz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://ftp.gnu.org/gnu/gdb
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = cross/zlib cross/libexpat cross/gmp cross/ncursesw cross/mpfr

HOMEPAGE = https://www.gnu.org/software/gdb/
COMMENT = The GNU Project Debugger
LICENSE = GPLv2/LGPLv2

GNU_CONFIGURE = 1
CONFIGURE_ARGS += --enable-host-shared
CONFIGURE_ARGS += --with-system-zlib

UNSUPPORTED_ARCHS = $(ARMv5_ARCHS) $(PPC_ARCHS)

include ../../mk/spksrc.cross-cc.mk

# Library is not created under armv7
ifeq ($(findstring $(ARCH),$(ARMv7_ARCHS) $(ARMv7L_ARCHS)),$(ARCH))
PLIST_TRANSFORM = sed -e 's?lib:lib/libinproctrace.so??g'
# binary only created on armv7
else
PLIST_TRANSFORM = sed -e 's?bin:bin/run??g'
endif
6 changes: 6 additions & 0 deletions cross/gdb-latest/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bin:bin/gcore
bin:bin/gdb
bin:bin/gdb-add-index
bin:bin/gdbserver
bin:bin/run
lib:lib/libinproctrace.so
3 changes: 3 additions & 0 deletions cross/gdb-latest/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
gdb-13.1.tar.xz SHA1 6f0f5f905085f447672d9f52af66b42207d56e46
gdb-13.1.tar.xz SHA256 115ad5c18d69a6be2ab15882d365dda2a2211c14f480b3502c6eba576e2e95a0
gdb-13.1.tar.xz MD5 4aaad768ff2585464173c091947287ec
27 changes: 17 additions & 10 deletions cross/gdb/Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
PKG_NAME = gdb
PKG_VERS = 7.6
PKG_EXT = tar.bz2
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://ftp.gnu.org/gnu/gdb
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = cross/termcap
PKG_NAME = gdb-main

HOMEPAGE = https://www.gnu.org/software/gdb/
COMMENT = The GNU Project Debugger
LICENSE = GPLv2/LGPLv2

GNU_CONFIGURE = 1
DOWNLOAD_TARGET = nop
CHECKSUM_TARGET = nop
EXTRACT_TARGET = nop
CONFIGURE_TARGET = nop
COMPILE_TARGET = nop
INSTALL_TARGET = nop

OPTIONAL_DEPENDS = cross/gdb-latest
OPTIONAL_DEPENDS += cross/gdb-7.12

include ../../mk/spksrc.install-resources.mk

include ../../mk/spksrc.cross-cc.mk
ifeq ($(findstring $(ARCH),$(ARMv5_ARCHS)),$(ARCH))
DEPENDS += cross/gdb-7.12
else
DEPENDS += cross/gdb-latest
endif
3 changes: 0 additions & 3 deletions cross/gdb/PLIST
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
bin:bin/gdb
bin:bin/gdbserver
bin:bin/run
3 changes: 0 additions & 3 deletions cross/gdb/digests
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
gdb-7.6.tar.bz2 SHA1 b64095579a20e011beeaa5b264fe23a9606ee40f
gdb-7.6.tar.bz2 SHA256 a410e8f35ee70cce83dbbf1da9e2a8373f271ac0e4b71db4336ae293fc7bdf1b
gdb-7.6.tar.bz2 MD5 fda57170e4d11cdde74259ca575412a8
132 changes: 132 additions & 0 deletions cross/llvm-9.0/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
PKG_NAME = llvm
PKG_VERS = 9.0.1
PKG_EXT = tar.xz
PKG_DIST_NAME = $(PKG_NAME)-project-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/llvm/llvm-project/releases/download/llvmorg-$(PKG_VERS)
PKG_DIR = $(PKG_NAME)-project-$(PKG_VERS)

HOMEPAGE = https://llvm.org/
COMMENT = The LLVM Project is a collection of modular and reusable compiler and toolchain technologies
LICENSE = Apache License v2.0 with LLVM Exceptions

UNSUPPORTED_ARCHS = $(ARMv5_ARCHS) $(PPC_ARCHS)
CMAKE_USE_NINJA = 1

# Using LLVM project source need to change to llvm sub-directory
CMAKE_DIR = $(WORK_DIR)/$(PKG_DIR)/llvm

# https://llvm.org/docs/CMake.html
CMAKE_ARGS += -DCMAKE_BUILD_TYPE=MinSizeRel
CMAKE_ARGS += -Wno-dev
CMAKE_ARGS += -DLLVM_BUILD_DOCS=OFF
CMAKE_ARGS += -DLLVM_INCLUDE_DOCS=OFF
CMAKE_ARGS += -DLLVM_ENABLE_WARNINGS=OFF
CMAKE_ARGS += -DLLVM_INCLUDE_EXAMPLES=OFF
CMAKE_ARGS += -DLLVM_INCLUDE_TESTS=OFF
CMAKE_ARGS += -DLLVM_INCLUDE_BENCHMARKS=OFF
CMAKE_ARGS += -DLLVM_DEFAULT_TARGET_TRIPLE=$(TC_TARGET)

# Enable building with zlib to support compression/uncompression
DEPENDS += cross/zlib
CMAKE_ARGS += -DLLVM_ENABLE_ZLIB=ON

# Indicates whether the LLVM Interpreter will be
# linked with the Foreign Function Interface library
# (libffi) in order to enable calling external functions.
DEPENDS += cross/libffi
CMAKE_ARGS += LLVM_ENABLE_FFI=ON

DEPENDS += cross/ncursesw
CMAKE_ARGS += -DLLVM_ENABLE_TERMINFO=ON

DEPENDS += cross/libxml2
CMAKE_ARGS += -DLLVM_ENABLE_LIBXML2=ON

# When set to ON it removes many of the LLVM development and
# testing tools as well as component libraries from the
# default install target. Including the development tools is
# not recommended for distributions as many of the LLCM tools
# are only intended for development and testing use.
CMAKE_ARGS += -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON

# Assertions are internal checks to help find bugs.
# They typically slow down LLVM and Clang when enabled
CMAKE_ARGS += -DLLVM_ENABLE_ASSERTIONS=OFF

# BUILD_SHARED_LIBS is only recommended for use
# by LLVM developers. If you want to build LLVM
# as a shared library, you should use the
# LLVM_BUILD_LLVM_DYLIB option
# CMAKE_ARGS += -DBUILD_SHARED_LIBS=ON
CMAKE_ARGS += -DBUILD_SHARED_LIBS=OFF

# The most impactful way to reduce binary size is
# to dynamically link LLVM into all the tools.
# This reduces code size by decreasing duplication
# of common code between the LLVM-based tools.
CMAKE_ARGS += -DLLVM_BUILD_LLVM_DYLIB=ON
CMAKE_ARGS += -DLLVM_LINK_LLVM_DYLIB=ON

# Allow users to build with RTTI (Run-Time Type Info)
# enabled and still inherit from LLVM classes
CMAKE_ARGS += -DLLVM_ENABLE_RTTI=ON

# Requires native/llvm-9.0
BUILD_DEPENDS = native/llvm-9.0
CMAKE_ARGS += -DLLVM_TOOLS_BINARY_DIR=$(abspath $(PWD)/../../native/llvm-9.0/work-native/install/usr/local/bin)
CMAKE_ARGS += -DLLVM_CONFIG=$(abspath $(PWD)/../../native/llvm-9.0/work-native/install/usr/local/bin/llvm-config)
CMAKE_ARGS += -DLLVM_TABLEGEN=$(abspath $(PWD)/../../native/llvm-9.0/work-native/install/usr/local/bin/llvm-tblgen)
CMAKE_ARGS += -DCLANG_TABLEGEN=$(abspath $(PWD)/../../native/llvm-9.0/work-native/install/usr/local/bin/clang-tblgen)

include ../../mk/spksrc.common.mk

#
# https://llvm.org/docs/HowToCrossCompileBuiltinsOnArm.html
#
# armv7-6.1, hi3535-6.1 and comcerto2k
# has errors with gnu-as related to compiler-rt
#
ifeq ($(findstring $(ARCH),$(ARMv7_ARCHS)),$(ARCH))
CMAKE_ARGS += -DLLVM_TARGETS_TO_BUILD=ARM

ifeq ($(findstring $(ARCH),comcerto2k),$(ARCH))
CMAKE_ARGS += -DLLVM_ENABLE_PROJECTS='clang;lld'

else ifeq ($(call version_lt, $(TCVERSION), 7.0),1)
CMAKE_ARGS += -DLLVM_ENABLE_PROJECTS='clang;lld'

else
CMAKE_ARGS += -DLLVM_ENABLE_PROJECTS='clang;compiler-rt;lld'
CMAKE_ARGS += -DCOMPILER_RT_BUILD_BUILTINS=ON
CMAKE_ARGS += -DCOMPILER_RT_BUILD_PROFILE=OFF
CMAKE_ARGS += -DCOMPILER_RT_BUILD_SANITIZERS=OFF
CMAKE_ARGS += -DCOMPILER_RT_BUILD_XRAY=OFF
endif
endif

ifeq ($(findstring $(ARCH),$(ARMv7L_ARCHS)),$(ARCH))
CMAKE_ARGS += -DLLVM_TARGETS_TO_BUILD=ARM
CMAKE_ARGS += -DLLVM_ENABLE_PROJECTS='clang;lld'
endif

ifeq ($(findstring $(ARCH),$(ARMv8_ARCHS)),$(ARCH))
CMAKE_ARGS += -DLLVM_TARGETS_TO_BUILD=AArch64
CMAKE_ARGS += -DLLVM_ENABLE_PROJECTS='clang;compiler-rt;lld'
endif

ifeq ($(findstring $(ARCH),$(i686_ARCHS)),$(ARCH))
CMAKE_ARGS += -DLLVM_TARGETS_TO_BUILD=X86
CMAKE_ARGS += -DLLVM_ENABLE_PROJECTS='clang;compiler-rt;lld'
endif

ifeq ($(findstring $(ARCH),$(x64_ARCHS)),$(ARCH))
CMAKE_ARGS += -DLLVM_TARGETS_TO_BUILD=X86
CMAKE_ARGS += -DLLVM_ENABLE_PROJECTS='clang;compiler-rt;lld'
endif

include ../../mk/spksrc.cross-cmake.mk

ifeq ($(call version_lt, $(TC_GCC), 5.1),1)
CMAKE_ARGS += -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON
CMAKE_ARGS += -DCOMPILER_RT_BUILD_LIBFUZZER=OFF
endif
Empty file added cross/llvm-9.0/PLIST.auto
Empty file.
3 changes: 3 additions & 0 deletions cross/llvm-9.0/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
llvm-project-9.0.1.tar.xz SHA1 2e59097a784f1e45dfa483dbf90281c86819a21f
llvm-project-9.0.1.tar.xz SHA256 ea241c807e949c24615691a5271e20bcaaa404b28a5f6deb462f9c22b478489b
llvm-project-9.0.1.tar.xz MD5 b4268e733dfe352960140dc07ef2efcb
Loading