Skip to content

Commit c758cb5

Browse files
committed
meta-qcom: security: Add minkipc library for security feature support
Add minkipc library for security feature support. Signed-off-by: Jiaxing Li <[email protected]>
1 parent 2165578 commit c758cb5

File tree

5 files changed

+131
-0
lines changed

5 files changed

+131
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
From 8d0b8e73b005ef05a092f4fb1c51fee98baa5ac1 Mon Sep 17 00:00:00 2001
2+
From: Jiaxing Li <[email protected]>
3+
Date: Thu, 18 Sep 2025 11:39:53 +0800
4+
Subject: [PATCH] minkipc:compilation: Fix compilation issue
5+
6+
- To fix compilation error: #warning "<cstdbool> is deprecated in C++17, remove the #include" [-Werror=cpp].
7+
- Disable downloading minkidlc in CMakeLists.txt.
8+
9+
Signed-off-by: Jiaxing Li <[email protected]>
10+
Upstream-Status: Inappropriate [meta-qcom specific]
11+
---
12+
CMakeLists.txt | 11 ++++++-----
13+
1 file changed, 6 insertions(+), 5 deletions(-)
14+
15+
diff --git a/CMakeLists.txt b/CMakeLists.txt
16+
index 346e1bc..5e8f6c9 100644
17+
--- a/CMakeLists.txt
18+
+++ b/CMakeLists.txt
19+
@@ -17,12 +17,12 @@ option(BUILD_GPFS_LISTENER "Build GP File system Listener" TRUE)
20+
21+
include(GNUInstallDirs)
22+
23+
-set(MINKIDLC_BIN_DIR ${CMAKE_CURRENT_SOURCE_DIR}/minkidlc)
24+
+#set(MINKIDLC_BIN_DIR ${CMAKE_CURRENT_SOURCE_DIR}/minkidlc)
25+
26+
-file(DOWNLOAD
27+
- https://github.com/quic/mink-idl-compiler/releases/download/v0.2.0/idlc
28+
- ${MINKIDLC_BIN_DIR}/minkidlc
29+
-)
30+
+#file(DOWNLOAD
31+
+# https://github.com/quic/mink-idl-compiler/releases/download/v0.2.0/idlc
32+
+# ${MINKIDLC_BIN_DIR}/minkidlc
33+
+#)
34+
35+
file(CHMOD ${MINKIDLC_BIN_DIR}/minkidlc PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ)
36+
37+
@@ -30,6 +30,7 @@ add_compile_options(
38+
-Wall -Wextra -Werror -Wshadow -Wcast-align
39+
-Wmissing-declarations -Wformat-security -Wmissing-noreturn
40+
-Wdeprecated -fPIC
41+
+ -Wno-error=cpp
42+
)
43+
44+
add_subdirectory(libminkadaptor)
45+
--
46+
2.34.1
47+
3.31 MB
Binary file not shown.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright (c) 2017, 2024 Qualcomm Technologies, Inc.
2+
# All Rights Reserved.
3+
# Confidential and Proprietary - Qualcomm Technologies, Inc.
4+
#
5+
6+
[Unit]
7+
Description=QTEE Supplicant Service
8+
SourcePath=/usr/bin/qtee_supplicant
9+
Wants=property-vault.service
10+
11+
[Service]
12+
Restart=always
13+
RemainAfterExit=yes
14+
ExecStart=/usr/bin/qtee_supplicant
15+
ExecStartPre= +/usr/bin/find -L /dev/dma_heap/qcom,qseecom-ta -maxdepth 1 -exec chown root:system {} +
16+
ExecStartPre= +/usr/bin/find -L /dev/dma_heap/qcom,qseecom-ta -maxdepth 1 -exec chmod 0660 {} +
17+
ExecStartPre= +/usr/bin/find -L /dev/dma_heap/qcom,qseecom -maxdepth 1 -exec chown root:system {} +
18+
ExecStartPre= +/usr/bin/find -L /dev/dma_heap/qcom,qseecom -maxdepth 1 -exec chmod 0660 {} +
19+
20+
[Install]
21+
WantedBy=multi-user.target
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
HOMEPAGE = "https://github.com/qualcomm/minkipc.git"
2+
SUMMARY = "Qualcomm MinkIPC applications and library"
3+
SECTION = "libs"
4+
PACKAGE_ARCH = "${MACHINE_ARCH}"
5+
6+
LICENSE = "BSD-3-Clause"
7+
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2b1366ebba1ebd9ae25ad19626bbca93"
8+
9+
inherit cmake pkgconfig update-rc.d systemd
10+
11+
SRC_URI += "\
12+
git://github.com/qualcomm/minkipc.git;branch=main;protocol=https \
13+
file://0001-minkipc-compilation-Fix-compilation-issue.patch \
14+
file://minkidlc \
15+
file://qteesupplicant.service \
16+
"
17+
SRCREV = "${AUTOREV}"
18+
#PACKAGE_ARCH ?= "${MACHINE_ARCH}"
19+
PV = "git${SRCREV}"
20+
PN = "minkipc-git"
21+
22+
DEPENDS = " qcbor-git qcomtee-git"
23+
24+
FILESPATH += "${WORKSPACE}:"
25+
EXTRA_OECMAKE = " -DBUILD_UNITTEST=ON -DMINKIDLC_BIN_DIR=${UNPACKDIR}"
26+
27+
INITSCRIPT_NAME = "qteesupplicant"
28+
INITSCRIPT_PARAMS = "start 28 S ."
29+
30+
do_install:append() {
31+
install -d ${D}${bindir}
32+
install -m 0755 ${WORKDIR}/build/qtee_supplicant/qtee_supplicant ${D}${bindir}/
33+
install -m 0755 ${WORKDIR}/build/libminkteec/tests/gp_test_client/gp_test_client ${D}${bindir}/
34+
install -m 0755 ${WORKDIR}/build/libminkadaptor/tests/smcinvoke_client/smcinvoke_client ${D}${bindir}/
35+
36+
install -d ${D}${libdir}
37+
install -m 755 ${WORKDIR}/build/libminkadaptor/*.so* ${D}${libdir}/
38+
install -m 755 ${WORKDIR}/build/libminkteec/*.so* ${D}${libdir}/
39+
install -m 755 ${WORKDIR}/build/listeners/libtaautoload/*.so* ${D}${libdir}/
40+
install -m 755 ${WORKDIR}/build/listeners/libtimeservice/*.so* ${D}${libdir}/
41+
install -m 755 ${WORKDIR}/build/listeners/libfsservice/fs/*.so* ${D}${libdir}/
42+
install -m 755 ${WORKDIR}/build/listeners/libfsservice/gpfs/*.so* ${D}${libdir}/
43+
44+
install -d ${D}${includedir}
45+
install ${S}/libminkadaptor/include/*.h ${D}${includedir}
46+
install ${S}/libminkteec/include/*.h ${D}${includedir}/qcbor
47+
48+
install -m 0644 ${UNPACKDIR}/qteesupplicant.service -D ${D}${systemd_unitdir}/system/qteesupplicant.service
49+
}
50+
51+
FILES:${PN} += " ${libdir}/* \
52+
${includedir}/* \
53+
${bindir}/qtee_supplicant \
54+
${bindir}/gp_test_client \
55+
${bindir}/qtee_supplicant \
56+
${systemd_unitdir}/system/* \
57+
"
58+
59+
SYSTEMD_SERVICE:${PN} = "qteesupplicant.service"
60+
61+
INSANE_SKIP:${PN} = "dev-elf"
62+
INSANE_SKIP:${PN}-dev = "dev-elf"

recipes-security/packagegroups/packagegroup-qcom-secure.bb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ PACKAGES = "${PN}"
99
PROVIDES = "${PACKAGES}"
1010

1111
RDEPENDS:${PN} += " \
12+
minkipc-git \
1213
qcomtee-git \
1314
qcbor-git \
1415
"

0 commit comments

Comments
 (0)