Skip to contentSkip to conversation

ipsecmgr: Add recipe for ipsec manager

PATCH In review Sam Nelson 2 participants 3 messages Feb 3, 2015 – Feb 4, 2015

lore
Share & tools
lore

Sam Nelson

author
#0 lore raw

PATCH 1/1 ipsecmgr: Add recipe for ipsec manager

- Provides module and library to offload IPSec security policy & associated security association to NETCP for crypto operations

---
 recipes-bsp/ipsecmgr/ipsecmgr_git.bb |   52 ++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
 create mode 100644 recipes-bsp/ipsecmgr/ipsecmgr_git.bb
recipes-bsp/ipsecmgr/ipsecmgr_git.bb new file +52 -0
new file mode 100644
index 0000000..2fb6c1a
@@ -0,0 +1,52 @@
+SUMMARY = "IPSec Manager kernel module and libraries"
+DESCRIPTION = "Provides ability to offload IPSec security policy & associated security association to NETCP for crypto operations"
+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"
+
+MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}"
+PR = "${MACHINE_KERNEL_PR}"
+
+DEPENDS = "libnl libnl-xfrm"
+
+S = "${WORKDIR}/git"
+LIB_BUILD_DIR = "${S}/build"
+MODULE_BUILD_DIR = "${S}/src/module"
+LIB_INC_DIR = "${S}/"
+UTILS_LIB_INC_DIR = "${S}/utils/iface/"
+
+EXTRA_OEMAKE += "KDIR="${STAGING_KERNEL_DIR}""
+CFLAGS += "-I${STAGING_INCDIR}/libnl3"
+
+inherit module
+
+do_compile() {
+# Compile the library
+	cd ${LIB_BUILD_DIR}
+	make clean
+	make all
+
+# Compile kernel module
+	cd ${MODULE_BUILD_DIR}
+	oe_runmake clean
+	oe_runmake
+}
+
+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}/
+# Install kernel module
+	cd ${MODULE_BUILD_DIR}
+	oe_runmake INSTALL_MOD_PATH="${D}" install
+}
Signature · 1 line
1.7.9.5
#1 lore raw

I'm not sure why we do it but for the graphics sdk we create two recipes. One for the userspace libraries and another one for the kernel modules. So I would assume something similar should be done here.

Quoted 89 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Nelson, Sam
Sent: Tuesday, February 03, 2015 3:34 PM
To: [email protected]
Subject: [meta-ti] [PATCH] ipsecmgr: Add recipe for ipsec manager

- Provides module and library to offload IPSec security policy & associated security association to NETCP for crypto operations

---
 recipes-bsp/ipsecmgr/ipsecmgr_git.bb |   52
++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
 create mode 100644 recipes-bsp/ipsecmgr/ipsecmgr_git.bb
recipes- renamed from recipes-bsp/ipsecmgr/ipsecmgr_git.bb +0 -0

bsp/ipsecmgr/ipsecmgr_git.bb
new file mode 100644
index 0000000..2fb6c1a

recipes-bsp/ipsecmgr/ipsecmgr_git.bb new file +2 -0
@@ -0,0 +1,52 @@
+SUMMARY = "IPSec Manager kernel module and libraries"
+DESCRIPTION = "Provides ability to offload IPSec security policy &

associated security association to NETCP for crypto operations"

recipes-bsp/ipsecmgr/ipsecmgr_git.bb new file +2 -0
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM =

"file://ipsecmgr_snoop.h;beginline=1;endline=33;md5=f7eadca4fb5599f508 dc11fa1e752919"

recipes-bsp/ipsecmgr/ipsecmgr_git.bb new file +3 -0
+
+BRANCH="master"
+SRC_URI = "git://arago-

project.org/git/projects/ipsecmgr.git;protocol=git;branch=${BRANCH}"

recipes-bsp/ipsecmgr/ipsecmgr_git.bb new file +36 -0
+#Commit ID corresponding to DEV.IPSECMGR.01.01.00.03 SRCREV =
+"1ea8355ae9142311901c842c97a58d2846b308e6"
+PV     = "01.01.00.03"
+
+MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}"
+PR = "${MACHINE_KERNEL_PR}"
+
+DEPENDS = "libnl libnl-xfrm"
+
+S = "${WORKDIR}/git"
+LIB_BUILD_DIR = "${S}/build"
+MODULE_BUILD_DIR = "${S}/src/module"
+LIB_INC_DIR = "${S}/"
+UTILS_LIB_INC_DIR = "${S}/utils/iface/"
+
+EXTRA_OEMAKE += "KDIR="${STAGING_KERNEL_DIR}""
+CFLAGS += "-I${STAGING_INCDIR}/libnl3"
+
+inherit module
+
+do_compile() {
+# Compile the library
+	cd ${LIB_BUILD_DIR}
+	make clean
+	make all
+
+# Compile kernel module
+	cd ${MODULE_BUILD_DIR}
+	oe_runmake clean
+	oe_runmake
+}
+
+do_install() {
+# Install libraries
+	install -d ${D}${libdir}/
+	install -c -m 666 ${LIB_BUILD_DIR}/libipsecmgr_snoop.a

${D}${libdir}/

recipes-bsp/ipsecmgr/ipsecmgr_git.bb new file +2 -0
+	install -c -m 666 ${LIB_BUILD_DIR}/libipsecmgr_ipc.a ${D}${libdir}/
+	install -c -m 666 ${LIB_BUILD_DIR}/libipsecmgr_syslog.a

${D}${libdir}/

recipes-bsp/ipsecmgr/ipsecmgr_git.bb new file +6 -1
+	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}/ #
+Install kernel module
+	cd ${MODULE_BUILD_DIR}
+	oe_runmake INSTALL_MOD_PATH="${D}" install }
--

