From patchwork Tue Jun 14 15:20:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: fabrice.fontaine@orange.com X-Patchwork-Id: 635375 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rTYHg1bLJz9sdg for ; Wed, 15 Jun 2016 01:20:31 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id CA95587211; Tue, 14 Jun 2016 15:20:29 +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 U5ubKCEcIecl; Tue, 14 Jun 2016 15:20:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 7DCC287226; Tue, 14 Jun 2016 15:20:26 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 6CD031CE64E for ; Tue, 14 Jun 2016 15:20:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6B2168AFB1 for ; Tue, 14 Jun 2016 15:20:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7OWBOp7irIRe for ; Tue, 14 Jun 2016 15:20:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relais-inet.francetelecom.com (relais-ias92.francetelecom.com [193.251.215.92]) by whitealder.osuosl.org (Postfix) with ESMTPS id E75E587F3D for ; Tue, 14 Jun 2016 15:20:23 +0000 (UTC) Received: from omfedm06.si.francetelecom.fr (unknown [xx.xx.xx.2]) by omfedm12.si.francetelecom.fr (ESMTP service) with ESMTP id 8D9DE18C060 for ; Tue, 14 Jun 2016 17:20:21 +0200 (CEST) Received: from Exchangemail-eme2.itn.ftgroup (unknown [10.114.31.43]) by omfedm06.si.francetelecom.fr (ESMTP service) with ESMTP id 70CD527C064 for ; Tue, 14 Jun 2016 17:20:21 +0200 (CEST) Received: from r-x-uffo8396.rd.francetelecom.fr (10.168.234.3) by OPEXCLILM5F.corporate.adroot.infra.ftgroup (10.114.31.43) with Microsoft SMTP Server id 14.3.294.0; Tue, 14 Jun 2016 17:20:20 +0200 From: To: Date: Tue, 14 Jun 2016 17:20:03 +0200 X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.168.234.3] Message-ID: <6875_1465917621_576020B5_6875_68_5_4905e844-3c08-443f-9e36-4f21854a3e00@OPEXCLILM5F.corporate.adroot.infra.ftgroup> X-PMX-Version: 6.2.1.2478543, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2016.6.7.90315 Cc: Fabrice Fontaine Subject: [Buildroot] [PATCH 1/1] alljoyn: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The AllJoyn framework defines a common way for devices and apps to communicate with one another regardless of brands, categories, transports, and OSes. Developers write applications that discover nearby devices, and communicate with each other directly and through the cloud, unleashing new possibilities in the Internet of Things. https://allseenalliance.org Signed-off-by: Fabrice Fontaine --- package/Config.in | 1 + package/alljoyn/Config.in | 18 +++++++++++ package/alljoyn/alljoyn.hash | 2 ++ package/alljoyn/alljoyn.mk | 77 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 98 insertions(+) create mode 100644 package/alljoyn/Config.in create mode 100644 package/alljoyn/alljoyn.hash create mode 100644 package/alljoyn/alljoyn.mk diff --git a/package/Config.in b/package/Config.in index ff08f27..f0106da 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1123,6 +1123,7 @@ endmenu menu "Networking" source "package/agentpp/Config.in" + source "package/alljoyn/Config.in" source "package/batman-adv/Config.in" source "package/c-ares/Config.in" source "package/canfestival/Config.in" diff --git a/package/alljoyn/Config.in b/package/alljoyn/Config.in new file mode 100644 index 0000000..22a0ff8 --- /dev/null +++ b/package/alljoyn/Config.in @@ -0,0 +1,18 @@ +config BR2_PACKAGE_ALLJOYN + bool "alljoyn" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_USE_WCHAR + select BR2_PACKAGE_LIBCAP + help + The AllJoyn framework defines a common way for devices and apps to + communicate with one another regardless of brands, categories, + transports, and OSes. Developers write applications that discover + nearby devices, and communicate with each other directly and through + the cloud, unleashing new possibilities in the Internet of Things. + + https://allseenalliance.org + +comment "alljoyn needs a toolchain w/ C++, threads and wchar" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + !BR2_USE_WCHAR diff --git a/package/alljoyn/alljoyn.hash b/package/alljoyn/alljoyn.hash new file mode 100644 index 0000000..e18d66e --- /dev/null +++ b/package/alljoyn/alljoyn.hash @@ -0,0 +1,2 @@ +# Locally computed: +sha256 41bd424d376d22dc2b48cc035400bd63595d19467eeb6a7ae81429f5a43ed2e2 alljoyn-16.04.00-src.tar.gz diff --git a/package/alljoyn/alljoyn.mk b/package/alljoyn/alljoyn.mk new file mode 100644 index 0000000..272dd18 --- /dev/null +++ b/package/alljoyn/alljoyn.mk @@ -0,0 +1,77 @@ +################################################################################ +# +# alljoyn +# +################################################################################ + +ALLJOYN_REV = 16.04 +ALLJOYN_VERSION = $(ALLJOYN_REV).00 +ALLJOYN_SOURCE = alljoyn-$(ALLJOYN_VERSION)-src.tar.gz +ALLJOYN_SITE = https://mirrors.kernel.org/allseenalliance/alljoyn/$(ALLJOYN_REV) +# See https://allseenalliance.org/alliance/ip-policy +ALLJOYN_LICENSE = ISC +# AllJoyn does not provide any license files with source code +# ALLJOYN_LICENSE_FILES = + +ALLJOYN_DEPENDENCIES = host-scons libcap +ALLJOYN_INSTALL_STAGING = YES + +# If BR2_PACKAGE_OPENSSL is set, use openssl otherwise use builtin crypto +ifeq ($(BR2_PACKAGE_OPENSSL), y) +ALLJOYN_DEPENDENCIES += openssl +ALLJOYN_CRYPTO = openssl +else +ALLJOYN_CRYPTO = builtin +endif + +# AllJoyn can be compiled in debug or release mode. By default, AllJoyn is built +# in debug mode. +ALLJOYN_VARIANT = release + +ALLJOYN_BINDINGS = c,cpp + +# By setting openwrt for OS and CPU, AllJoyn cross-compilation can be finely +# tuned through TARGET_xxx options. All TARGET_xxx variables must be defined +# otherwise compilation will fail. +# CROSS_COMPILE option should not be used as it works only for linux/ARM. +ALLJOYN_OS = openwrt +ALLJOYN_CPU = openwrt + +# AllJoyn install everything in this relative path +ALLJOYN_DISTDIR = /build/$(ALLJOYN_OS)/$(ALLJOYN_CPU)/$(ALLJOYN_VARIANT)/dist/ + +ALLJOYN_SCONS_OPTS = \ + -j$(PARALLEL_JOBS) \ + V=1 \ + OS=$(ALLJOYN_OS) \ + CPU=$(ALLJOYN_CPU) \ + VARIANT=$(ALLJOYN_VARIANT) \ + BR=off \ + CRYPTO=$(ALLJOYN_CRYPTO) \ + BINDINGS=$(ALLJOYN_BINDINGS) \ + TARGET_CFLAGS="$(TARGET_CFLAGS)" \ + TARGET_CPPFLAGS="$(TARGET_CPPFLAGS)" \ + TARGET_LINKFLAGS="$(TARGET_LINKFLAGS)" \ + TARGET_CC="$(TARGET_CC)" \ + TARGET_CXX="$(TARGET_CXX)" \ + TARGET_LD="$(TARGET_LD)" \ + TARGET_LINK="$(TARGET_CXX)" \ + TARGET_AR="$(TARGET_AR)" \ + TARGET_RANLIB="$(TARGET_RANLIB)" \ + TARGET_PATH="$(BR_PATH)" + +define ALLJOYN_BUILD_CMDS + cd $(@D); $(SCONS) $(ALLJOYN_SCONS_OPTS) +endef + +define ALLJOYN_INSTALL_STAGING_CMDS + cp -a $(@D)/$(ALLJOYN_DISTDIR)/*/lib/lib* $(STAGING_DIR)/usr/lib/ + cp -a $(@D)/$(ALLJOYN_DISTDIR)/*/inc/* $(STAGING_DIR)/usr/include/ +endef + +# Only install alljoyn dynamic libraries into target directory +define ALLJOYN_INSTALL_TARGET_CMDS + cp -a $(@D)/$(ALLJOYN_DISTDIR)/*/lib/lib*.so* $(TARGET_DIR)/usr/lib/ +endef + +$(eval $(generic-package))