diff --git a/meta-ohos-acts/recipes-ohos-libsec/ohos-libsec/ohos-libsec/0001-Add-makefile-based-on-zmk.patch b/meta-ohos-acts/recipes-ohos-libsec/ohos-libsec/ohos-libsec/0001-Add-makefile-based-on-zmk.patch
new file mode 100644
index 0000000000000000000000000000000000000000..4a647c5636934a40572b66bdde855aba59e01199
--- /dev/null
+++ b/meta-ohos-acts/recipes-ohos-libsec/ohos-libsec/ohos-libsec/0001-Add-makefile-based-on-zmk.patch
@@ -0,0 +1,51 @@
+From 6230892258ca0b686b52256969e81d8c8beec375 Mon Sep 17 00:00:00 2001
+From: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
+Date: Tue, 29 Dec 2020 09:33:52 +0100
+Subject: [PATCH] Add makefile based on zmk
+
+The makefile defines libsec.{so,a} and several public headers.
+
+Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
+---
+ GNUmakefile | 32 ++++++++++++++++++++++++++++++++
+ 1 file changed, 32 insertions(+)
+ create mode 100644 GNUmakefile
+
+diff --git a/GNUmakefile b/GNUmakefile
+new file mode 100644
+index 0000000..742481f
+--- /dev/null
++++ b/GNUmakefile
+@@ -0,0 +1,32 @@
++# SPDX-License-Identifier: Apache-2.0
++#
++# Copyright 2021 Huawei Inc.
++#
++# Licensed under the Apache License, Version 2.0 (the "License");
++# you may not use this file except in compliance with the License.
++# You may obtain a copy of the License at
++#
++#     http://www.apache.org/licenses/LICENSE-2.0
++#
++# Unless required by applicable law or agreed to in writing, software
++# distributed under the License is distributed on an "AS IS" BASIS,
++# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
++# See the License for the specific language governing permissions and
++# limitations under the License.
++
++include z.mk
++
++Project.Name=ohos-libsec
++Project.Version=1
++
++CPPFLAGS += -I$(ZMK.OutOfTreeSourcePath)include
++CPPFLAGS += -iquote $(ZMK.OutOfTreeSourcePath)src
++
++libsec.a.Sources = $(wildcard $(addprefix $(ZMK.OutOfTreeSourcePath)src/,*.c *.h *.inl))
++$(eval $(call ZMK.Expand,Library.A,libsec.a))
++
++libsec.so.Sources = $(libsec.a.Sources)
++$(eval $(call ZMK.Expand,Library.So,libsec.so))
++
++libsec.Headers = $(wildcard $(ZMK.OutOfTreeSourcePath)include/*.h)
++$(eval $(call ZMK.Expand,HeaderGroup,libsec))
diff --git a/meta-ohos-acts/recipes-ohos-libsec/ohos-libsec/ohos-libsec_git.bb b/meta-ohos-acts/recipes-ohos-libsec/ohos-libsec/ohos-libsec_git.bb
new file mode 100644
index 0000000000000000000000000000000000000000..c7d402a1f4526176fca8686cdb876a9dd64f5170
--- /dev/null
+++ b/meta-ohos-acts/recipes-ohos-libsec/ohos-libsec/ohos-libsec_git.bb
@@ -0,0 +1,16 @@
+LICENSE = "MulanPSL-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2ba4788337b3607f139c2267ed50d32b"
+
+SRC_URI = "git://git.ostc-eu.org/OSTC/OHOS/components/staging/third_party_bounds_checking_function.git;protocol=https \
+           file://0001-Add-makefile-based-on-zmk.patch \
+           "
+SRCREV = "82fcb88beec3538795b244c1e6cb2126ffdcd179"
+S = "${WORKDIR}/git"
+PV = "0.0+git${SRCPV}"
+
+# The OHOS fork of libsec is not versioned properly.
+# Move the naked .so files to the primary package.
+SOLIBS = ".so"
+FILES_SOLIBSDEV = ""
+
+inherit zmk