1.7.9.5

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#2 lore raw

Thanks for the suggestion. I will split the recipe into two.

Quoted 99 lines

-----Original Message-----
From: Cooper Jr., Franklin
Sent: Tuesday, February 03, 2015 4:46 PM
To: Nelson, Sam; [email protected]
Subject: RE: [meta-ti] [PATCH] ipsecmgr: Add recipe for ipsec manager

I'm not sure why we do it but for the graphics sdk we create two recipes. One for the userspace libraries and another one for the kernel modules. So I would assume something similar should be done here.

Quoted 89 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Nelson, Sam
Sent: Tuesday, February 03, 2015 3:34 PM
To: [email protected]
Subject: [meta-ti] [PATCH] ipsecmgr: Add recipe for ipsec manager

- Provides module and library to offload IPSec security policy & associated security association to NETCP for crypto operations

---
 recipes-bsp/ipsecmgr/ipsecmgr_git.bb |   52
++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
 create mode 100644 recipes-bsp/ipsecmgr/ipsecmgr_git.bb
recipes- renamed from recipes-bsp/ipsecmgr/ipsecmgr_git.bb +0 -0

bsp/ipsecmgr/ipsecmgr_git.bb
new file mode 100644
index 0000000..2fb6c1a

recipes-bsp/ipsecmgr/ipsecmgr_git.bb new file +2 -0
@@ -0,0 +1,52 @@
+SUMMARY = "IPSec Manager kernel module and libraries"
+DESCRIPTION = "Provides ability to offload IPSec security policy &

associated security association to NETCP for crypto operations"

recipes-bsp/ipsecmgr/ipsecmgr_git.bb new file +2 -0
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM =

"file://ipsecmgr_snoop.h;beginline=1;endline=33;md5=f7eadca4fb5599f508 dc11fa1e752919"

recipes-bsp/ipsecmgr/ipsecmgr_git.bb new file +3 -0
+
+BRANCH="master"
+SRC_URI = "git://arago-

project.org/git/projects/ipsecmgr.git;protocol=git;branch=${BRANCH}"

recipes-bsp/ipsecmgr/ipsecmgr_git.bb new file +36 -0
+#Commit ID corresponding to DEV.IPSECMGR.01.01.00.03 SRCREV =
+"1ea8355ae9142311901c842c97a58d2846b308e6"
+PV     = "01.01.00.03"
+
+MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}"
+PR = "${MACHINE_KERNEL_PR}"
+
+DEPENDS = "libnl libnl-xfrm"
+
+S = "${WORKDIR}/git"
+LIB_BUILD_DIR = "${S}/build"
+MODULE_BUILD_DIR = "${S}/src/module"
+LIB_INC_DIR = "${S}/"
+UTILS_LIB_INC_DIR = "${S}/utils/iface/"
+
+EXTRA_OEMAKE += "KDIR="${STAGING_KERNEL_DIR}""
+CFLAGS += "-I${STAGING_INCDIR}/libnl3"
+
+inherit module
+
+do_compile() {
+# Compile the library
+	cd ${LIB_BUILD_DIR}
+	make clean
+	make all
+
+# Compile kernel module
+	cd ${MODULE_BUILD_DIR}
+	oe_runmake clean
+	oe_runmake
+}
+
+do_install() {
+# Install libraries
+	install -d ${D}${libdir}/
+	install -c -m 666 ${LIB_BUILD_DIR}/libipsecmgr_snoop.a

${D}${libdir}/

recipes-bsp/ipsecmgr/ipsecmgr_git.bb new file +2 -0
+	install -c -m 666 ${LIB_BUILD_DIR}/libipsecmgr_ipc.a ${D}${libdir}/
+	install -c -m 666 ${LIB_BUILD_DIR}/libipsecmgr_syslog.a

${D}${libdir}/

recipes-bsp/ipsecmgr/ipsecmgr_git.bb new file +6 -1
+	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}/ #
+Install kernel module
+	cd ${MODULE_BUILD_DIR}
+	oe_runmake INSTALL_MOD_PATH="${D}" install }
--

1.7.9.5

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti