From 966d2f51b1229f3269febbd4bee0d54f1755be73 Mon Sep 17 00:00:00 2001 From: Li Zhou Date: Thu, 16 Sep 2021 04:17:02 -0400 Subject: [PATCH] rdma-core/libibverbs: add initial versions for debian Both debs for rdma-core and libibverbs are built by this debian folder added. Their versions are aligned with mlnx-ofa_kernel driver and all are from: https://linux.mellanox.com/public/repo/mlnx_ofed/5.3-1.0.0.1/SRPMS The source code package name for rdma-core and libibverbs is rdma-core-52mlnx1.tgz. Verification: As we are only getting the Debian work bootstrapped there is quite a few restrictions as far as what can be tested. - build image ok with the module; - qemu boot up ok with the module. Test on hardware will be done when the integration of the debian platform is done. Story: 2009221 Task: 43337 Signed-off-by: Li Zhou Change-Id: I6593512985be9ff8e5c350a15cfd4017779d4093 --- ...thon3-dev-to-depends-list-for-buildi.patch | 29 +++++++++++++++++++ .../rdma-core/debian/deb_patches/series | 1 + .../mellanox/rdma-core/debian/meta_data.yaml | 11 +++++++ 3 files changed, 41 insertions(+) create mode 100644 userspace/mellanox/rdma-core/debian/deb_patches/0001-rdma-core-add-python3-dev-to-depends-list-for-buildi.patch create mode 100644 userspace/mellanox/rdma-core/debian/deb_patches/series create mode 100644 userspace/mellanox/rdma-core/debian/meta_data.yaml diff --git a/userspace/mellanox/rdma-core/debian/deb_patches/0001-rdma-core-add-python3-dev-to-depends-list-for-buildi.patch b/userspace/mellanox/rdma-core/debian/deb_patches/0001-rdma-core-add-python3-dev-to-depends-list-for-buildi.patch new file mode 100644 index 00000000..c1cdb63b --- /dev/null +++ b/userspace/mellanox/rdma-core/debian/deb_patches/0001-rdma-core-add-python3-dev-to-depends-list-for-buildi.patch @@ -0,0 +1,29 @@ +From c0985ef490736b661df11395c1fc5c00cde88ad5 Mon Sep 17 00:00:00 2001 +From: Li Zhou +Date: Thu, 16 Sep 2021 07:42:24 +0000 +Subject: [PATCH] rdma-core: add python3-dev to depends list for building error + +Add python3-dev to Build-Depends to solve below building error: +CMake Error at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message): + Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) + +Signed-off-by: Li Zhou +--- + debian/control | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/debian/control b/debian/control +index 40c5bcd..2011c5a 100644 +--- a/debian/control ++++ b/debian/control +@@ -7,6 +7,7 @@ Section: net + Priority: optional + Build-Depends: cmake (>= 2.8.11), + cython3 (>= 0.25) | python, ++ python3-dev, + debhelper (>= 9), + debhelper (>= 9.20160709) | dh-systemd, + dh-python, +-- +2.17.1 + diff --git a/userspace/mellanox/rdma-core/debian/deb_patches/series b/userspace/mellanox/rdma-core/debian/deb_patches/series new file mode 100644 index 00000000..e06a9a5b --- /dev/null +++ b/userspace/mellanox/rdma-core/debian/deb_patches/series @@ -0,0 +1 @@ +0001-rdma-core-add-python3-dev-to-depends-list-for-buildi.patch diff --git a/userspace/mellanox/rdma-core/debian/meta_data.yaml b/userspace/mellanox/rdma-core/debian/meta_data.yaml new file mode 100644 index 00000000..1d22b743 --- /dev/null +++ b/userspace/mellanox/rdma-core/debian/meta_data.yaml @@ -0,0 +1,11 @@ +--- +debver: 52mlnx1 +debname: rdma-core +dl_path: + name: rdma-core-52mlnx1.tgz + url: "https://linux.mellanox.com/public/repo/mlnx_ofed/\ + 5.3-1.0.0.1/SRPMS/rdma-core-52mlnx1.tgz" + md5sum: 072058f44d6cbfc0ce2d9eae369b6fe6 +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true