From fd78c712f311017f994eb111b8e5b13aa02b6a30 Mon Sep 17 00:00:00 2001
From: "robert.drab" <robert.drab@huawei.com>
Date: Thu, 14 Oct 2021 11:50:28 +0200
Subject: [PATCH] meta-ohos-foundation: remove obsolete layer

meta-ohos-foundation is containing recipes for some OpenHarmony components. Due
to the fact that OpenHarmony relies on GN tool which requires complete source
tree for carrying out the build, it was decided to drop recipe-per-component
approach and try a single gn.bbclass based recipe for all interconnected
OpenHarmony components approach instead. That decision renders this layer
obsolete.

Relates: https://git.ostc-eu.org/OSTC/planning/maintenance/-/issues/16

Signed-off-by: robert.drab <robert.drab@huawei.com>
---
 meta-ohos-foundation/README.md                |  38 ------
 meta-ohos-foundation/conf/layer.conf          |  17 ---
 .../hiviewdfx-hilog/hiviewdfx-hilog_git.bb    |  32 -----
 ...rily-adding-sysparam-HAL-definitions.patch | 117 ------------------
 .../syspara-lite-framework_git.bb             |  56 ---------
 .../hichainsdk-innerkits_git.bb               |  20 ---
 .../hiviewdfx-innerkits-hilog_git.bb          |  20 ---
 .../iam-kits/iam-kits_git.bb                  |  20 ---
 .../samgr-kits/samgr-kits_git.bb              |  21 ----
 .../softbus-kits/softbus-kits_git.bb          |  21 ----
 .../syspara-lite-hals-headers_git.bb          |  18 ---
 .../syspara-lite-headers_git.bb               |  18 ---
 .../recipes-libs/cjson/cjson_1.7.14.bb        |  19 ---
 .../recipes-libs/libsec/libsec_git.bb         |  30 -----
 .../recipes-safwk/safwk/safwk_git.bb          |  35 ------
 .../recipes-samgr/samgr/samgr_git.bb          |  52 --------
 .../hichainsdk/hichainsdk_git.bb              |  23 ----
 .../recipes-security/iam-lite/iam-lite_git.bb |  35 ------
 .../recipes-softbus/softbus/softbus_git.bb    |  70 -----------
 .../utils-native-lite_git.bb                  |  18 ---
 20 files changed, 680 deletions(-)
 delete mode 100644 meta-ohos-foundation/README.md
 delete mode 100644 meta-ohos-foundation/conf/layer.conf
 delete mode 100644 meta-ohos-foundation/recipes-frameworks/hiviewdfx-hilog/hiviewdfx-hilog_git.bb
 delete mode 100644 meta-ohos-foundation/recipes-frameworks/syspara-lite-framework/syspara-lite-framework/0001-Temporarily-adding-sysparam-HAL-definitions.patch
 delete mode 100644 meta-ohos-foundation/recipes-frameworks/syspara-lite-framework/syspara-lite-framework_git.bb
 delete mode 100644 meta-ohos-foundation/recipes-interfaces/hichainsdk-innerkits/hichainsdk-innerkits_git.bb
 delete mode 100644 meta-ohos-foundation/recipes-interfaces/hiviewdfx-innerkits-hilog/hiviewdfx-innerkits-hilog_git.bb
 delete mode 100644 meta-ohos-foundation/recipes-interfaces/iam-kits/iam-kits_git.bb
 delete mode 100644 meta-ohos-foundation/recipes-interfaces/samgr-kits/samgr-kits_git.bb
 delete mode 100644 meta-ohos-foundation/recipes-interfaces/softbus-kits/softbus-kits_git.bb
 delete mode 100644 meta-ohos-foundation/recipes-interfaces/syspara-lite-hals-headers/syspara-lite-hals-headers_git.bb
 delete mode 100644 meta-ohos-foundation/recipes-interfaces/syspara-lite-headers/syspara-lite-headers_git.bb
 delete mode 100644 meta-ohos-foundation/recipes-libs/cjson/cjson_1.7.14.bb
 delete mode 100644 meta-ohos-foundation/recipes-libs/libsec/libsec_git.bb
 delete mode 100644 meta-ohos-foundation/recipes-safwk/safwk/safwk_git.bb
 delete mode 100644 meta-ohos-foundation/recipes-samgr/samgr/samgr_git.bb
 delete mode 100644 meta-ohos-foundation/recipes-security/hichainsdk/hichainsdk_git.bb
 delete mode 100644 meta-ohos-foundation/recipes-security/iam-lite/iam-lite_git.bb
 delete mode 100644 meta-ohos-foundation/recipes-softbus/softbus/softbus_git.bb
 delete mode 100644 meta-ohos-foundation/recipes-utils/utils-native-lite/utils-native-lite_git.bb

