Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D73A0E008FB; Tue, 3 Feb 2015 19:14:04 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.94.94.41 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 9D1FBE00828 for ; Tue, 3 Feb 2015 19:13:58 -0800 (PST) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id t143DvmE032754 for ; Tue, 3 Feb 2015 21:13:57 -0600 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id t143DuwY027104 for ; Tue, 3 Feb 2015 21:13:56 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.224.2; Tue, 3 Feb 2015 21:13:56 -0600 Received: from udb0862859.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id t143Dt3I003115; Tue, 3 Feb 2015 21:13:56 -0600 From: Sam Nelson To: Date: Tue, 3 Feb 2015 22:13:54 -0500 Message-ID: <1423019634-30296-1-git-send-email-sam.nelson@ti.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Subject: [PATCH v2] ipsecmgr: Add recipes for ipsec manager module and libraries X-BeenThere: meta-ti@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-ti layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2015 03:14:04 -0000 Content-Type: text/plain - Provides module and libraries to offload IPSec security policy & associated security association to NETCP for crypto operations Signed-off-by: Sam Nelson --- recipes-bsp/ipsecmgr/ipsecmgr-mod_git.bb | 26 ++++++++++++++++++++++++++ recipes-bsp/ipsecmgr/ipsecmgr.inc | 10 ++++++++++ recipes-bsp/ipsecmgr/ipsecmgr_git.bb | 30 ++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 recipes-bsp/ipsecmgr/ipsecmgr-mod_git.bb create mode 100644 recipes-bsp/ipsecmgr/ipsecmgr.inc create mode 100644 recipes-bsp/ipsecmgr/ipsecmgr_git.bb diff --git a/recipes-bsp/ipsecmgr/ipsecmgr-mod_git.bb b/recipes-bsp/ipsecmgr/ipsecmgr-mod_git.bb new file mode 100644 index 0000000..bbaa271 --- /dev/null +++ b/recipes-bsp/ipsecmgr/ipsecmgr-mod_git.bb @@ -0,0 +1,26 @@ +SUMMARY = "IPSec Manager kernel module" +DESCRIPTION = "Provides Module to offload IPSec security policy & associated security association to NETCP for crypto operations" + +include ipsecmgr.inc + +MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}" +PR = "${MACHINE_KERNEL_PR}" + +MODULE_BUILD_DIR = "${S}/src/module" + +EXTRA_OEMAKE += "KDIR="${STAGING_KERNEL_DIR}"" + +inherit module + +do_compile() { +# Compile kernel module + cd ${MODULE_BUILD_DIR} + oe_runmake clean + oe_runmake +} + +do_install() { +# Install kernel module + cd ${MODULE_BUILD_DIR} + oe_runmake INSTALL_MOD_PATH="${D}" install +} diff --git a/recipes-bsp/ipsecmgr/ipsecmgr.inc b/recipes-bsp/ipsecmgr/ipsecmgr.inc new file mode 100644 index 0000000..cbc63c0 --- /dev/null +++ b/recipes-bsp/ipsecmgr/ipsecmgr.inc @@ -0,0 +1,10 @@ +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://ipsecmgr_snoop.h;beginline=1;endline=33;md5=f7eadca4fb5599f508dc11fa1e752919" + +BRANCH="master" +SRC_URI = "git://arago-project.org/git/projects/ipsecmgr.git;protocol=git;branch=${BRANCH}" +#Commit ID corresponding to DEV.IPSECMGR.01.01.00.03 +SRCREV = "1ea8355ae9142311901c842c97a58d2846b308e6" +PV = "01.01.00.03" + +S = "${WORKDIR}/git" diff --git a/recipes-bsp/ipsecmgr/ipsecmgr_git.bb b/recipes-bsp/ipsecmgr/ipsecmgr_git.bb new file mode 100644 index 0000000..a4739ce --- /dev/null +++ b/recipes-bsp/ipsecmgr/ipsecmgr_git.bb @@ -0,0 +1,30 @@ +SUMMARY = "IPSec Manager libraries" +DESCRIPTION = "Provides library to offload IPSec security policy & associated security association to NETCP for crypto operations" + +include ipsecmgr.inc + +DEPENDS = "libnl-xfrm" + +LIB_BUILD_DIR = "${S}/build" +LIB_INC_DIR = "${S}/" +UTILS_LIB_INC_DIR = "${S}/utils/iface/" + +CFLAGS += "-I${STAGING_INCDIR}/libnl3" + +do_compile() { +# Compile the library + cd ${LIB_BUILD_DIR} + make clean + make all +} + +do_install() { +# Install libraries + install -d ${D}${libdir}/ + install -c -m 666 ${LIB_BUILD_DIR}/libipsecmgr_snoop.a ${D}${libdir}/ + install -c -m 666 ${LIB_BUILD_DIR}/libipsecmgr_ipc.a ${D}${libdir}/ + install -c -m 666 ${LIB_BUILD_DIR}/libipsecmgr_syslog.a ${D}${libdir}/ + install -d ${D}${includedir}/ + install -c -m 666 ${LIB_INC_DIR}/*.h ${D}${includedir}/ + install -c -m 666 ${UTILS_LIB_INC_DIR}/*.h ${D}${includedir}/ +} -- 1.7.9.5