From 398d6303594640fade24b7829623ebe3342ec06b Mon Sep 17 00:00:00 2001 From: Robert Drab <robert.drab@huawei.com> Date: Wed, 10 Nov 2021 08:45:33 +0100 Subject: [PATCH] linux-libc-headers: Install ashmem.h header file from drivers/staging OpenHarmony requires Android Shared Memory kernel support which is currently under drivers/staging/android/ and therefore the header file is not being installed. Signed-off-by: Robert Drab <robert.drab@huawei.com> --- .../linux-libc-headers/linux-libc-headers_%.bbappend | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 recipes-kernel/linux-libc-headers/linux-libc-headers_%.bbappend diff --git a/recipes-kernel/linux-libc-headers/linux-libc-headers_%.bbappend b/recipes-kernel/linux-libc-headers/linux-libc-headers_%.bbappend new file mode 100644 index 00000000..fd3034d8 --- /dev/null +++ b/recipes-kernel/linux-libc-headers/linux-libc-headers_%.bbappend @@ -0,0 +1,9 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# +# SPDX-License-Identifier: Apache-2.0 + +# OpenHarmony relies on Android's ashmem, which is in staging and therefore +# the header is not installed by default +do_install:append:oniro-openharmony-linux() { + install ${S}/drivers/staging/android/uapi/ashmem.h ${D}${includedir}/linux +} -- GitLab