Message ID | 20210315170711.567358-3-hauke@hauke-m.de |
---|---|
State | New |
Headers | show |
Series | mtd: parsers: trx: Add support for Buffalo WSR-2533DHP2 | expand |
On 15.03.2021 18:07, Hauke Mehrtens wrote: > Buffalo uses the TRX partition format also on Mediatek SoCs. > > Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> > --- > drivers/mtd/parsers/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mtd/parsers/Kconfig b/drivers/mtd/parsers/Kconfig > index d90c30229052..6242903d8844 100644 > --- a/drivers/mtd/parsers/Kconfig > +++ b/drivers/mtd/parsers/Kconfig > @@ -96,7 +96,7 @@ config MTD_AFS_PARTS > > config MTD_PARSER_TRX > tristate "Parser for TRX format partitions" > - depends on MTD && (BCM47XX || ARCH_BCM_5301X || COMPILE_TEST) > + depends on MTD > help > TRX is a firmware format used by Broadcom on their devices. It > may contain up to 3/4 partitions (depending on the version). > Please check Documentation/kbuild/kconfig-language.rst and commit 18084e435ff6 ("Documentation/kbuild: Document platform dependency practises") I think you should rather add platform to DEPENDS.
On 3/18/21 7:45 AM, Rafał Miłecki wrote: > On 15.03.2021 18:07, Hauke Mehrtens wrote: >> Buffalo uses the TRX partition format also on Mediatek SoCs. >> >> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> >> --- >> drivers/mtd/parsers/Kconfig | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/mtd/parsers/Kconfig b/drivers/mtd/parsers/Kconfig >> index d90c30229052..6242903d8844 100644 >> --- a/drivers/mtd/parsers/Kconfig >> +++ b/drivers/mtd/parsers/Kconfig >> @@ -96,7 +96,7 @@ config MTD_AFS_PARTS >> config MTD_PARSER_TRX >> tristate "Parser for TRX format partitions" >> - depends on MTD && (BCM47XX || ARCH_BCM_5301X || COMPILE_TEST) >> + depends on MTD >> help >> TRX is a firmware format used by Broadcom on their devices. It >> may contain up to 3/4 partitions (depending on the version). >> > > Please check Documentation/kbuild/kconfig-language.rst and commit > 18084e435ff6 ("Documentation/kbuild: Document platform dependency > practises") > > I think you should rather add platform to DEPENDS. Ok I will add a dependency to ARCH_MEDIATEK. I think Buffalo also used this on some Mediatek/ralink MIPS devices, but they are not supported upstream yet. Hauke
diff --git a/drivers/mtd/parsers/Kconfig b/drivers/mtd/parsers/Kconfig index d90c30229052..6242903d8844 100644 --- a/drivers/mtd/parsers/Kconfig +++ b/drivers/mtd/parsers/Kconfig @@ -96,7 +96,7 @@ config MTD_AFS_PARTS config MTD_PARSER_TRX tristate "Parser for TRX format partitions" - depends on MTD && (BCM47XX || ARCH_BCM_5301X || COMPILE_TEST) + depends on MTD help TRX is a firmware format used by Broadcom on their devices. It may contain up to 3/4 partitions (depending on the version).
Buffalo uses the TRX partition format also on Mediatek SoCs. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> --- drivers/mtd/parsers/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)