summaryrefslogtreecommitdiff
path: root/meta-aspeed/recipes-kernel/linux/linux-aspeed
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2023-02-04 02:37:20 +0300
committerPatrick Williams <patrick@stwcx.xyz>2023-02-10 06:26:13 +0300
commit139d2d667532c6cdd66baf5611d08e3e266207af (patch)
treea2bdd679d3ff0de1513b6b2d04d3b156729347eb /meta-aspeed/recipes-kernel/linux/linux-aspeed
parent9b52fdc76a2aaaafbd033c212428d592331c75f6 (diff)
downloadopenbmc-139d2d667532c6cdd66baf5611d08e3e266207af.tar.xz
meta-aspeed: linux: enable ubi support based on file system type
Both the `obmc-static-norootfs` and `obmc-ubi-fs` DISTRO_FEATURES enable an image that utilizes ubifs. Key off this in meta-aspeed to apply the correct kernel config snippet. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I15b0e24e9d0e454651a50b2d997b6aee01432ab9
Diffstat (limited to 'meta-aspeed/recipes-kernel/linux/linux-aspeed')
-rw-r--r--meta-aspeed/recipes-kernel/linux/linux-aspeed/ubi/ubi.cfg4
-rw-r--r--meta-aspeed/recipes-kernel/linux/linux-aspeed/ubi/ubi.scc3
2 files changed, 7 insertions, 0 deletions
diff --git a/meta-aspeed/recipes-kernel/linux/linux-aspeed/ubi/ubi.cfg b/meta-aspeed/recipes-kernel/linux/linux-aspeed/ubi/ubi.cfg
new file mode 100644
index 0000000000..8538111ead
--- /dev/null
+++ b/meta-aspeed/recipes-kernel/linux/linux-aspeed/ubi/ubi.cfg
@@ -0,0 +1,4 @@
+CONFIG_MTD_UBI=y
+CONFIG_MTD_UBI_FASTMAP=y
+CONFIG_MTD_UBI_BLOCK=y
+CONFIG_UBIFS_FS=y
diff --git a/meta-aspeed/recipes-kernel/linux/linux-aspeed/ubi/ubi.scc b/meta-aspeed/recipes-kernel/linux/linux-aspeed/ubi/ubi.scc
new file mode 100644
index 0000000000..f725f636d1
--- /dev/null
+++ b/meta-aspeed/recipes-kernel/linux/linux-aspeed/ubi/ubi.scc
@@ -0,0 +1,3 @@
+define KFEATURE_DESCRIPTION "Enable UBIFS"
+
+kconf hardware ubi.cfg