From 1f807913a5d8cd87fe97b71f4621c50d28217e29 Mon Sep 17 00:00:00 2001 From: Robert Drab <robert.drab@huawei.com> Date: Wed, 10 Nov 2021 08:41:51 +0100 Subject: [PATCH] linux-yocto: Enable ashmem OpenHarmony requires Android Shared Memory kernel support. Signed-off-by: Robert Drab <robert.drab@huawei.com> --- recipes-kernel/linux-yocto/linux-yocto/ashmem.cfg | 7 +++++++ recipes-kernel/linux-yocto/linux-yocto_%.bbappend | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 recipes-kernel/linux-yocto/linux-yocto/ashmem.cfg create mode 100644 recipes-kernel/linux-yocto/linux-yocto_%.bbappend diff --git a/recipes-kernel/linux-yocto/linux-yocto/ashmem.cfg b/recipes-kernel/linux-yocto/linux-yocto/ashmem.cfg new file mode 100644 index 00000000..e4590e28 --- /dev/null +++ b/recipes-kernel/linux-yocto/linux-yocto/ashmem.cfg @@ -0,0 +1,7 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# +# SPDX-License-Identifier: Apache-2.0 + +CONFIG_STAGING=y +CONFIG_ANDROID=y +CONFIG_ASHMEM=y diff --git a/recipes-kernel/linux-yocto/linux-yocto_%.bbappend b/recipes-kernel/linux-yocto/linux-yocto_%.bbappend new file mode 100644 index 00000000..248930c0 --- /dev/null +++ b/recipes-kernel/linux-yocto/linux-yocto_%.bbappend @@ -0,0 +1,7 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# +# SPDX-License-Identifier: Apache-2.0 + +FILESEXTRAPATHS:prepend := "${THISDIR}/linux-yocto:" + +SRC_URI:append:oniro-openharmony-linux = " file://ashmem.cfg" -- GitLab