From: Tom Rini <trini@konsulko.com>
To: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Cc: "Simon Glass" <sjg@chromium.org>,
u-boot@lists.denx.de, "Adam Ford" <aford173@gmail.com>,
"Alexey Brodkin" <alexey.brodkin@synopsys.com>,
"Ashok Reddy Soma" <ashok.reddy.soma@xilinx.com>,
"Aswath Govindraju" <a-govindraju@ti.com>,
"Bharat Gooty" <bharat.gooty@broadcom.com>,
"Bin Meng" <bmeng.cn@gmail.com>,
"Brandon Maier" <brandon.maier@collins.com>,
"Bryan Brattlof" <bb@ti.com>,
"Chris Packham" <judge.packham@gmail.com>,
"Dave Gerlach" <d-gerlach@ti.com>,
"Eugeniy Paltsev" <Eugeniy.Paltsev@synopsys.com>,
"Heinrich Schuchardt" <xypron.glpk@gmx.de>,
"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
"Jacky Bai" <ping.bai@nxp.com>, "Jagan Teki" <jagan@edgeble.ai>,
"Jan Kiszka" <jan.kiszka@siemens.com>,
"Jim Liu" <jim.t90615@gmail.com>,
"John Keeping" <john@metanate.com>,
"Kautuk Consul" <kconsul@ventanamicro.com>,
"Kever Yang" <kever.yang@rock-chips.com>,
"Le Jin" <le.jin@siemens.com>, "Lukasz Majewski" <lukma@denx.de>,
"Marek Vasut" <marex@denx.de>,
"Masahisa Kojima" <masahisa.kojima@linaro.org>,
"Michal Simek" <michal.simek@amd.com>,
"Nobuhiro Iwamatsu" <iwamatsu@nigauri.org>,
"Pali Rohár" <pali@kernel.org>, "Peng Fan" <peng.fan@nxp.com>,
"Philipp Tomsich" <philipp.tomsich@vrull.eu>,
"Philippe Reynes" <philippe.reynes@softathome.com>,
"Rasmus Villemoes" <rasmus.villemoes@prevas.dk>,
"Rayagonda Kokatanur" <rayagonda.kokatanur@broadcom.com>,
"Rick Chen" <rick@andestech.com>,
"Samuel Holland" <samuel@sholland.org>,
"Sean Anderson" <seanga2@gmail.com>,
"Stefan Bosch" <stefan_b@posteo.net>,
"Sughosh Ganu" <sughosh.ganu@linaro.org>,
"Tianrui Wei" <tianrui-wei@outlook.com>,
"Vignesh Raghavendra" <vigneshr@ti.com>,
"Weijie Gao" <weijie.gao@mediatek.com>, "Ye Li" <ye.li@nxp.com>,
uboot-snps-arc@synopsys.com
Subject: Re: [PATCH 02/88] treewide: Correct invalid Kconfig syntax and warnings
Date: Fri, 27 Jan 2023 10:48:30 -0500 [thread overview]
Message-ID: <Y9PyTrcffwXKsdk/@bill-the-cat> (raw)
In-Reply-To: <3a43b9e0-2c01-a94d-e7de-202989b9cedc@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3257 bytes --]
On Fri, Jan 27, 2023 at 04:00:15PM +0100, Daniel Schwierzeck wrote:
>
>
> On 1/27/23 14:45, Tom Rini wrote:
> > On Mon, Jan 23, 2023 at 02:59:05PM -0700, Simon Glass wrote:
> >
> > > In several places a 'select' is used to select a choice, which is not
> > > supported by Kconfig. In other places, the filename for the 'source'
> > > command is not in quites.
> > >
> > > Fix these two problems throughout the tree, so that kconfiglib does not
> > > show any more warnings.
> > >
> > > Signed-off-by: Simon Glass <sjg@chromium.org>
> >
> > OK, to summarize what I just said in another email and clarify future
> > work. Please first split this patch in to its own series that corrects
> > each type of problem, per commit. The missing quotes for example, and
> > then the extra whitespace ones. Next, commenting out a select is wrong,
> > and each case needs to be better understood / fixed. I'm honestly not
> > sure if asking endianness for MIPS is right and if we should select that
> > from boards too, like ARC, but probably. The ARC_MMU one also should
> > just not be asked, I suspect, but as a separate patch where you cc
> > Alexey, we'll find out :) And so on, for each. Thanks.
> >
>
> For MIPS the endianess (and also architecture/ISA level) needs to be able to be set
> by the user via menuconfig as most MIPS cores or SoCs can support multiple variants.
> The idea is that the specific SoC or machine just sets the supported options to
> restrict the options the user can choose. The board's defconfig should set the
> required default value for each option but must not *select* it.
>
> See the Boston board for example:
>
> config TARGET_BOSTON
> bool "Support Boston"
> ...
> select SUPPORTS_BIG_ENDIAN
> select SUPPORTS_CPU_MIPS32_R1
> select SUPPORTS_CPU_MIPS32_R2
> select SUPPORTS_CPU_MIPS32_R6
> select SUPPORTS_CPU_MIPS64_R1
> select SUPPORTS_CPU_MIPS64_R2
> select SUPPORTS_CPU_MIPS64_R6
> select SUPPORTS_LITTLE_ENDIAN
>
>
>
> A possible fix for ARC could be:
>
>
> --- a/arch/Kconfig
> +++ b/arch/Kconfig
> @@ -53,8 +53,6 @@ config ARC
> select SUPPORT_OF_CONTROL
> select SYS_CACHE_SHIFT_7
> select TIMER
> - select SYS_BIG_ENDIAN if CPU_BIG_ENDIAN
> - select SYS_LITTLE_ENDIAN if !CPU_BIG_ENDIAN
> config ARM
> bool "ARM architecture"
> @@ -490,7 +488,7 @@ endif
> source "board/keymile/Kconfig"
> -if MIPS || MICROBLAZE
> +if MIPS || MICROBLAZE || ARC
> choice
> prompt "Endianness selection"
> @@ -502,11 +500,11 @@ choice
> config SYS_BIG_ENDIAN
> bool "Big endian"
> - depends on (SUPPORTS_BIG_ENDIAN && MIPS) || MICROBLAZE
> + depends on (SUPPORTS_BIG_ENDIAN && MIPS) || MICROBLAZE || (CPU_BIG_ENDIAN && ARC)
> config SYS_LITTLE_ENDIAN
> bool "Little endian"
> - depends on (SUPPORTS_LITTLE_ENDIAN && MIPS) || MICROBLAZE
> + depends on (SUPPORTS_LITTLE_ENDIAN && MIPS) || MICROBLAZE || (CPU_LITTLE_ENDIAN && ARC)
> endchoice
>
>
>
> A *make savedefconfig* should than automatically add *CONFIG_SYS_LITTLE_ENDIAN=y* or
> *CONFIG_SYS_BIG_ENDIAN=y* to the ARC board defconfig's.
Thanks for explaining.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
next prev parent reply other threads:[~2023-01-27 15:49 UTC|newest]
Thread overview: 117+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-23 21:59 [PATCH 00/88] Clean up of bad Kconfig options Simon Glass
2023-01-23 21:59 ` [PATCH 01/88] moveconfig: Add an option to compare Kconfig against source Simon Glass
2023-01-23 21:59 ` [PATCH 02/88] treewide: Correct invalid Kconfig syntax and warnings Simon Glass
2023-01-27 10:06 ` Neha Malcom Francis
2023-01-27 13:21 ` Tom Rini
2023-01-27 13:45 ` Tom Rini
2023-01-27 15:00 ` Daniel Schwierzeck
2023-01-27 15:48 ` Tom Rini [this message]
2023-02-07 4:02 ` Simon Glass
2023-02-10 12:24 ` Alexey Brodkin
2023-02-10 14:03 ` Tom Rini
2023-01-23 21:59 ` [PATCH 03/88] power: Drop fg_max77693 Simon Glass
2023-01-31 12:51 ` Jaehoon Chung
2023-01-23 21:59 ` [PATCH 04/88] nand: Drop CONFIG_NAND_SPEAR Simon Glass
2023-01-24 12:03 ` Michael Nazzareno Trimarchi
2023-01-23 21:59 ` [PATCH 05/88] power: Drop pmic_max77693.c Simon Glass
2023-01-31 12:51 ` Jaehoon Chung
2023-01-23 21:59 ` [PATCH 06/88] gpio: Drop adi_gpio2 Simon Glass
2023-01-23 21:59 ` [PATCH 07/88] Makefile: Drop CONFIG_AIS_CONFIG_FILE Simon Glass
2023-01-23 21:59 ` [PATCH 08/88] misc: Drop ali512x Simon Glass
2023-01-23 21:59 ` [PATCH 09/88] sandbox: Drop reference to CONFIG_ARCH_DEVICE_TREE Simon Glass
2023-01-23 21:59 ` [PATCH 10/88] Rename ARCH_NPCM7xx Simon Glass
2023-01-23 21:59 ` [PATCH 11/88] arm: mvebu: Correct reference to ARMADA_370 Simon Glass
2023-01-24 6:06 ` Stefan Roese
2023-01-23 21:59 ` [PATCH 12/88] arm: mvebu: Drop reference to CONFIG_ARMADA_39X Simon Glass
2023-01-24 6:07 ` Stefan Roese
2023-01-23 21:59 ` [PATCH 13/88] ppc: Drop bat_rw Simon Glass
2023-01-23 21:59 ` [PATCH 14/88] rockchip: Correct a reference to CONFIG_BOOT_MODE_REG Simon Glass
2023-01-23 21:59 ` [PATCH 15/88] cmd: Add an option to enable the ini command Simon Glass
2023-01-23 21:59 ` [PATCH 16/88] cmd: Drop mfsl command Simon Glass
2023-01-23 21:59 ` [PATCH 17/88] Correct CONFIG_CONTROLCENTERDC Simon Glass
2023-01-23 21:59 ` [PATCH 18/88] Drop dataflash_mmc_mux command Simon Glass
2023-01-23 21:59 ` [PATCH 19/88] Drop CONFIG_DM644X_GPIO Simon Glass
2023-01-23 21:59 ` [PATCH 20/88] Makefile: Avoid use of invalid CONFIG_ option Simon Glass
2023-01-23 21:59 ` [PATCH 21/88] env: Drop ENV_IS_IN_SATA Simon Glass
2023-01-23 21:59 ` [PATCH 22/88] samsung: Drop CONFIG_EXYNOS_PWM_BL Simon Glass
2023-01-23 21:59 ` [PATCH 23/88] fpga: Add a LATTICE option Simon Glass
2023-01-23 21:59 ` [PATCH 24/88] fpga: Add a FPGA_STRATIX_II option Simon Glass
2023-01-23 21:59 ` [PATCH 25/88] misc: Drop mc9sdz60 driver Simon Glass
2023-01-23 21:59 ` [PATCH 26/88] freescale: Drop unused pixis code Simon Glass
2023-01-23 21:59 ` [PATCH 27/88] freescale: Drop unused ftpmu010 driver Simon Glass
2023-01-23 21:59 ` [PATCH 28/88] rcar: Drop timer Simon Glass
2023-01-23 21:59 ` [PATCH 29/88] i2c: Rename I2C_MUX_PCA954x Simon Glass
2023-01-23 22:28 ` Chris Packham
2023-01-24 5:51 ` Heiko Schocher
2023-01-24 7:49 ` Luca Ceresoli
2023-01-23 21:59 ` [PATCH 30/88] imx: Drop unused CONFIG_IMX Simon Glass
2023-01-23 21:59 ` [PATCH 31/88] arm: Drop old kona code Simon Glass
2023-01-23 21:59 ` [PATCH 32/88] video: Drop unused lg4573 driver Simon Glass
2023-01-23 21:59 ` [PATCH 33/88] m68k: Drop unused CONFIG_M52277 Simon Glass
2023-01-23 21:59 ` [PATCH 34/88] m68k: Rename MCF5301x Simon Glass
2023-01-23 21:59 ` [PATCH 35/88] m68k: Rename MCF532x Simon Glass
2023-01-23 21:59 ` [PATCH 36/88] m68k: Rename MCF5441x Simon Glass
2023-01-23 21:59 ` [PATCH 37/88] m68k: Drop unused CONFIG_MACH_DAVINCI_DA830_EVM Simon Glass
2023-01-23 21:59 ` [PATCH 38/88] arm: Drop CONFIG_MMU Simon Glass
2023-01-23 21:59 ` [PATCH 39/88] arc: " Simon Glass
2023-01-23 21:59 ` [PATCH 40/88] ppc: Rename MPC83xx Simon Glass
2023-01-24 5:51 ` Heiko Schocher
2023-01-23 21:59 ` [PATCH 41/88] gpio: Drop unused mpc83xx_gpio driver Simon Glass
2023-01-23 21:59 ` [PATCH 42/88] ppc: Rename MPC85xx Simon Glass
2023-01-23 21:59 ` [PATCH 43/88] powerpc: Rename MPC86xx Simon Glass
2023-01-23 21:59 ` [PATCH 44/88] imx: Rename CONFIG_MXS to CFG_MXS Simon Glass
2023-01-23 21:59 ` [PATCH 45/88] nand: Drop unused actl_nand driver Simon Glass
2023-01-23 21:59 ` [PATCH 46/88] mtd: Drop unused fsl_upm driver Simon Glass
2023-01-24 12:04 ` Michael Nazzareno Trimarchi
2023-01-23 21:59 ` [PATCH 47/88] mtd: Drop unused fsmc_nand driver Simon Glass
2023-01-24 12:06 ` Michael Nazzareno Trimarchi
2023-02-22 19:02 ` Patrick DELAUNAY
2023-01-23 21:59 ` [PATCH 48/88] mtd: Drop unused kb9202_nand driver Simon Glass
2023-01-23 21:59 ` [PATCH 49/88] mtd: Drop unused nand_plat driver Simon Glass
2023-01-23 21:59 ` [PATCH 50/88] Makefile: Drop CONFIG_OF_EARLY_FLATTREE Simon Glass
2023-01-23 21:59 ` [PATCH 51/88] omap: Drop unused CONFIG_OMAP_USB_PHY Simon Glass
2023-01-24 19:09 ` Tom Rini
2023-01-23 21:59 ` [PATCH 52/88] mtd: Drop unused CONFIG_ONENAND_U_BOOT Simon Glass
2023-01-23 21:59 ` [PATCH 53/88] ppc: Drop unused CONFIG_P2020DS Simon Glass
2023-01-23 21:59 ` [PATCH 54/88] gpio: Drop unused pca9698 driver Simon Glass
2023-01-23 21:59 ` [PATCH 55/88] samsung: Rename PINCTRL_EXYNOS78x0 Simon Glass
2023-01-23 21:59 ` [PATCH 56/88] power: Drop unused bat_trats driver and battery code Simon Glass
2023-01-31 12:53 ` Jaehoon Chung
2023-01-23 22:00 ` [PATCH 57/88] power: Drop unused fg_max17042 driver and fuel gauge code Simon Glass
2023-01-31 12:53 ` Jaehoon Chung
2023-01-23 22:00 ` [PATCH 58/88] power: Drop unused muic_max77693 driver and mfd code Simon Glass
2023-01-31 12:53 ` Jaehoon Chung
2023-01-23 22:00 ` [PATCH 59/88] power: Drop unused muic_max8997 driver Simon Glass
2023-01-31 12:54 ` Jaehoon Chung
2023-01-23 22:00 ` [PATCH 60/88] freescale: Drop unused pq-mds-pib driver Simon Glass
2023-01-23 22:00 ` [PATCH 61/88] rmobile: Drop CONFIG_RMOBILE Simon Glass
2023-01-23 22:00 ` [PATCH 62/88] rtc: Drop old and unused drivers Simon Glass
2023-01-23 22:00 ` [PATCH 63/88] mtd: Drop unused CONFIG_S32V234 Simon Glass
2023-01-23 22:00 ` [PATCH 64/88] mtd: Drop unused scf0403_lcd driver Simon Glass
2023-01-23 22:00 ` [PATCH 65/88] rmobile: Drop CONFIG_SH73A0 and associated code Simon Glass
2023-01-23 22:00 ` [PATCH 66/88] sh4: Drop unused pci_sh7780 driver Simon Glass
2023-01-23 22:00 ` [PATCH 67/88] Drop ubsha1 tool Simon Glass
2023-01-23 22:00 ` [PATCH 68/88] arm: Rename STM32MP13x Simon Glass
2023-01-31 12:47 ` Patrice CHOTARD
2023-02-22 19:07 ` Patrick DELAUNAY
2023-01-23 22:00 ` [PATCH 69/88] arm: Rename STM32MP15x Simon Glass
2023-01-31 12:48 ` Patrice CHOTARD
2023-02-22 19:07 ` Patrick DELAUNAY
2023-01-23 22:00 ` [PATCH 70/88] sysreset: at91: Correct Makefile rule for SYSRESET_AT91 Simon Glass
2023-01-27 13:53 ` Claudiu.Beznea
2023-01-23 22:00 ` [PATCH 71/88] gdsys: Drop unused fpga file Simon Glass
2023-01-23 22:00 ` [PATCH 73/88] compulab: Drop CONFIG_TARGET_MCM_IMX8M_MINI Simon Glass
2023-01-23 22:00 ` [PATCH 74/88] freescale: Drop CONFIG_TARGET_MPC8536DS et al Simon Glass
2023-01-23 22:00 ` [PATCH 75/88] sh4: Drop unused twl6030 driver Simon Glass
2023-01-23 22:00 ` [PATCH 76/88] ppc: Makefile: Drop unused ppc4xx code Simon Glass
2023-01-24 6:18 ` Stefan Roese
2023-01-23 22:00 ` [PATCH 77/88] armada: usb: net: Drop unused USB drivers Simon Glass
2023-01-23 22:00 ` [PATCH 78/88] usb: Drop unused ehci-faraday driver Simon Glass
2023-01-23 22:00 ` [PATCH 79/88] usb: Drop unused fotg210 gadget Simon Glass
2023-01-23 22:00 ` [PATCH 80/88] rmobile: Drop unused ehci-rmobile driver Simon Glass
2023-01-23 22:00 ` [PATCH 81/88] usb: Drop unused ehci-vct driver Simon Glass
2023-01-23 22:00 ` [PATCH 82/88] usb: Drop unused sl811-hcd driver Simon Glass
2023-01-23 22:00 ` [PATCH 85/88] watchdog: Rename WDT_MPC8xx Simon Glass
2023-01-23 22:00 ` [PATCH 87/88] freescale: Drop unused zm7300 driver Simon Glass
2023-01-23 22:00 ` [PATCH 88/88] fdt: Drop use of non-existent OF_PLATDATA option Simon Glass
[not found] ` <20230123220031.3540724-73-sjg@chromium.org>
2023-01-24 5:52 ` [PATCH 72/88] sh4: Drop unused kona_i2c driver Heiko Schocher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y9PyTrcffwXKsdk/@bill-the-cat \
--to=trini@konsulko.com \
--cc=Eugeniy.Paltsev@synopsys.com \
--cc=a-govindraju@ti.com \
--cc=aford173@gmail.com \
--cc=alexey.brodkin@synopsys.com \
--cc=ashok.reddy.soma@xilinx.com \
--cc=bb@ti.com \
--cc=bharat.gooty@broadcom.com \
--cc=bmeng.cn@gmail.com \
--cc=brandon.maier@collins.com \
--cc=d-gerlach@ti.com \
--cc=daniel.schwierzeck@gmail.com \
--cc=ilias.apalodimas@linaro.org \
--cc=iwamatsu@nigauri.org \
--cc=jagan@edgeble.ai \
--cc=jan.kiszka@siemens.com \
--cc=jim.t90615@gmail.com \
--cc=john@metanate.com \
--cc=judge.packham@gmail.com \
--cc=kconsul@ventanamicro.com \
--cc=kever.yang@rock-chips.com \
--cc=le.jin@siemens.com \
--cc=lukma@denx.de \
--cc=marex@denx.de \
--cc=masahisa.kojima@linaro.org \
--cc=michal.simek@amd.com \
--cc=pali@kernel.org \
--cc=peng.fan@nxp.com \
--cc=philipp.tomsich@vrull.eu \
--cc=philippe.reynes@softathome.com \
--cc=ping.bai@nxp.com \
--cc=rasmus.villemoes@prevas.dk \
--cc=rayagonda.kokatanur@broadcom.com \
--cc=rick@andestech.com \
--cc=samuel@sholland.org \
--cc=seanga2@gmail.com \
--cc=sjg@chromium.org \
--cc=stefan_b@posteo.net \
--cc=sughosh.ganu@linaro.org \
--cc=tianrui-wei@outlook.com \
--cc=u-boot@lists.denx.de \
--cc=uboot-snps-arc@synopsys.com \
--cc=vigneshr@ti.com \
--cc=weijie.gao@mediatek.com \
--cc=xypron.glpk@gmx.de \
--cc=ye.li@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox