From 91e0ae8bb8b1bb255dc8ca687478fe1aca4868b6 Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Tue, 13 Jul 2021 12:28:07 +0100
Subject: [PATCH] linux-yocto: Enable CONFIG_SQUASHFS

The root filesystem defaults to squashfs.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 meta-ohos-core/recipes-kernel/linux/linux-yocto-all.inc | 1 +
 meta-ohos-core/recipes-kernel/linux/linux/squashfs.cfg  | 6 ++++++
 2 files changed, 7 insertions(+)
 create mode 100644 meta-ohos-core/recipes-kernel/linux/linux/squashfs.cfg

diff --git a/meta-ohos-core/recipes-kernel/linux/linux-yocto-all.inc b/meta-ohos-core/recipes-kernel/linux/linux-yocto-all.inc
index 39b73fc1..6c59f53c 100644
--- a/meta-ohos-core/recipes-kernel/linux/linux-yocto-all.inc
+++ b/meta-ohos-core/recipes-kernel/linux/linux-yocto-all.inc
@@ -7,6 +7,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/linux:"
 SRC_URI += "file://fix-gcc-plugins-with-gcc-11.patch"
 
 SRC_URI += "file://misc.cfg"
+SRC_URI += "file://squashfs.cfg"
 SRC_URI += "file://hardening_allocator.cfg"
 SRC_URI += "file://hardening_allocator_perf.cfg"
 SRC_URI += "file://hardening_disable_misc.cfg"
diff --git a/meta-ohos-core/recipes-kernel/linux/linux/squashfs.cfg b/meta-ohos-core/recipes-kernel/linux/linux/squashfs.cfg
new file mode 100644
index 00000000..8f067e92
--- /dev/null
+++ b/meta-ohos-core/recipes-kernel/linux/linux/squashfs.cfg
@@ -0,0 +1,6 @@
+# SPDX-FileCopyrightText: Huawei Inc.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+# Root filesystem is by default squashfs
+CONFIG_SQUASHFS=y
-- 
GitLab