2018-07-09 16:20 GMT+09:00 Maxime Ripard <maxime.rip...@bootlin.com>: > On Mon, Jul 09, 2018 at 03:12:37PM +0900, Masahiro Yamada wrote: >> It is not preferred to put SUNXI-specific code in the common place. > > I think Tom has been saying the exact opposite a number of times, > since there's some circular dependencies issues that arise when using > imply.
Platforms select/imply necessary drivers or features. This is what we usually do. ARCH_SUNXI already uses select / imply in arch/arm/Kconfig. (Also ARCH_SUNXI does so in arch/arm/mach-sunxi/Kconfig in Linux Kernel) On the other hand, no drivers or features select / imply ARCH_SUNXI. To sum up, select or imply should be used in the following direction. Platform ---(select or imply)---> features If you follow this rule, circular dependency will not happen. > Maxime > >> Change it to 'imply' property of ARCH_SUNXI. >> >> Signed-off-by: Masahiro Yamada <yamada.masah...@socionext.com> >> --- >> >> arch/arm/Kconfig | 1 + >> cmd/Kconfig | 1 - >> 2 files changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig >> index 7d394f2..a6ce155 100644 >> --- a/arch/arm/Kconfig >> +++ b/arch/arm/Kconfig >> @@ -796,6 +796,7 @@ config ARCH_SUNXI >> select USB_KEYBOARD if DISTRO_DEFAULTS >> select USE_TINY_PRINTF >> imply CMD_GPT >> + imply CMD_UBI if NAND >> imply DISTRO_DEFAULTS >> imply FAT_WRITE >> imply OF_LIBFDT_OVERLAY >> diff --git a/cmd/Kconfig b/cmd/Kconfig >> index aec2090..159ebaa 100644 >> --- a/cmd/Kconfig >> +++ b/cmd/Kconfig >> @@ -1792,7 +1792,6 @@ config CMD_UBI >> 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 >> logical volumes on top of MTD devices, hides some complexities of >> -- >> 2.7.4 >> > > -- > Maxime Ripard, Bootlin (formerly Free Electrons) > Embedded Linux and Kernel engineering > https://bootlin.com > > _______________________________________________ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listinfo/u-boot > -- Best Regards Masahiro Yamada _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot