Skip to contentSkip to conversation

ubi: Kconfig: Fix MTD_UBI selection dependency

PATCH New Karl Beldan 2 participants 15 messages Jul 12, 2017 – Jul 25, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/5 ubi: Kconfig: Fix MTD_UBI selection dependency

From: Karl Beldan <[email protected]>

Remove the ARCH_SUNXI dependency on selection of RBTREE.

Cc Boris Brezillon <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Jagan Teki <[email protected]>
---
 drivers/mtd/ubi/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/ubi/Kconfig +1 -1
index cb9ba78681..165273e438 100644
@@ -3,7 +3,7 @@ menu "UBI support"
 config MTD_UBI
 	bool "Enable UBI - Unsorted block images"
 	select CRC32
-	select RBTREE if ARCH_SUNXI
+	select RBTREE
 	help
 	  UBI is a software layer above MTD layer which admits of LVM-like
 	  logical volumes on top of MTD devices, hides some complexities of
Signature · 1 line
2.13.0
#1 lore raw

PATCH 2/5 cmd: Kconfig: Fix a dependency of CMD_MTDPARTS

From: Karl Beldan <[email protected]>

Remove the ARCH_SUNXI dependency.

Cc Maxime Ripard <[email protected]>
Cc Jagan Teki <[email protected]>
---
 cmd/Kconfig | 1 -
 1 file changed, 1 deletion(-)
cmd/Kconfig +0 -1
index c80ac364ea..87ee2ea613 100644
@@ -1196,7 +1196,6 @@ config CMD_JFFS2
 	  filesystem information.
 
 config CMD_MTDPARTS
-	depends on ARCH_SUNXI
 	bool "MTD partition support"
 	help
 	  MTD partition support
Signature · 1 line
2.13.0
#2 lore raw

PATCH 2/5 cmd: Kconfig: Fix a dependency of CMD_MTDPARTS

Quoted 7 lines · Karl Beldan

From: Karl Beldan <[email protected]>

Remove the ARCH_SUNXI dependency.

Cc Maxime Ripard <[email protected]>
Cc Jagan Teki <[email protected]>
Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170712/70ed7af3/attachment.sig>
#3 lore raw

PATCH 2/5 cmd: Kconfig: Fix a dependency of CMD_MTDPARTS

In reply to Karl Beldan
Quoted 8 lines · karl beldan

From: Karl Beldan <[email protected]>

Remove the ARCH_SUNXI dependency.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170724/62bc0589/attachment.sig>
#4 lore raw

PATCH 3/5 ubi: Kconfig: Make MTD_UBI select MTD_PARTITIONS

In reply to Karl Beldan

From: Karl Beldan <[email protected]>

This missing dependency has probably remained under the radar because MTD_PARTITIONS is still whitelisted.

---
 drivers/mtd/ubi/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/ubi/Kconfig +1 -0
index 165273e438..caa5197df5 100644
@@ -4,6 +4,7 @@ config MTD_UBI
 	bool "Enable UBI - Unsorted block images"
 	select CRC32
 	select RBTREE
+	select MTD_PARTITIONS
 	help
 	  UBI is a software layer above MTD layer which admits of LVM-like
 	  logical volumes on top of MTD devices, hides some complexities of
Signature · 1 line
2.13.0
#5 lore raw

PATCH 3/5 ubi: Kconfig: Make MTD_UBI select MTD_PARTITIONS

Quoted 6 lines · Karl Beldan

From: Karl Beldan <[email protected]>

This missing dependency has probably remained under the radar because MTD_PARTITIONS is still whitelisted.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170712/d8a8d4b7/attachment.sig>
#6 lore raw

PATCH 3/5 ubi: Kconfig: Make MTD_UBI select MTD_PARTITIONS

In reply to Karl Beldan
Quoted 7 lines · karl beldan

From: Karl Beldan <[email protected]>

This missing dependency has probably remained under the radar because MTD_PARTITIONS is still whitelisted.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170724/4cd72cc5/attachment.sig>
#7 lore raw

PATCH 4/5 cmd: Kconfig: Make CMD_UBI select CMD_MTDPARTS

In reply to Karl Beldan

From: Karl Beldan <[email protected]>

Many configs still define CMD_MTDPARTS in their non-Kconfig but CMD_MTDPARTS has now moved to Kconfig.

---
 cmd/Kconfig | 1 +
 1 file changed, 1 insertion(+)
