From patchwork Mon Apr 12 16:55:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Weber X-Patchwork-Id: 1465400 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=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=rockwellcollins.com header.i=@rockwellcollins.com header.a=rsa-sha256 header.s=hrcrc2020 header.b=nbSMsXef; dkim-atps=neutral Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FJvxc2Zlpz9sRK for ; Tue, 13 Apr 2021 02:55:32 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id C902A605D8; Mon, 12 Apr 2021 16:55:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BAKuZCtH1s5k; Mon, 12 Apr 2021 16:55:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 06FC86060E; Mon, 12 Apr 2021 16:55:27 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 3DBB61BF3B9 for ; Mon, 12 Apr 2021 16:55:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 2E74583C72 for ; Mon, 12 Apr 2021 16:55:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp1.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=rockwellcollins.com Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KdhJ5ClJ78eU for ; Mon, 12 Apr 2021 16:55:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from da1vs04.rockwellcollins.com (da1vs04.rockwellcollins.com [205.175.227.52]) by smtp1.osuosl.org (Postfix) with ESMTPS id DC0DC83C23 for ; Mon, 12 Apr 2021 16:55:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rockwellcollins.com; s=hrcrc2020; h=from:to:cc:subject:date:message-id; bh=ScvwWUortSBYdmzMsp/os2wAlcs4xzFnU6MxdkJpaRA=; b=nbSMsXefppPZ9K+Huh3OFkRf8Qf/7S17CUXfOatDPbQOBjUEkiXunv9C JLvxa/LXc3ArGz+lfNNzwHXOan9Qh+NVg7gWySptGlLZg6ljFUFxZJTS+ w7d+iD71keoXmI2305NuZh1StBiuBKvmK+LmNN/1YNFievK32nwFc5tJ8 v6kC0fU+2X6NcRfdEsrgJyaNjt8+fAIeTINWJ+MEpDQ71UCVm2i7IcpEn pJRUVI8WfO5w2n+iIiNTrMypmUfvSfUP7+C0iaKZ0Hy74WGcFgr3Jx76e mbm36gNMpCww3VEhuAM5cuxKVDJHdDKiMbcvLHNPvRkbWXMPRO19IYymz A==; IronPort-SDR: NpeTMdvzDGLVfcot6WTu/ZPr0lJMJXFMeD28f2dXJgGtCFnClrRJKdFGYPu9Ep2HjeienIwXYz FIXJlA7/++eQPKILD/l+yeLOpDeSQxB4cwJ1Zr2SjEM8WeuAYTU20eV52gkRlhmwvOvizFES0j FpHbubDVLo9s+gBKT+xIZ0RkqAlDDJh4wdaEWbyCIPlv0Mo2szufQAq3TOrgTOghL3cnaKS6qh IsC6fLUJiqQcOTDIPE1rO2tgSdvau3DN0SVmPt8LE97S7+2bnf7PPjk80Gn0cJkp77zFE6wSJc g1k= Received: from ofwda1n02.rockwellcollins.com (HELO crulimr02.rockwellcollins.com) ([205.175.227.14]) by da1vs04.rockwellcollins.com with ESMTP; 12 Apr 2021 11:55:25 -0500 X-Received: from biscuits.rockwellcollins.com (biscuits.rockwellcollins.lab [10.148.119.137]) by crulimr02.rockwellcollins.com (Postfix) with ESMTP id 10F6360E10; Mon, 12 Apr 2021 11:55:25 -0500 (CDT) From: Matt Weber To: buildroot@buildroot.org Date: Mon, 12 Apr 2021 11:55:24 -0500 Message-Id: <20210412165524.17793-1-matthew.weber@rockwellcollins.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH] package/ace: 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: Matt Weber , Kalpesh Panchal MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" ACE is an open-source framework that provides many components and patterns for developing high-performance, distributed real-time and embedded systems. It provides powerful, yet efficient abstractions for sockets, demultiplexing loops, threads, synchronization primitives. Signed-off-by: Matt Weber Signed-off-by: Kalpesh Panchal --- DEVELOPERS | 1 + package/Config.in | 1 + package/ace/Config.in | 10 +++++++ package/ace/ace.hash | 3 +++ package/ace/ace.mk | 63 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 78 insertions(+) create mode 100644 package/ace/Config.in create mode 100644 package/ace/ace.hash create mode 100644 package/ace/ace.mk diff --git a/DEVELOPERS b/DEVELOPERS index 5c36fc413e..02553a76b0 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1722,6 +1722,7 @@ F: board/qemu/ppc64-e5500/ F: configs/freescale_p* F: configs/freescale_t* F: configs/qemu_ppc64_e5500_defconfig +F: package/ace/ F: package/argp-standalone/ F: package/aufs/ F: package/aufs-util/ diff --git a/package/Config.in b/package/Config.in index f47ee9f1c5..373d85f28f 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1851,6 +1851,7 @@ menu "Networking" endmenu menu "Other" + source "package/ace/Config.in" source "package/appstream-glib/Config.in" source "package/apr/Config.in" source "package/apr-util/Config.in" diff --git a/package/ace/Config.in b/package/ace/Config.in new file mode 100644 index 0000000000..7755327b21 --- /dev/null +++ b/package/ace/Config.in @@ -0,0 +1,10 @@ +config BR2_PACKAGE_ACE + bool "ace" + depends on BR2_TOOLCHAIN_USES_GLIBC + depends on !BR2_STATIC_LIBS + select BR2_PACKAGE_OPENSSL + help + The ADAPTIVE Communication Environment (ACE(TM)) + An OO Network Programming Toolkit in C++. + + See http://www.dre.vanderbilt.edu/~schmidt/ACE.html diff --git a/package/ace/ace.hash b/package/ace/ace.hash new file mode 100644 index 0000000000..92fd42e131 --- /dev/null +++ b/package/ace/ace.hash @@ -0,0 +1,3 @@ +# Locally Computed: +sha256 a28339750620c70cd29a8a7088a4bc6ebaf1ff7ba667498a0279ac97f0e32e01 ACE-7.0.1.tar.gz +sha256 687bf9d16119e0caf6fb5c18214928fd6ea0da10df91e906255b7613af8061d8 COPYING diff --git a/package/ace/ace.mk b/package/ace/ace.mk new file mode 100644 index 0000000000..80d50665d9 --- /dev/null +++ b/package/ace/ace.mk @@ -0,0 +1,63 @@ +################################################################################ +# +# ace +# +################################################################################ + +ACE_VERSION=7.0.1 +ACE_SOURCE=ACE-$(ACE_VERSION).tar.gz +ACE_SITE=http://download.dre.vanderbilt.edu/previous_versions +ACE_DEPENDENCIES=openssl +ACE_LICENSE = DOC +ACE_LICENSE_FILES = COPYING +ACE_INSTALL_STAGING=YES +ACE_CPE_ID_VENDOR = vanderbilt +ACE_CPE_ID_PRODUCT = adaptive_communication_environment + +# configure the target build +# refer: http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/ACE/ACE-INSTALL.html#unix +define ACE_CONFIGURE_CMDS + # create a config file + echo ' #include "ace/config-linux.h" ' > $(@D)/ace/config.h + # fix link error with ARM EABI tools + # http://list.isis.vanderbilt.edu/pipermail/ace-users/2008-January/002742.html + echo 'no_hidden_visibility = 1' > $(@D)/include/makeinclude/platform_macros.GNU + # create a platform macros file + echo 'include $(@D)/include/makeinclude/platform_linux.GNU' \ + >> $(@D)/include/makeinclude/platform_macros.GNU + # enable ssl + echo 'ssl = 1' >> $(@D)/include/makeinclude/platform_macros.GNU + # disable RPATH + echo 'install_rpath = 0' >> $(@D)/include/makeinclude/platform_macros.GNU + # set the installation prefix + echo 'INSTALL_PREFIX = /usr' >> $(@D)/include/makeinclude/platform_macros.GNU +endef + +# Note: We are excluding examples, apps and tests +# Only compiling ACE libraries (no TAO) +ACE_LIBARIES = ace ace/SSL ACEXML Kokyu netsvcs protocols/ace + +# compile ace,ACEXML, Kokyu, netsvcs & protocols/ace +define ACE_BUILD_CMDS + for dir in $(ACE_LIBARIES) ; do \ + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/$${dir} ACE_ROOT="$(@D)" all || exit 1 ; \ + done +endef + +define ACE_INSTALL_STAGING_CMDS + # create below folder required by ACE makefiles during install + mkdir -p $(STAGING_DIR)/usr/share/ace + for dir in $(ACE_LIBARIES) ; do \ + $(MAKE) -C $(@D)/$${dir} ACE_ROOT="$(@D)" DESTDIR=$(STAGING_DIR) install || exit 1 ; \ + done +endef + +define ACE_INSTALL_TARGET_CMDS + # create below folder required by ACE makefiles during install + mkdir -p $(TARGET_DIR)/usr/share/ace + for dir in $(ACE_LIBARIES) ; do \ + $(MAKE) -C $(@D)/$${dir} ACE_ROOT="$(@D)" DESTDIR=$(TARGET_DIR) install || exit 1 ; \ + done +endef + +$(eval $(generic-package))