[meta-intel] [PATCH v2 3/3] lms: add recipe for lms 1921.0.0.0

Alexander Usyskin alexander.usyskin at intel.com
Tue Jun 18 07:16:00 PDT 2019


This is a new release of Local Manageability Service.
This open-source release deprecates unsupported lms7 and lms8.

This recipe depends on ACE and MeTee library recipes.

Signed-off-by: Alexander Usyskin <alexander.usyskin at intel.com>
---
 conf/layer.conf                                    |  5 +++
 .../amt/files/lms_drop_rpath_1921.0.0.0.diff       | 31 ++++++++++++++++++
 .../recipes-bsp/amt/lms_1921.0.0.0.bb              | 38 ++++++++++++++++++++++
 3 files changed, 74 insertions(+)
 create mode 100644 dynamic-layers/openembedded-layer/recipes-bsp/amt/files/lms_drop_rpath_1921.0.0.0.diff
 create mode 100644 dynamic-layers/openembedded-layer/recipes-bsp/amt/lms_1921.0.0.0.bb

diff --git a/conf/layer.conf b/conf/layer.conf
index 4cea550..0db0895 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -25,4 +25,9 @@ BBFILES_DYNAMIC += " \
     clang-layer:${LAYERDIR}/dynamic-layers/clang-layer/*/*/*.bbappend \
 "
 
+BBFILES_DYNAMIC += " \
+    openembedded-layer:${LAYERDIR}/dynamic-layers/openembedded-layer/*/*/*.bb \
+    openembedded-layer:${LAYERDIR}/dynamic-layers/openembedded-layer/*/*/*.bbappend \
+"
+
 require ${LAYERDIR}/conf/include/maintainers.inc
diff --git a/dynamic-layers/openembedded-layer/recipes-bsp/amt/files/lms_drop_rpath_1921.0.0.0.diff b/dynamic-layers/openembedded-layer/recipes-bsp/amt/files/lms_drop_rpath_1921.0.0.0.diff
new file mode 100644
index 0000000..b68924a
--- /dev/null
+++ b/dynamic-layers/openembedded-layer/recipes-bsp/amt/files/lms_drop_rpath_1921.0.0.0.diff
@@ -0,0 +1,31 @@
+From b92a5bda8015454a570990a3d9c4fba87010f1af Mon Sep 17 00:00:00 2001
+From: Alexander Usyskin <alexander.usyskin at intel.com>
+Date: Mon, 17 Jun 2019 13:27:33 +0300
+Subject: [PATCH] lms: drop rpath definitions
+
+Yocto fail to compile with this definitions.
+
+Upstream-Status: Inappropriate [configuration]
+Signed-off-by: Alexander Usyskin <alexander.usyskin at intel.com>
+---
+ CMakeLists.txt | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 04257fb..85d0445 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -107,10 +107,6 @@ install (DIRECTORY Docs/Licenses
+   FILES_MATCHING PATTERN "LICENSE.*"
+ )
+ 
+-list (APPEND CMAKE_INSTALL_RPATH "${PROJECT_BINARY_DIR}/UNS/GMS_COMMON")
+-list (APPEND CMAKE_INSTALL_RPATH "${PROJECT_BINARY_DIR}/WsmanClient")
+-list (APPEND CMAKE_INSTALL_RPATH "${PROJECT_BINARY_DIR}/UNS/StatusEventHandler")
+-
+ if (BUILD_TESTS)
+   include (gtest.cmake)
+ endif (BUILD_TESTS)
+-- 
+2.7.4
+
diff --git a/dynamic-layers/openembedded-layer/recipes-bsp/amt/lms_1921.0.0.0.bb b/dynamic-layers/openembedded-layer/recipes-bsp/amt/lms_1921.0.0.0.bb
new file mode 100644
index 0000000..9fe4337
--- /dev/null
+++ b/dynamic-layers/openembedded-layer/recipes-bsp/amt/lms_1921.0.0.0.bb
@@ -0,0 +1,38 @@
+SUMMARY = "Intel(R) Local Managability Service"
+DESCRIPTION = "Intel Local Manageability Service allows applications \
+to access the Intel Active Management Technology (AMT) firmware via \
+the Intel Management Engine Interface (MEI)."
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://COPYING;md5=2ee41112a44fe7014dce33e26468ba93"
+
+COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
+
+inherit cmake systemd
+
+DEPENDS = "metee ace xerces-c libnl libxml2 glib-2.0 glib-2.0-native connman"
+
+EXTRA_OECMAKE += "-DPYTHON_EXECUTABLE=${HOSTTOOLS_DIR}/python3"
+
+REQUIRED_DISTRO_FEATURES= "systemd"
+
+FILES_${PN} += "${datadir}/dbus-1/system-services/*.service"
+
+FILES_${PN} += "${libdir}/libLms*.so"
+FILES_SOLIBSDEV = ""
+INSANE_SKIP_${PN} += "dev-so"
+
+S = "${WORKDIR}/git"
+
+SYSTEMD_SERVICE_${PN} = "lms.service"
+
+SRC_URI = "git://github.com/intel/lms.git;protocol=git;tag=v${PV}"
+
+SRC_URI_append = " file://lms_drop_rpath_${PV}.diff"
+
+do_install_append() {
+    install -d ${D}${systemd_system_unitdir}
+    install -m 0644 ${B}/UNS/lms.service ${D}${systemd_system_unitdir}
+}
+
+RDEPENDS_${PN} += "ace"
-- 
2.7.4



More information about the meta-intel mailing list