cmd/Kconfig +1 -0
index 87ee2ea613..92576f5734 100644
@@ -1255,6 +1255,7 @@ config CMD_UBI
 	tristate "Enable UBI - Unsorted block images commands"
 	select CRC32
 	select MTD_UBI
+	select CMD_MTDPARTS
 	default y if NAND_SUNXI
 	help
 	  UBI is a software layer above MTD layer which admits use of LVM-like
Signature · 1 line
2.13.0
#8 lore raw

PATCH 4/5 cmd: Kconfig: Make CMD_UBI select CMD_MTDPARTS

Quoted 6 lines · Karl Beldan

From: Karl Beldan <[email protected]>

Many configs still define CMD_MTDPARTS in their non-Kconfig but CMD_MTDPARTS has now moved to Kconfig.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170712/414483f8/attachment.sig>
#9 lore raw

PATCH 4/5 cmd: Kconfig: Make CMD_UBI select CMD_MTDPARTS

In reply to Karl Beldan
Quoted 7 lines · karl beldan

From: Karl Beldan <[email protected]>

Many configs still define CMD_MTDPARTS in their non-Kconfig but CMD_MTDPARTS has now moved to Kconfig.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170724/a5e5f472/attachment.sig>
#10 lore raw

PATCH 5/5 cmd: Kconfig: Fix CMD_UBIFS dependencies

In reply to Karl Beldan

From: Karl Beldan <[email protected]>

Remove the ARCH_SUNXI and RBTREE dependencies.
CMD_UBIFS already gets RBTREE from CMD_UBI (from MTD_UBI), and should the first become independant from the latter, there would likely be a dependency on MTD_UBI anyway.

Cc Boris Brezillon <[email protected]>
Cc Jagan Teki <[email protected]>
---
 cmd/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
cmd/Kconfig +1 -2
index 92576f5734..8766243f0c 100644
@@ -1269,8 +1269,7 @@ config CMD_UBIFS
 	tristate "Enable UBIFS - Unsorted block images filesystem commands"
 	depends on CMD_UBI
 	select CRC32
-	select RBTREE if ARCH_SUNXI
-	select LZO if ARCH_SUNXI
+	select LZO
 	default y if NAND_SUNXI
 	help
 	  UBIFS is a file system for flash devices which works on top of UBI.
Signature · 1 line
2.13.0
#11 lore raw

PATCH 5/5 cmd: Kconfig: Fix CMD_UBIFS dependencies

Quoted 10 lines · Karl Beldan

From: Karl Beldan <[email protected]>

Remove the ARCH_SUNXI and RBTREE dependencies.
CMD_UBIFS already gets RBTREE from CMD_UBI (from MTD_UBI), and should the first become independant from the latter, there would likely be a dependency on MTD_UBI anyway.

Cc Boris Brezillon <[email protected]>
Cc Jagan Teki <[email protected]>

That said, we should move on to also having a populated fs/ubifs/Kconfig that controls fs/ubifs/ and CMD_UBIFS should depend on that (and we also need the same for ubi, and in turn, correct dependencies between ubi and ubifs. Your patch moves things in the right direction, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170712/847eadeb/attachment.sig>
#12 lore raw

PATCH 5/5 cmd: Kconfig: Fix CMD_UBIFS dependencies

In reply to Karl Beldan
Quoted 11 lines · karl beldan

From: Karl Beldan <[email protected]>

Remove the ARCH_SUNXI and RBTREE dependencies.
CMD_UBIFS already gets RBTREE from CMD_UBI (from MTD_UBI), and should the first become independant from the latter, there would likely be a dependency on MTD_UBI anyway.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170724/81e19479/attachment.sig>
#13 lore raw

PATCH 1/5 ubi: Kconfig: Fix MTD_UBI selection dependency

In reply to Karl Beldan
Quoted 8 lines · Karl Beldan

From: Karl Beldan <[email protected]>

Remove the ARCH_SUNXI dependency on selection of RBTREE.

Cc Boris Brezillon <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Jagan Teki <[email protected]>
Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170712/6d2baf2d/attachment.sig>
#14 lore raw

PATCH 1/5 ubi: Kconfig: Fix MTD_UBI selection dependency

In reply to Karl Beldan
Quoted 9 lines · karl beldan

From: Karl Beldan <[email protected]>

Remove the ARCH_SUNXI dependency on selection of RBTREE.

Cc Boris Brezillon <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Jagan Teki <[email protected]>

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170724/88de17f3/attachment.sig>