diff --git a/meta-ohos-foundation/README.md b/meta-ohos-foundation/README.md
deleted file mode 100644
index 671859f7..00000000
--- a/meta-ohos-foundation/README.md
+++ /dev/null
@@ -1,38 +0,0 @@
-<!--
-SPDX-FileCopyrightText: Huawei Inc.
-
-SPDX-License-Identifier: Apache-2.0
--->
-
-This README file contains information on the contents of the meta-ohos-foundation layer.
-
-Please see the corresponding sections below for details.
-
-Table of Contents
-=================
-
-  I. Adding the meta-foundation layer to your build
- II. Misc
-
-
-I. Adding the meta-foundation layer to your build
-=================================================
-
-Run 'bitbake-layers add-layer meta-ohos-foundation'
-
-II. Misc
-========
-
-This layer provides recipes for the core elements (foundation) of
-the OHOS.
-
-## Layer layout:
- - recipes
-   - samgr - Distritbuted Services Manager 
-   - safwk - Main foundation application (initialization routines)
-   - frameworks - various OHOS frameworks libraries
-   - interfaces - OHOS interfaces headers
-   - utils      - various OHOS utilities
-   - recipes-libs
-     - cjson - Ultralightweight JSON parser in ANSI C
-     - libsec - library implementing Annex K of C11, Bounds-checking interfaces
diff --git a/meta-ohos-foundation/conf/layer.conf b/meta-ohos-foundation/conf/layer.conf
deleted file mode 100644
index 3f06db0f..00000000
--- a/meta-ohos-foundation/conf/layer.conf
+++ /dev/null
@@ -1,17 +0,0 @@
-# SPDX-FileCopyrightText: Huawei Inc.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-# We have a conf and classes directory, add to BBPATH
-BBPATH .= ":${LAYERDIR}"
-
-# We have recipes-* directories, add to BBFILES
-BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
-            ${LAYERDIR}/recipes-*/*/*.bbappend"
-
-BBFILE_COLLECTIONS += "ohos-foundation"
-BBFILE_PATTERN_ohos-foundation = "^${LAYERDIR}/"
-BBFILE_PRIORITY_ohos-foundation = "6"
-
-LAYERDEPENDS_ohos-foundation = "core"
-LAYERSERIES_COMPAT_ohos-foundation = "dunfell gatesgarth"
diff --git a/meta-ohos-foundation/recipes-frameworks/hiviewdfx-hilog/hiviewdfx-hilog_git.bb b/meta-ohos-foundation/recipes-frameworks/hiviewdfx-hilog/hiviewdfx-hilog_git.bb
deleted file mode 100644
index 0abba389..00000000
--- a/meta-ohos-foundation/recipes-frameworks/hiviewdfx-hilog/hiviewdfx-hilog_git.bb
+++ /dev/null
@@ -1,32 +0,0 @@
-# SPDX-FileCopyrightText: Huawei Inc.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-SUMMARY = "Hiviewdfx Hilog"
-DESCRIPTION = "Hiviewdfx Hilog logging module"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=98c2e72b17fae6c40fb14fd5e43b29ec"
-
-DEPENDS += "hiviewdfx-innerkits-hilog libsec"
-
-SRC_URI = "git://gitee.com/openharmony/hiviewdfx_frameworks_hilog_lite.git;protocol=https"
-
-PV = "1.0+git${SRCPV}"
-PVSHORT = '${@d.getVar("PV", False).split("+")[0]}'
-PVMAJOR = '${@d.getVar("PV", False).split(".")[0]}'
-
-SRCREV = "e8b70de7579e2634b16fac90adbc5d10755dae2e"
-
-S = "${WORKDIR}/git"
-
-CFLAGS += "-I${S}/include -fPIC -shared"
-LDFLAGS += "-Wl,-soname,lib${PN}.so.${PVMAJOR} -lsec"
-
-do_compile () {
-	${CC} ${CFLAGS} ${LDFLAGS} featured/*.c -o ${B}/lib${PN}.so.${PVSHORT}
-}
-
-do_install () {
-	install -d ${D}${libdir}
-	oe_soinstall ${B}/lib${PN}.so.${PVSHORT} ${D}${libdir}
-}
diff --git a/meta-ohos-foundation/recipes-frameworks/syspara-lite-framework/syspara-lite-framework/0001-Temporarily-adding-sysparam-HAL-definitions.patch b/meta-ohos-foundation/recipes-frameworks/syspara-lite-framework/syspara-lite-framework/0001-Temporarily-adding-sysparam-HAL-definitions.patch
deleted file mode 100644
index 19aa93a9..00000000
--- a/meta-ohos-foundation/recipes-frameworks/syspara-lite-framework/syspara-lite-framework/0001-Temporarily-adding-sysparam-HAL-definitions.patch
+++ /dev/null
@@ -1,117 +0,0 @@
-From ebb54134f8e20f09c6d9307d594210d1f683e531 Mon Sep 17 00:00:00 2001
-From: Robert Drab <robert.drab@huawei.com>
-Date: Fri, 11 Dec 2020 13:25:57 +0000
-Subject: [PATCH] Temporarily adding sysparam HAL definitions
-
-sysparam HAL functions are defined per target; it is yet to be
-decided how to organize platform specific code should be kept
-
-Upstream-Status: Inappropriate [other]
-Signed-off-by: Robert Drab <robert.drab@huawei.com>
----
- parameter/src/parameter_common.c | 94 +++++++++++++++++++++++++++++++-
- 1 file changed, 93 insertions(+), 1 deletion(-)
-
-diff --git a/parameter/src/parameter_common.c b/parameter/src/parameter_common.c
-index a61a623..061ca62 100755
---- a/parameter/src/parameter_common.c
-+++ b/parameter/src/parameter_common.c
-@@ -27,6 +27,98 @@ static char g_roBuildVerShow[] = {"OpenHarmony 1.0"};
- static char g_roSdkApiLevel[] = {"3"};
- static char g_roFirstApiLevel[] = {"1"};
- 
-+static const char OHOS_PRODUCT_TYPE[] = {"****"};
-+static const char OHOS_MANUFACTURE[] = {"****"};
-+static const char OHOS_BRAND[] = {"****"};
-+static const char OHOS_MARKET_NAME[] = {"****"};
-+static const char OHOS_PRODUCT_SERIES[] = {"****"};
-+static const char OHOS_PRODUCT_MODEL[] = {"****"};
-+static const char OHOS_SOFTWARE_MODEL[] = {"****"};
-+static const char OHOS_HARDWARE_MODEL[] = {"****"};
-+static const char OHOS_HARDWARE_PROFILE[] = {"aout:true,display:true"};
-+static const char OHOS_BOOTLOADER_VERSION[] = {"bootloader"};
-+static const char OHOS_SECURITY_PATCH_TAG[] = {"2020-09-01"};
-+static const char OHOS_ABI_LIST[] = {"****"};
-+static const char OHOS_SERIAL[] = {"1234567890"};  // provided by OEM.
-+
-+static char* HalGetSysParam(const char* paramType, size_t paramSize)
-+{
-+    char* param = (char*)malloc(paramSize);
-+    if (param == NULL) {
-+        return NULL;
-+    }
-+    if (strcpy_s(param, paramSize, paramType) != EOK) {
-+        free(param);
-+        return NULL;
-+    }
-+    return param;
-+}
-+
-+char* HalGetProductType(void)
-+{
-+    return HalGetSysParam(OHOS_PRODUCT_TYPE, sizeof(OHOS_PRODUCT_TYPE));
-+}
-+
-+char* HalGetManufacture(void)
-+{
-+    return HalGetSysParam(OHOS_MANUFACTURE, sizeof(OHOS_MANUFACTURE));
-+}
-+
-+char* HalGetBrand(void)
-+{
-+    return HalGetSysParam(OHOS_BRAND, sizeof(OHOS_BRAND));
-+}
-+
-+char* HalGetMarketName(void)
-+{
-+    return HalGetSysParam(OHOS_MARKET_NAME, sizeof(OHOS_MARKET_NAME));
-+}
-+
-+char* HalGetProductSeries(void)
-+{
-+    return HalGetSysParam(OHOS_PRODUCT_SERIES, sizeof(OHOS_PRODUCT_SERIES));
-+}
-+
-+char* HalGetProductModel(void)
-+{
-+    return HalGetSysParam(OHOS_PRODUCT_MODEL, sizeof(OHOS_PRODUCT_MODEL));
-+}
-+
-+char* HalGetSoftwareModel(void)
-+{
-+    return HalGetSysParam(OHOS_SOFTWARE_MODEL, sizeof(OHOS_SOFTWARE_MODEL));
-+}
-+
-+char* HalGetHardwareModel(void)
-+{
-+    return HalGetSysParam(OHOS_HARDWARE_MODEL, sizeof(OHOS_HARDWARE_MODEL));
-+}
-+
-+char* HalGetHardwareProfile(void)
-+{
-+    return HalGetSysParam(OHOS_HARDWARE_PROFILE, sizeof(OHOS_HARDWARE_PROFILE));
-+}
-+
-+char* HalGetSerial(void)
-+{
-+    return HalGetSysParam(OHOS_SERIAL, sizeof(OHOS_SERIAL));
-+}
-+
-+char* HalGetBootloaderVersion(void)
-+{
-+    return HalGetSysParam(OHOS_BOOTLOADER_VERSION, sizeof(OHOS_BOOTLOADER_VERSION));
-+}
-+
-+char* HalGetSecurityPatchTag(void)
-+{
-+    return HalGetSysParam(OHOS_SECURITY_PATCH_TAG, sizeof(OHOS_SECURITY_PATCH_TAG));
-+}
-+
-+char* HalGetAbiList(void)
-+{
-+    return HalGetSysParam(OHOS_ABI_LIST, sizeof(OHOS_ABI_LIST));
-+}
-+
- static boolean IsValidValue(const char* value, unsigned int len)
- {
-     if ((value == NULL) || !strlen(value) || (strlen(value) + 1 > len)) {
diff --git a/meta-ohos-foundation/recipes-frameworks/syspara-lite-framework/syspara-lite-framework_git.bb b/meta-ohos-foundation/recipes-frameworks/syspara-lite-framework/syspara-lite-framework_git.bb
deleted file mode 100644
index ac518477..00000000
--- a/meta-ohos-foundation/recipes-frameworks/syspara-lite-framework/syspara-lite-framework_git.bb
+++ /dev/null
@@ -1,56 +0,0 @@
-# SPDX-FileCopyrightText: Huawei Inc.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-SUMMARY = "OHOS Sysparam library"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=98c2e72b17fae6c40fb14fd5e43b29ec"
-DEPENDS += "\
-            syspara-lite-headers \
-            syspara-lite-hals-headers \
-            utils-native-lite \
-            libsec \
-           "
-PV = "1.0+git${SRCPV}"
-PVSHORT = '${@d.getVar("PV", False).split("+")[0]}'
-PVMAJOR = '${@d.getVar("PV", False).split(".")[0]}'
-
-SRCREV = "6e8a53e2682b69776ff29fa13aefcd8eb4d7e757"
-SRC_URI = "git://gitee.com/openharmony/startup_frameworks_syspara_lite.git;protocol=https \
-           file://0001-Temporarily-adding-sysparam-HAL-definitions.patch \
-          "
-
-S = "${WORKDIR}/git"
-
-# Currently building only libsysparam library; in the same repository
-# there is also libtoken_shared source code - when needed this recipe
-# will have to be modified
-
-CFLAGS += "-I${S}/parameter/src -fPIC -shared"
-
-# FIXME: following flags should be taken from some sensible place
-#        if necessary or removed from the source code if not used;
-#        spaces have to be escaped with a backslash
-CFLAGS += "\
-           -DINCREMENTAL_VERSION=\"OpenHarmony\ 1.0\" \
-           -DBUILD_TYPE=\"\" \
-           -DBUILD_USER=\"\" \
-           -DBUILD_TIME=\"${@int(time.time())}\" \
-           -DBUILD_HOST=\"${BUILD_SYS}\" \
-           -DBUILD_ROOTHASH=\"\" \
-          "
-
-do_compile () {
-    # currently building without -lhal_sysparam as it is yet to be decided
-    # how "System parameters" should be provided; for the time being sysparam HAL
-    # definitions stubs added to parameter_common.c via patch as those are
-    # hardcoded for each target platform in OHOS source code
-    ${CC} ${CFLAGS} ${LDFLAGS} -Wl,-soname,libsysparam.so.${PVMAJOR} \
-    ${S}/parameter/src/param_impl_posix/*.c \
-    ${S}/parameter/src/*.c -o ${B}/libsysparam.so.${PVSHORT} -lsec
-}
-
-do_install () {
-    install -d ${D}${libdir}
-    oe_soinstall ${B}/libsysparam.so.${PVSHORT} ${D}${libdir}
-}
diff --git a/meta-ohos-foundation/recipes-interfaces/hichainsdk-innerkits/hichainsdk-innerkits_git.bb b/meta-ohos-foundation/recipes-interfaces/hichainsdk-innerkits/hichainsdk-innerkits_git.bb
deleted file mode 100644
index 6fdcaaa5..00000000
--- a/meta-ohos-foundation/recipes-interfaces/hichainsdk-innerkits/hichainsdk-innerkits_git.bb
+++ /dev/null
@@ -1,20 +0,0 @@
-# SPDX-FileCopyrightText: Huawei Inc.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-SUMMARY = "HiChain innerkits"
-DESCRIPTION = "Innerkits for trusted interconnection between devices"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=98c2e72b17fae6c40fb14fd5e43b29ec"
-
-SRC_URI = "git://gitee.com/openharmony/security_interfaces_innerkits_hichainsdk_lite.git;protocol=https"
-
-PV = "1.0+git${SRCPV}"
-SRCREV = "d0416fb8da9a853de592d3e6be91c63c8319d02e"
-
-S = "${WORKDIR}/git"
-
-do_install () {
-	install -d ${D}${includedir}
-	install -m 0755 ${S}/*.h ${D}${includedir}/
-}
diff --git a/meta-ohos-foundation/recipes-interfaces/hiviewdfx-innerkits-hilog/hiviewdfx-innerkits-hilog_git.bb b/meta-ohos-foundation/recipes-interfaces/hiviewdfx-innerkits-hilog/hiviewdfx-innerkits-hilog_git.bb
deleted file mode 100644
index a4404b6b..00000000
--- a/meta-ohos-foundation/recipes-interfaces/hiviewdfx-innerkits-hilog/hiviewdfx-innerkits-hilog_git.bb
+++ /dev/null
@@ -1,20 +0,0 @@
-# SPDX-FileCopyrightText: Huawei Inc.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-SUMMARY = "OHOS Hiviewdfx innerkits"
-DESCRIPTION = "OHOS interface innerkits for Hiviewdfx"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=98c2e72b17fae6c40fb14fd5e43b29ec"
-
-SRC_URI = "git://gitee.com/openharmony/hiviewdfx_interfaces_innerkits_hilog.git;protocol=https"
-
-PV = "1.0+git${SRCPV}"
-SRCREV = "6a2507b98ba606af7383869be084a8ecbec6b095"
-
-S = "${WORKDIR}/git"
-
-do_install () {
-        install -d ${D}${includedir}
-        install -m 0755 ${S}/*.h ${D}${includedir}/
-}
diff --git a/meta-ohos-foundation/recipes-interfaces/iam-kits/iam-kits_git.bb b/meta-ohos-foundation/recipes-interfaces/iam-kits/iam-kits_git.bb
deleted file mode 100644
index 9fa700fc..00000000
--- a/meta-ohos-foundation/recipes-interfaces/iam-kits/iam-kits_git.bb
+++ /dev/null
@@ -1,20 +0,0 @@
-# SPDX-FileCopyrightText: Huawei Inc.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-SUMMARY = "OHOS interface kits for IAM lite"
-DESCRIPTION = "Interface kits for the application permission management"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=98c2e72b17fae6c40fb14fd5e43b29ec"
-
-SRC_URI = "git://gitee.com/openharmony/security_interfaces_kits_iam_lite.git;protocol=https"
-
-PV = "1.0+git${SRCPV}"
-SRCREV = "ae411bce509c90bb09b49f2f3371f116313880d6"
-
-S = "${WORKDIR}/git"
-
-do_install () {
-	install -d ${D}${includedir}
-	install -m 0755 ${S}/*.h ${D}${includedir}/
-}
diff --git a/meta-ohos-foundation/recipes-interfaces/samgr-kits/samgr-kits_git.bb b/meta-ohos-foundation/recipes-interfaces/samgr-kits/samgr-kits_git.bb
deleted file mode 100644
index e2556a10..00000000
--- a/meta-ohos-foundation/recipes-interfaces/samgr-kits/samgr-kits_git.bb
+++ /dev/null
@@ -1,21 +0,0 @@
-# SPDX-FileCopyrightText: Huawei Inc.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-SUMMARY = "OHOS interface kits for SAMGR"
-DESCRIPTION = "Interface kits for OHOS distributed service manager "
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=98c2e72b17fae6c40fb14fd5e43b29ec"
-
-SRC_URI = "git://gitee.com/openharmony/distributedschedule_interfaces_kits_samgr_lite.git;protocol=https"
-
-PV = "1.0+git${SRCPV}"
-SRCREV = "4acd6990320126796a28b2c3d7ad4c94932eb4b7"
-
-S = "${WORKDIR}/git"
-
-do_install () {
-	install -d ${D}${includedir}
-	install -m 0755 ${S}/samgr/*.h ${D}${includedir}/
-	install -m 0755 ${S}/registry/*.h ${D}${includedir}/
-}
diff --git a/meta-ohos-foundation/recipes-interfaces/softbus-kits/softbus-kits_git.bb b/meta-ohos-foundation/recipes-interfaces/softbus-kits/softbus-kits_git.bb
deleted file mode 100644
index 0fef0fc5..00000000
--- a/meta-ohos-foundation/recipes-interfaces/softbus-kits/softbus-kits_git.bb
+++ /dev/null
@@ -1,21 +0,0 @@
-# SPDX-FileCopyrightText: Huawei Inc.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-SUMMARY = "OHOS interface kits for Softbus"
-DESCRIPTION = "Interface kits for OHOS communication utility - Softbus"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=98c2e72b17fae6c40fb14fd5e43b29ec"
-
-SRC_URI = "git://gitee.com/openharmony/communication_interfaces_kits_softbuskit_lite.git;protocol=https"
-
-PV = "1.0+git${SRCPV}"
-SRCREV = "40aec6fdcdeed401adc97451434b26919e80c69a"
-
-S = "${WORKDIR}/git"
-
-do_install () {
-	install -d ${D}${includedir}
-	install -m 0755 ${S}/discovery/*.h ${D}${includedir}/
-	install -m 0755 ${S}/transport/*.h ${D}${includedir}/
-}
diff --git a/meta-ohos-foundation/recipes-interfaces/syspara-lite-hals-headers/syspara-lite-hals-headers_git.bb b/meta-ohos-foundation/recipes-interfaces/syspara-lite-hals-headers/syspara-lite-hals-headers_git.bb
deleted file mode 100644
index e9704331..00000000
--- a/meta-ohos-foundation/recipes-interfaces/syspara-lite-hals-headers/syspara-lite-hals-headers_git.bb
+++ /dev/null
@@ -1,18 +0,0 @@
-# SPDX-FileCopyrightText: Huawei Inc.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-SUMMARY = "OHOS Sysparam HAL headers"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=98c2e72b17fae6c40fb14fd5e43b29ec"
-PV = "1.0+git${SRCPV}"
-
-SRCREV = "6b186327def1b2876334f2eebb78e0e5bce747bb"
-SRC_URI = "git://gitee.com/openharmony/startup_hals_syspara_lite.git;protocol=https"
-
-S = "${WORKDIR}/git"
-
-do_install () {
-    install -d ${D}${includedir}
-    install -m 0755 ${S}/*.h ${D}${includedir}/
-}
diff --git a/meta-ohos-foundation/recipes-interfaces/syspara-lite-headers/syspara-lite-headers_git.bb b/meta-ohos-foundation/recipes-interfaces/syspara-lite-headers/syspara-lite-headers_git.bb
deleted file mode 100644
index 0c0bfa7c..00000000
--- a/meta-ohos-foundation/recipes-interfaces/syspara-lite-headers/syspara-lite-headers_git.bb
+++ /dev/null
@@ -1,18 +0,0 @@
-# SPDX-FileCopyrightText: Huawei Inc.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-SUMMARY = "OHOS Sysparam headers"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=98c2e72b17fae6c40fb14fd5e43b29ec"
-PV = "1.0+git${SRCPV}"
-
-SRCREV = "69dcf31029e2d9d79adf73259394235db78e35b1"
-SRC_URI = "git://gitee.com/openharmony/startup_interfaces_kits_syspara_lite.git;protocol=https"
-
-S = "${WORKDIR}/git"
-
-do_install () {
-    install -d ${D}${includedir}
-    install -m 0755 ${S}/*.h ${D}${includedir}/
-}
diff --git a/meta-ohos-foundation/recipes-libs/cjson/cjson_1.7.14.bb b/meta-ohos-foundation/recipes-libs/cjson/cjson_1.7.14.bb
deleted file mode 100644
index bb1a6702..00000000
--- a/meta-ohos-foundation/recipes-libs/cjson/cjson_1.7.14.bb
+++ /dev/null
@@ -1,19 +0,0 @@
-# SPDX-FileCopyrightText: Huawei Inc.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-SUMMARY = "Ultralightweight JSON parser library in ANSI C"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=218947f77e8cb8e2fa02918dc41c50d0 \
-                    file://tests/unity/docs/license.txt;md5=b7dd0dffc9dda6a87fa96e6ba7f9ce6c"
-
-SRC_URI = "https://github.com/DaveGamble/cJSON/archive/v${PV}.tar.gz"
-SRC_URI[md5sum] = "ff0557033e8374033107d40ca79bd52d"
-SRC_URI[sha1sum] = "b401e57edbc9377f0b4139206297984e073c4e47"
-SRC_URI[sha256sum] = "fb50a663eefdc76bafa80c82bc045af13b1363e8f45cec8b442007aef6a41343"
-SRC_URI[sha384sum] = "52d3d168bf6ee941e8c7fc0d8f53f81d43fb66b91e2518b7e9f0daf71ae2edf6ca721087d6ec7c781a9732e5db09f45d"
-SRC_URI[sha512sum] = "8de1dedc123ed025a9cbe6764e5963eb0550f726d06a8f6bedfe05b84e852cd9c1587cd381669663073967f42be894a535ba239013f304ce544c3b15a6477c01"
-
-S = "${WORKDIR}/cJSON-${PV}"
-
-inherit cmake
diff --git a/meta-ohos-foundation/recipes-libs/libsec/libsec_git.bb b/meta-ohos-foundation/recipes-libs/libsec/libsec_git.bb
deleted file mode 100644
index 3d181b6c..00000000
--- a/meta-ohos-foundation/recipes-libs/libsec/libsec_git.bb
+++ /dev/null
@@ -1,30 +0,0 @@
-# SPDX-FileCopyrightText: Huawei Inc.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-SUMMARY = "OHOS third-party libraries"
-LICENSE = "MulanPSL-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=bf1e53b0cdc806a88b7a66486dc5e61f"
-
-PV = "1.0+git${SRCPV}"
-PVSHORT = '${@d.getVar("PV", False).split("+")[0]}'
-PVMAJOR = '${@d.getVar("PV", False).split(".")[0]}'
-
-SRCREV = "8355937ae5ae9bf01af491b39ff42f68246959c4"
-SRC_URI = "git://gitee.com/openharmony/third_party_bounds_checking_function.git;protocol=https"
-
-S = "${WORKDIR}/git"
-
-CFLAGS += "-I${S}/include -fPIC -shared"
-LDFLAGS += "-Wl,-soname,${PN}.so.${PVMAJOR}"
-
-do_compile () {
-    ${CC} ${CFLAGS} ${LDFLAGS} ${S}/src/*.c -o ${B}/${PN}.so.${PVSHORT}
-}
-
-do_install () {
-    install -d ${D}${includedir}
-    install -d ${D}${libdir}
-    install -m 0755 ${S}/include/*.h ${D}${includedir}/
-    oe_soinstall ${B}/${PN}.so.${PVSHORT} ${D}${libdir}
-}
diff --git a/meta-ohos-foundation/recipes-safwk/safwk/safwk_git.bb b/meta-ohos-foundation/recipes-safwk/safwk/safwk_git.bb
deleted file mode 100644
index 472fc8ca..00000000
--- a/meta-ohos-foundation/recipes-safwk/safwk/safwk_git.bb
+++ /dev/null
@@ -1,35 +0,0 @@
-# SPDX-FileCopyrightText: Huawei Inc.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-SUMMARY = "OHOS foundation"
-DESCRIPTION = "OHOS foundation main application"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=98c2e72b17fae6c40fb14fd5e43b29ec"
-
-DEPENDS += "utils-native-lite libsec hiviewdfx-innerkits-hilog hiviewdfx-hilog samgr samgr-kits softbus"
-
-SRC_URI = "git://gitee.com/openharmony/distributedschedule_services_safwk_lite.git;protocol=https"
-
-PV = "1.0+git${SRCPV}"
-SRCREV = "26e0346b72cc7f8ac98395f9f047f684b7137471"
-
-S = "${WORKDIR}/git"
-
-# Debug flag enabled by default for now
-CFLAGS += "-DDEBUG_SERVICES_SAFWK_LITE"
-LDFLAGS += "-lrt"
-
-do_compile () {
-	${CC} ${CFLAGS} ${LDFLAGS} src/*.c -o ${B}/foundation -lsamgr -lsec -lhiviewdfx-hilog -lsoftbus
-}
-
-do_install () {
-	install -d ${D}${base_bindir}
-	install -m 0755 ${B}/foundation ${D}${base_bindir}
-}
-
-FILES_${PN} += "${base_bindir}/foundation"
-
-PROVIDES = "foundation"
-RPROVIDES_${PN} = "foundation"
diff --git a/meta-ohos-foundation/recipes-samgr/samgr/samgr_git.bb b/meta-ohos-foundation/recipes-samgr/samgr/samgr_git.bb
deleted file mode 100644
index a993136b..00000000
--- a/meta-ohos-foundation/recipes-samgr/samgr/samgr_git.bb
+++ /dev/null
@@ -1,52 +0,0 @@
-# SPDX-FileCopyrightText: Huawei Inc.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-SUMMARY = "OHOS SAMGR"
-DESCRIPTION = "OHOS distributed services manager"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=98c2e72b17fae6c40fb14fd5e43b29ec"
-
-DEPENDS += "utils-native-lite libsec samgr-kits hiviewdfx-innerkits-hilog"
-
-SRC_URI = "git://gitee.com/openharmony/distributedschedule_services_samgr_lite.git;protocol=https"
-
-PV = "1.0+git${SRCPV}"
-PVSHORT = '${@d.getVar("PV", False).split("+")[0]}'
-PVMAJOR = '${@d.getVar("PV", False).split(".")[0]}'
-
-SRCREV = "626f7131c567cef9f96eb7cee24ee2eaa8cac4f5"
-
-S = "${WORKDIR}/git"
-
-CFLAGS_SAMGR = "${CFLAGS} -I${S}/samgr/adapter -I${S}/samgr -I${S}/samgr/source -I${S}/samgr/registry -fPIC -shared"
-LDFLAGS_SAMGR = "${LDFLAGS} -lsec -pthread -L${B} -Wl,-soname,lib${PN}.so.${PVMAJOR}"
-
-def get_target_adapter(d):
-    targetOs = d.getVar('TARGET_OS', True)
-    # generalize targetOs variable for all Linux build variants
-    if "linux" in targetOs:
-        targetOs = "linux"
-
-    if targetOs == "linux" or targetOs == "liteos_a":
-        targetAdapter = "posix"
-    elif targetOs == "liteos_m":
-        targetAdapter = "cmsis"
-    else:
-        raise bb.parse.SkipPackage("OS '%s' is not supported by ohos-foundation" % targetOs)
-    return targetAdapter
-
-TARGET_ADAPTER = "${@get_target_adapter(d)}"
-
-do_compile () {
-	${CC} ${CFLAGS_SAMGR} ${LDFLAGS_SAMGR}			\
-		${S}/samgr/source/*.c				\
-		${S}/samgr/registry/*.c				\
-		${S}/samgr/adapter/${TARGET_ADAPTER}/*.c	\
-		-o ${B}/lib${PN}.so.${PVSHORT}
-}
-
-do_install () {
-	install -d ${D}${libdir}
-	oe_soinstall ${B}/lib${PN}.so.${PVSHORT} ${D}${libdir}
-}
diff --git a/meta-ohos-foundation/recipes-security/hichainsdk/hichainsdk_git.bb b/meta-ohos-foundation/recipes-security/hichainsdk/hichainsdk_git.bb
deleted file mode 100644
index fc36f406..00000000
--- a/meta-ohos-foundation/recipes-security/hichainsdk/hichainsdk_git.bb
+++ /dev/null
@@ -1,23 +0,0 @@
-# SPDX-FileCopyrightText: Huawei Inc.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-SUMMARY = "HiChain"
-DESCRIPTION = "Trusted interconnection between devices"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=98c2e72b17fae6c40fb14fd5e43b29ec"
-
-SRC_URI = "git://gitee.com/openharmony/security_services_hichainsdk_lite.git;protocol=https"
-
-PV = "1.0+git${SRCPV}"
-SRCREV = "66085041cffc18adc3979f6e602e8062e8c4ab0e"
-
-S = "${WORKDIR}/git"
-
-do_compile () {
-}
-
-do_install () {
-	install -d ${D}${includedir}
-	install -m 0755 ${S}/source/huks_adapter/*.h ${D}${includedir}/
-}
diff --git a/meta-ohos-foundation/recipes-security/iam-lite/iam-lite_git.bb b/meta-ohos-foundation/recipes-security/iam-lite/iam-lite_git.bb
deleted file mode 100644
index fc319220..00000000
--- a/meta-ohos-foundation/recipes-security/iam-lite/iam-lite_git.bb
+++ /dev/null
@@ -1,35 +0,0 @@
-# SPDX-FileCopyrightText: Huawei Inc.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-SUMMARY = "IAM lite"
-DESCRIPTION = "Application permission management"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=98c2e72b17fae6c40fb14fd5e43b29ec"
-
-DEPENDS += "utils-native-lite samgr-kits hiviewdfx-innerkits-hilog"
-
-SRC_URI = "git://gitee.com/openharmony/security_services_iam_lite.git;protocol=https"
-
-PV = "1.0+git${SRCPV}"
-PVSHORT = '${@d.getVar("PV", False).split("+")[0]}'
-PVMAJOR = '${@d.getVar("PV", False).split(".")[0]}'
-
-SRCREV = "ff4d69b9d1b6a31ebf0c14b2ce6cb8f6122e3340"
-
-S = "${WORKDIR}/git"
-
-CFLAGS_IAM = "${CFLAGS} -I${S}/pms_base/include -fPIC -shared"
-LDFLAGS_IAM = "${LDFLAGS} -L${B} -Wl,-soname,lib${PN}.so.${PVMAJOR}"
-
-do_compile () {
-	${CC} ${CFLAGS_IAM} ${LDFLAGS_IAM} ${S}/pms_base/src/permission_service.c \
-		-o ${B}/lib${PN}.so.${PVSHORT}
-}
-
-do_install () {
-	install -d ${D}${includedir}
-	install -m 0755 ${S}/pms_base/include/*.h ${D}${includedir}/
-	install -d ${D}${libdir}
-	oe_soinstall ${B}/lib${PN}.so.${PVSHORT} ${D}${libdir}
-}
diff --git a/meta-ohos-foundation/recipes-softbus/softbus/softbus_git.bb b/meta-ohos-foundation/recipes-softbus/softbus/softbus_git.bb
deleted file mode 100644
index 0dd439db..00000000
--- a/meta-ohos-foundation/recipes-softbus/softbus/softbus_git.bb
+++ /dev/null
@@ -1,70 +0,0 @@
-# SPDX-FileCopyrightText: Huawei Inc.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-SUMMARY = "OHOS Softbus"
-DESCRIPTION = "OHOS communication utility for distributed services"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=98c2e72b17fae6c40fb14fd5e43b29ec"
-
-DEPENDS += "cjson libsec samgr softbus-kits iam-kits hichainsdk hichainsdk-innerkits mbedtls"
-
-SRC_URI = "git://gitee.com/openharmony/communication_services_softbus_lite.git;protocol=https"
-
-PV = "1.0+git${SRCPV}"
-PVSHORT = '${@d.getVar("PV", False).split("+")[0]}'
-PVMAJOR = '${@d.getVar("PV", False).split(".")[0]}'
-
-SRCREV = "d110d2cd61806efc89d7eaa651d2c36fce66df97"
-
-S = "${WORKDIR}/git"
-
-SB_SRCS = "${S}/discovery/coap/source/coap_discover.c		\
-		${S}/discovery/coap/source/json_payload.c	\
-		${S}/discovery/coap/source/nstackx_common.c	\
-		${S}/discovery/coap/source/nstackx_device.c	\
-		${S}/discovery/coap/source/coap_socket.c	\
-		${S}/discovery/coap/source/coap_adapter.c	\
-		${S}/os_adapter/source/L1/os_adapter.c		\
-		${S}/discovery/discovery_service/source/discovery_service.c	\
-		${S}/discovery/discovery_service/source/coap_service.c		\
-		${S}/discovery/discovery_service/source/common_info_manager.c	\
-		${S}/trans_service/source/libdistbus/tcp_session.c		\
-		${S}/trans_service/source/libdistbus/tcp_session_manager.c	\
-		${S}/trans_service/source/libdistbus/auth_conn_manager.c	\
-		${S}/trans_service/source/libdistbus/trans_lock.c		\
-		${S}/trans_service/source/utils/tcp_socket.c	\
-		${S}/trans_service/source/utils/message.c	\
-		${S}/trans_service/source/utils/aes_gcm.c	\
-		${S}/authmanager/source/auth_conn.c		\
-		${S}/authmanager/source/auth_interface.c	\
-		${S}/authmanager/source/msg_get_deviceid.c	\
-		${S}/authmanager/source/wifi_auth_manager.c	\
-		${S}/authmanager/source/bus_manager.c"
-
-SB_INC = "-I${S}/discovery/coap/include				\
-		-I${S}/os_adapter/include			\
-		-I${S}/discovery/discovery_service/include	\
-		-I${S}/authmanager/include			\
-		-I${S}/trans_service/include/libdistbus		\
-		-I${S}/trans_service/include/utils		\
-		-I${S}/trans_service/source/libdistbus		\
-		-I${S}/trans_service/source/utils"
-SB_INC += "-I${STAGING_INCDIR}/cjson"
-
-CFLAGS_SB = "${CFLAGS} ${SB_INC} -fPIC -shared"
-# Flags copied from the original OHOS build configuration. To be replaced.
-CFLAGS_SB += "-D_GNU_SOURCE -D_SCANTY_MEMORY_ -D__LINUX__"
-LDFLAGS_SB = "${LDFLAGS} -lsec -lcjson -lrt -L${B} -Wl,-soname,lib${PN}.so.${PVMAJOR}"
-
-do_compile () {
-	${CC} ${CFLAGS_SB} ${LDFLAGS_SB}	\
-		${SB_SRCS}			\		
-		-o ${B}/lib${PN}.so.${PVSHORT}
-
-}
-
-do_install () {
-	install -d ${D}${libdir}
-	oe_soinstall ${B}/lib${PN}.so.${PVSHORT} ${D}${libdir}
-}
diff --git a/meta-ohos-foundation/recipes-utils/utils-native-lite/utils-native-lite_git.bb b/meta-ohos-foundation/recipes-utils/utils-native-lite/utils-native-lite_git.bb
deleted file mode 100644
index d4955633..00000000
--- a/meta-ohos-foundation/recipes-utils/utils-native-lite/utils-native-lite_git.bb
+++ /dev/null
@@ -1,18 +0,0 @@
-# SPDX-FileCopyrightText: Huawei Inc.
-#
-# SPDX-License-Identifier: Apache-2.0
-
-SUMMARY = "OHOS common headers"
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=98c2e72b17fae6c40fb14fd5e43b29ec"
-PV = "1.0+git${SRCPV}"
-
-SRCREV = "f599e73a996a10d77223a31db63c459a4c04f7f3"
-SRC_URI = "git://gitee.com/openharmony/utils_native_lite.git;protocol=https"
-
-S = "${WORKDIR}/git"
-
-do_install () {
-    install -d ${D}${includedir}
-    install -m 0755 ${S}/include/*.h ${D}${includedir}/
-}
-- 
GitLab