From 056479695cae28f4ea113c660a3804d3bc74be52 Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Thu, 11 Mar 2021 15:28:05 +0000
Subject: [PATCH] linux-yocto-tiny: Provide a 5.10 recipe

Imported from poky[1].

[1] 7e9ea9d807ba7682c9bd81a0a8711a5af08aec21

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 .../linux/linux-yocto-tiny_5.10.bb            | 32 +++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 meta-ohos-core/recipes-kernel/linux/linux-yocto-tiny_5.10.bb

diff --git a/meta-ohos-core/recipes-kernel/linux/linux-yocto-tiny_5.10.bb b/meta-ohos-core/recipes-kernel/linux/linux-yocto-tiny_5.10.bb
new file mode 100644
index 00000000..8bb10374
--- /dev/null
+++ b/meta-ohos-core/recipes-kernel/linux/linux-yocto-tiny_5.10.bb
@@ -0,0 +1,32 @@
+KBRANCH ?= "v5.10/standard/tiny/base"
+KBRANCH_qemuarm  ?= "v5.10/standard/tiny/arm-versatile-926ejs"
+
+LINUX_KERNEL_TYPE = "tiny"
+KCONFIG_MODE = "--allnoconfig"
+
+require recipes-kernel/linux/linux-yocto.inc
+
+LINUX_VERSION ?= "5.10.21"
+LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
+
+DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
+DEPENDS += "openssl-native util-linux-native"
+
+KMETA = "kernel-meta"
+KCONF_BSP_AUDIT_LEVEL = "2"
+
+SRCREV_machine_qemuarm ?= "9d6d37cfe365ebd5b530f9c43c1ace924343bb15"
+SRCREV_machine ?= "8c516ced69f41563404ada0bea315a55bcf1df6f"
+SRCREV_meta ?= "8c8f6a791bed6e8f675236946e805a7fc489e382"
+
+PV = "${LINUX_VERSION}+git${SRCPV}"
+
+SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \
+           git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.10;destsuffix=${KMETA}"
+
+COMPATIBLE_MACHINE = "qemux86|qemux86-64|qemuarm|qemuarmv5"
+
+# Functionality flags
+KERNEL_FEATURES = ""
+
+KERNEL_DEVICETREE_qemuarmv5 = "versatile-pb.dtb"
-- 
GitLab