From ca802cfcc2a9f1d9c8fedcc28edf723b305ed1c5 Mon Sep 17 00:00:00 2001 From: Robert Drab <robert.drab@huawei.com> Date: Mon, 8 Mar 2021 12:30:44 +0100 Subject: [PATCH] meta-ohos-acts: Add mtd, jffs2, block2mtd config fragment ActsJFFS2Test test suite requires /storage directory to be mounted on jffs2. To achieve that jffs2 image is mounted on loopdevice using block2mtd module, therefore mtd, jffs2 and block2mtd modules have to be configured. Related-To: https://git.ostc-eu.org/OSTC/OHOS/components/staging/xts_acts/-/issues/5 Signed-off-by: Robert Drab <robert.drab@huawei.com> --- .../linux/linux-yocto/0001-fragment-jffs2-tests.cfg | 3 +++ meta-ohos-acts/recipes-kernel/linux/linux-yocto_5.%.bbappend | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 meta-ohos-acts/recipes-kernel/linux/linux-yocto/0001-fragment-jffs2-tests.cfg create mode 100644 meta-ohos-acts/recipes-kernel/linux/linux-yocto_5.%.bbappend diff --git a/meta-ohos-acts/recipes-kernel/linux/linux-yocto/0001-fragment-jffs2-tests.cfg b/meta-ohos-acts/recipes-kernel/linux/linux-yocto/0001-fragment-jffs2-tests.cfg new file mode 100644 index 00000000..f877572f --- /dev/null +++ b/meta-ohos-acts/recipes-kernel/linux/linux-yocto/0001-fragment-jffs2-tests.cfg @@ -0,0 +1,3 @@ +CONFIG_MTD=y +CONFIG_MTD_BLOCK2MTD=m +CONFIG_JFFS2_FS=y diff --git a/meta-ohos-acts/recipes-kernel/linux/linux-yocto_5.%.bbappend b/meta-ohos-acts/recipes-kernel/linux/linux-yocto_5.%.bbappend new file mode 100644 index 00000000..0248355d --- /dev/null +++ b/meta-ohos-acts/recipes-kernel/linux/linux-yocto_5.%.bbappend @@ -0,0 +1,2 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" +SRC_URI += "file://0001-fragment-jffs2-tests.cfg" -- GitLab