From patchwork Thu Oct 17 15:29:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Drake X-Patchwork-Id: 1178752 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=codethink.co.uk Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46vCn60sRqz9sPn for ; Fri, 18 Oct 2019 02:30:08 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E243022115; Thu, 17 Oct 2019 15:30:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U6ExmV0q8nBh; Thu, 17 Oct 2019 15:30:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 3D75D24981; Thu, 17 Oct 2019 15:30:02 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 07DF01BF568 for ; Thu, 17 Oct 2019 15:29:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 04FF2886A8 for ; Thu, 17 Oct 2019 15:29:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1Rc0notbOGbz for ; Thu, 17 Oct 2019 15:29:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from imap1.codethink.co.uk (imap1.codethink.co.uk [176.9.8.82]) by hemlock.osuosl.org (Postfix) with ESMTPS id 3F790886AB for ; Thu, 17 Oct 2019 15:29:40 +0000 (UTC) Received: from [167.98.27.226] (helo=ts007-build.ts007.codethink.co.uk) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1iL7ic-0002Zy-AD; Thu, 17 Oct 2019 16:29:38 +0100 From: Michael Drake To: buildroot@buildroot.org Date: Thu, 17 Oct 2019 16:29:05 +0100 Message-Id: <20191017152929.49153-7-michael.drake@codethink.co.uk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191017152929.49153-1-michael.drake@codethink.co.uk> References: <20191017152929.49153-1-michael.drake@codethink.co.uk> MIME-Version: 1.0 Subject: [Buildroot] [RFC PATCH v2 06/30] lld: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joseph Kogut , Michael Drake , Thomas Preston Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Joseph Kogut Signed-off-by: Joseph Kogut Signed-off-by: Michael Drake Signed-off-by: Thomas Preston --- DEVELOPERS | 1 + package/Config.in.host | 1 + package/lld/Config.in.host | 16 ++++++++++++++++ package/lld/lld.hash | 2 ++ package/lld/lld.mk | 15 +++++++++++++++ 5 files changed, 35 insertions(+) create mode 100644 package/lld/Config.in.host create mode 100644 package/lld/lld.hash create mode 100644 package/lld/lld.mk diff --git a/DEVELOPERS b/DEVELOPERS index 4ab4e36593..bdc98edd12 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1221,6 +1221,7 @@ F: package/at-spi2-core/ F: package/clang/ F: package/gconf/ F: package/libnss/ +F: package/lld/ F: package/llvm/ F: package/python-cython/ F: package/python-raven/ diff --git a/package/Config.in.host b/package/Config.in.host index 3122f5abca..18074ae1a7 100644 --- a/package/Config.in.host +++ b/package/Config.in.host @@ -34,6 +34,7 @@ menu "Host utilities" source "package/jq/Config.in.host" source "package/jsmin/Config.in.host" source "package/libp11/Config.in.host" + source "package/lld/Config.in.host" source "package/llvm/Config.in.host" source "package/lpc3250loader/Config.in.host" source "package/lttng-babeltrace/Config.in.host" diff --git a/package/lld/Config.in.host b/package/lld/Config.in.host new file mode 100644 index 0000000000..c04b7924fa --- /dev/null +++ b/package/lld/Config.in.host @@ -0,0 +1,16 @@ +config BR2_PACKAGE_HOST_LLD + bool "host lld" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS # llvm + depends on BR2_HOST_GCC_AT_LEAST_4_8 # llvm + select BR2_PACKAGE_HOST_LLVM + help + LLD is a linker from the LLVM project that is a drop-in + replacement for system linkers, and runs much faster than + them. It also provides features that are useful for + toolchain developers. + + https://lld.llvm.org/ + +comment "lld needs a toolchain w/ host gcc >= 4.8" + depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS + depends on !BR2_HOST_GCC_AT_LEAST_4_8 diff --git a/package/lld/lld.hash b/package/lld/lld.hash new file mode 100644 index 0000000000..ebec212041 --- /dev/null +++ b/package/lld/lld.hash @@ -0,0 +1,2 @@ +sha256 9caec8ec922e32ffa130f0fb08e4c5a242d7e68ce757631e425e9eba2e1a6e37 lld-8.0.0.src.tar.xz +sha256 a6c2a7ad246b567fd1828561ee8c244e35f73f164f031c82a7f28eff9634d23d LICENSE.TXT diff --git a/package/lld/lld.mk b/package/lld/lld.mk new file mode 100644 index 0000000000..6c3b10a667 --- /dev/null +++ b/package/lld/lld.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# lld +# +################################################################################ + +LLD_VERSION = 8.0.0 +LLD_SITE = https://llvm.org/releases/$(LLD_VERSION) +LLD_SOURCE = lld-$(LLD_VERSION).src.tar.xz +LLD_LICENSE = NCSA +LLD_LICENSE_FILES = LICENSE.TXT +LLD_SUPPORTS_IN_SOURCE_BUILD = NO +HOST_LLD_DEPENDENCIES = host-llvm + +$(eval $(host-cmake-package))