From patchwork Sat Sep 29 18:43:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 147850 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp2159618lji; Sat, 29 Sep 2018 11:43:50 -0700 (PDT) X-Google-Smtp-Source: ACcGV62fcmq6oifM1wnOBUiCi3PhFFuPx7CIYdR4BEJBUcYbEMktiLXFMqhpgfkkSfY6lvoWCg+e X-Received: by 2002:a17:902:5a0f:: with SMTP id q15-v6mr4261380pli.253.1538246630252; Sat, 29 Sep 2018 11:43:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538246630; cv=none; d=google.com; s=arc-20160816; b=PO/FArvZxISsVCH93+WeAyYKotQKQRLJGZKTFDGB2Q17BbQj8PeCZVlEAKlIJE/jNR E7Bf8kz7KWpeZf+zILo31cF4lLkkZSroBff+yrBEdFfkP7VWAFX0HbuMavGkbKvBEMq7 vxzmtzeTbTMOT89jHBqOfhwFtqaqp18LjDejkZ0ziLTzQrnzdqiJPbaLltnsEmfCZuGX 7AikfY+reJJ9pXA93F7UGXaqUFxhjmkOCKvAKG2RPXA2hTCcnZHmLdyybGcwTc65u9zb K82Glgon4MunNjIB+hHGQQ0WSQ88G7FXmLrzOBKmJxBkGv2TEGxzxFv8FUALdKlJcZxO UqEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=xY+WiLH8H5owcnrGH/HO5A07p47DdIsC/QA50TRKLOw=; b=BW6QAf4iH4ra4JxDF3l4ZiY8Wc5joiwisfRexeAIm12EhJYOdlbWXd7/ZZJ5qEBJW6 dmtfKALm/uWS2dEuy0aVMpKxIddssZelD2AuvfTAcyUk+FLugfg3Vdro0zwRtGOeev09 Jl9FddbWJT2OLoM/hpnUMrKq302nCcu3xapC+kh+cWRYRXmqGhuM+VOHe28ydORTvE4a MA8BwZhVJhEPB4OKdYIiKpYoMMQ2/11stLNDrJEp0dCDXhv3SxR66PZkmydkpMrRcIlG S5yy6J/JtyMK4cXOvMa48lHfYJhFJd1LjrXg+Z3POckcx0vMdoXIifqKpcayn4WbST9f 6zOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=nI6XPAw2; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id m21-v6si605151pgh.167.2018.09.29.11.43.49; Sat, 29 Sep 2018 11:43:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=nI6XPAw2; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 9EC96799D2; Sat, 29 Sep 2018 18:43:45 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by mail.openembedded.org (Postfix) with ESMTP id B2FB678E65 for ; Sat, 29 Sep 2018 18:43:43 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id d4-v6so6470010pfn.0 for ; Sat, 29 Sep 2018 11:43:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XR1JgwNwF7sGuOCZgSiJPTvfB/yFILFv8li2cGdU8ZI=; b=nI6XPAw2wKooSo9F+PykcGBWThGKBAPY1C1+MLRbNLvXAGjYjuPa3Kv8sW4gBNlKTk nyBC4WBFasHBysRGz3++OMtwL6eaz97bwyWVcCXAqc/AsvF0obmR4Y8pdpn7yWZlFY8f BxMf3XhaB+DfI1vkjYi0xpLm61riZJreqcOWEoMO7SLJe4jaKD5IZg6EG2RBXn4ak3JS 6lwOKw/UTxnv6HtJMsg5oYUb5EMCrN0SkPk22b9njfDFlRSBQZcdyll3jnosOmulQ3dr se9Nwlh7HzVlt0hlvfaNZCb4CFPCAAJk9ZnD86Vb66Eq8XmIeUWl0gPMIYbJUk0Jlg0d 7DbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XR1JgwNwF7sGuOCZgSiJPTvfB/yFILFv8li2cGdU8ZI=; b=tvKPA8YnXIKQTYLpJnEUjlYfO67CQEMqQLlD2Je3ZjSVpFVSGxiaBPicZU/lmI4PJa T0k88KX1Sx52/T8GlZs+XsPxLBCjlU8kfPi4M0NnwepyIanj66fhu3D+MA6cQdM7SbNI fR1r5ZuPQYcSPM7d38hgsVVWNH8CVUACCX5AN1C+3tII9lrmdL64IZumB6da6pmYSj5H 9pbgJwlHMDfJWx8pPaycj0RWVP03dERJQ6KQqh87r0S8VyteA6xm8d+gHQd7y+BYdPkk Ccfz+oLlE237izSnkoebc3DIGdlzyzxz9A/dEaFHPYi8ejd8BHhH1CQHjha1xhJEll2q BWUw== X-Gm-Message-State: ABuFfoijZMpwKE2r6szntVb/zYNTtqHor14SIpWywkNZWzV7tKWE/oY/ JQh27Mumnqw8qltJQf8ebCD6v9tC X-Received: by 2002:a63:5b14:: with SMTP id p20-v6mr3857665pgb.56.1538246624163; Sat, 29 Sep 2018 11:43:44 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::fd07]) by smtp.gmail.com with ESMTPSA id g6-v6sm12276815pgg.7.2018.09.29.11.43.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Sep 2018 11:43:43 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sat, 29 Sep 2018 11:43:34 -0700 Message-Id: <20180929184335.39059-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 1/2] botan: Add recipe X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org botan is a common crypto library used by various infrastructures e.g. qtcreator chromium etc. Its beneficial to build it once for the system and let apps use it if possible Signed-off-by: Khem Raj --- meta-oe/recipes-crypto/botan/botan_2.7.0.bb | 55 +++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 meta-oe/recipes-crypto/botan/botan_2.7.0.bb -- 2.19.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-crypto/botan/botan_2.7.0.bb b/meta-oe/recipes-crypto/botan/botan_2.7.0.bb new file mode 100644 index 0000000000..92853d00e8 --- /dev/null +++ b/meta-oe/recipes-crypto/botan/botan_2.7.0.bb @@ -0,0 +1,55 @@ +# Copyright (C) 2018 Khem Raj +# Released under the MIT license (see COPYING.MIT for the terms) + +DESCRIPTION = "Crypto and TLS for C++11" +HOMEPAGE = "https://botan.randombit.net" +LICENSE = "BSD-2-Clause" +LIC_FILES_CHKSUM = "file://license.txt;md5=bf361fc63df3fa25652ee82c43b7601a" +SECTION = "libs" + + +#v2.7.0 +SRCREV = "5874000d42c338ec95a7ff24cdc0c64e70f967b5" +SRC_URI = "git://github.com/randombit/botan.git" + +S = "${WORKDIR}/git" + +inherit python3native siteinfo lib_package + +CPU ?= "${TARGET_ARCH}" +CPU_x86 = "x86_32" +CPU_armv7a = "armv7" +CPU_armv7ve = "armv7" + +do_configure() { + python3 ${S}/configure.py \ + --prefix="${D}${prefix}" \ + --cpu="${CPU}" \ + --cc-bin="${CXX}" \ + --cxxflags="${CXXFLAGS}" \ + --ldflags="${LDFLAGS}" \ + --with-endian=${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', 'little', 'big', d)} \ + ${@bb.utils.contains("TUNE_FEATURES","neon","","--disable-neon",d)} \ + --with-sysroot-dir=${STAGING_DIR_TARGET} \ + --with-build-dir="${B}" \ + --optimize-for-size \ + --with-stack-protector \ + --enable-shared-library \ + --with-python-versions=3 \ + ${EXTRA_OECONF} +} + +do_compile() { + oe_runmake +} +do_install() { + oe_runmake install + sed -i -e "s|${D}||g" ${D}${libdir}/pkgconfig/botan-2.pc +} + +PACKAGES += "${PN}-python3" + +FILES_${PN}-python3 = "${libdir}/python3" + +RDEPENDS_${PN}-python3 += "python3" +