public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v1 00/24] CONFIG_IS_ENABLED vs IS_ENABLED
@ 2023-02-22  1:37 Troy Kisky
  2023-02-22  1:37 ` [PATCH v1 01/24] cmd: nvedit: check for ENV_SUPPORT Troy Kisky
                   ` (23 more replies)
  0 siblings, 24 replies; 64+ messages in thread
From: Troy Kisky @ 2023-02-22  1:37 UTC (permalink / raw)
  To: sjg, trini, u-boot
  Cc: gary.bisson, Troy Kisky, Alison Wang, Andre Przywara,
	Baruch Siach, Bin Meng, Fabio Estevam, Heiko Thiery,
	Heinrich Schuchardt, Jaehoon Chung, Joel Stanley, Klaus Goger,
	Loic Poulain, Lukasz Majewski, Marek Behún, Marek Vasut,
	Matwey V. Kornilov, Max Krummenacher, Miaoqian Lin,
	NXP i.MX U-Boot Team, Olaf Mandel, Pali Rohár, Peter Hoyes,
	Quentin Schulz, Rafał Miłecki, Rick Chen,
	Samuel Dionne-Riel, Samuel Holland, Sean Anderson, Stefan Roese,
	Stefano Babic, Tim Harvey


This patch set gets ready to checks the usage of
CONFIG_IS_ENABLED/IS_ENABLED.

After the set has been applied, you can delete
test/usage_of_is_enabled_todo.txt
and run test/usage_of_is_enabled_commit.sh

The script test/usage_of_is_enabled_check.sh
checks for new questionable uses of
CONFIG_IS_ENABLED/IS_ENABLED and is added
to .azure-pipelines.yml, and
.gitlab-ci.yml


Troy Kisky (24):
  cmd: nvedit: check for ENV_SUPPORT
  lib: crc32: prepare for CONFIG_IS_ENABLED changes
  lib: md5: prepare for CONFIG_IS_ENABLED changes
  lib: sha1: prepare for CONFIG_IS_ENABLED changes
  lib: sha256: prepare for CONFIG_IS_ENABLED changes
  lib: sha512: prepare for CONFIG_IS_ENABLED changes
  tools: prevent CONFIG_IS_ENABLED errors by including linux/kconfig.h
  tools: Makefile: prepare for CONFIG_IS_ENABLED changes by adding
    CONFIG_TOOLS_xxx
  x86: cpu: qemu: qemu: remove SPL use with CONFIG_IS_ENABLED
  config_distro_bootcmd: remove booting environment variables from SPL
    environment
  ofnode: fdt_support definitions needed if OF_CONTROL is enabled
  ringneck-px30: remove check for ENV_IS_NOWHERE, it is an SPL config
  puma-rk3399: remove check for ENV_IS_NOWHERE, it is an SPL config
  fdt_support: always define fdt_fixup_mtdparts
  m53menlo: define ft_board_setup only if CONFIG_IS_ENABLED(OF_LIBFDT)
  freescale: common: pfuze: define pfuze_mode_init only if
    defined(CONFIG_DM_PMIC)
  ns16550: match when to define bdf with uart code
  solidrun: mx6cuboxi: use CONFIG_IS_ENABLED(SATA) instead of
    CONFIG_CMD_SATA
  arm: mach-imx: use CONFIG_$(SPL_)SATA instead of CONFIG_SATA
  x86: cpu: i386: cpu: only set pci_ram_top if CONFIG_IS_ENABLED(PCI)
  gateworks: venice: surround call of setup_fec with if
    IS_ENABLED(CONFIG_NET)
  power: pmic: add dm style definitions if not
    CONFIG_IS_ENABLED(POWER_LEGACY)
  arm: cpu: armv7: ls102xa: fdt: remove eth_device support
  CI: add test/usage_of_is_enabled_check.sh

 .azure-pipelines.yml                          |  11 +
 .gitlab-ci.yml                                |   5 +
 arch/arm/cpu/armv7/ls102xa/fdt.c              |  12 -
 arch/arm/mach-imx/Makefile                    |   2 +-
 arch/x86/cpu/apollolake/uart.c                |   6 +-
 arch/x86/cpu/i386/cpu.c                       |   2 +
 arch/x86/cpu/qemu/qemu.c                      |   2 +-
 board/freescale/common/pfuze.c                |   2 +-
 board/gateworks/venice/venice.c               |   4 +-
 board/menlo/m53menlo/m53menlo.c               |   2 +
 board/solidrun/mx6cuboxi/mx6cuboxi.c          |   2 +-
 .../puma_rk3399/puma-rk3399.c                 |   4 -
 .../ringneck_px30/ringneck-px30.c             |   4 -
 boot/fdt_region.c                             |   1 +
 cmd/nvedit.c                                  |   5 +-
 include/config_distro_bootcmd.h               |  23 ++
 include/fdt_support.h                         |  26 ++-
 include/ns16550.h                             |   2 +-
 include/power/pmic.h                          |   2 +-
 lib/crc32.c                                   |  12 +-
 lib/fdtdec_common.c                           |   1 +
 lib/hash-checksum.c                           |   1 +
 lib/md5.c                                     |   9 +-
 lib/sha1.c                                    |   8 +-
 lib/sha256.c                                  |   8 +-
 lib/sha512.c                                  |  12 +-
 test/usage_of_is_enabled_check.sh             |  19 ++
 test/usage_of_is_enabled_commit.sh            |  12 +
 test/usage_of_is_enabled_correct.sh           |  50 +++++
 test/usage_of_is_enabled_exempt.txt           |   9 +
 test/usage_of_is_enabled_list.sh              |  86 +++++++
 test/usage_of_is_enabled_splcfg.txt           |  21 ++
 test/usage_of_is_enabled_todo.txt             | 210 ++++++++++++++++++
 tools/Makefile                                |   2 +
 tools/env/fw_env.c                            |   1 +
 tools/fdt_host.h                              |   1 +
 tools/mkimage.h                               |   1 +
 37 files changed, 524 insertions(+), 56 deletions(-)
 create mode 100755 test/usage_of_is_enabled_check.sh
 create mode 100755 test/usage_of_is_enabled_commit.sh
 create mode 100755 test/usage_of_is_enabled_correct.sh
 create mode 100644 test/usage_of_is_enabled_exempt.txt
 create mode 100755 test/usage_of_is_enabled_list.sh
 create mode 100644 test/usage_of_is_enabled_splcfg.txt
 create mode 100644 test/usage_of_is_enabled_todo.txt

-- 
2.34.1


^ permalink raw reply	[flat|nested] 64+ messages in thread

end of thread, other threads:[~2023-02-24  1:24 UTC | newest]

Thread overview: 64+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-22  1:37 [PATCH v1 00/24] CONFIG_IS_ENABLED vs IS_ENABLED Troy Kisky
2023-02-22  1:37 ` [PATCH v1 01/24] cmd: nvedit: check for ENV_SUPPORT Troy Kisky
2023-02-22 21:19   ` Simon Glass
2023-02-22  1:37 ` [PATCH v1 02/24] lib: crc32: prepare for CONFIG_IS_ENABLED changes Troy Kisky
2023-02-22 21:19   ` Simon Glass
2023-02-22  1:38 ` [PATCH v1 03/24] lib: md5: " Troy Kisky
2023-02-22 21:19   ` Simon Glass
2023-02-22  1:38 ` [PATCH v1 04/24] lib: sha1: " Troy Kisky
2023-02-22 21:19   ` Simon Glass
2023-02-22  1:38 ` [PATCH v1 05/24] lib: sha256: " Troy Kisky
2023-02-22 21:19   ` Simon Glass
2023-02-22 22:42     ` Troy Kisky
2023-02-22  1:38 ` [PATCH v1 06/24] lib: sha512: " Troy Kisky
2023-02-22 21:19   ` Simon Glass
2023-02-22  1:38 ` [PATCH v1 07/24] tools: prevent CONFIG_IS_ENABLED errors by including linux/kconfig.h Troy Kisky
2023-02-22 21:19   ` Simon Glass
2023-02-22  1:38 ` [PATCH v1 08/24] tools: Makefile: prepare for CONFIG_IS_ENABLED changes by adding CONFIG_TOOLS_xxx Troy Kisky
2023-02-22 21:20   ` Simon Glass
2023-02-22  1:38 ` [PATCH v1 09/24] x86: cpu: qemu: qemu: remove SPL use with CONFIG_IS_ENABLED Troy Kisky
2023-02-22 21:19   ` Simon Glass
2023-02-22  1:38 ` [PATCH v1 10/24] config_distro_bootcmd: remove booting environment variables from SPL environment Troy Kisky
2023-02-22 21:19   ` Simon Glass
2023-02-22  1:38 ` [PATCH v1 11/24] ofnode: fdt_support definitions needed if OF_CONTROL is enabled Troy Kisky
2023-02-22 21:19   ` Simon Glass
2023-02-22  1:38 ` [PATCH v1 12/24] ringneck-px30: remove check for ENV_IS_NOWHERE, it is an SPL config Troy Kisky
2023-02-22 14:45   ` Quentin Schulz
2023-02-22 15:03     ` Tom Rini
2023-02-22  1:38 ` [PATCH v1 13/24] puma-rk3399: " Troy Kisky
2023-02-22 21:19   ` Simon Glass
2023-02-22  1:38 ` [PATCH v1 14/24] fdt_support: always define fdt_fixup_mtdparts Troy Kisky
2023-02-22 21:20   ` Simon Glass
2023-02-22  1:38 ` [PATCH v1 15/24] m53menlo: define ft_board_setup only if CONFIG_IS_ENABLED(OF_LIBFDT) Troy Kisky
2023-02-22 21:20   ` Simon Glass
2023-02-22  1:38 ` [PATCH v1 16/24] freescale: common: pfuze: define pfuze_mode_init only if defined(CONFIG_DM_PMIC) Troy Kisky
2023-02-22 21:20   ` Simon Glass
2023-02-22  1:38 ` [PATCH v1 17/24] ns16550: match when to define bdf with uart code Troy Kisky
2023-02-22 18:18   ` Tom Rini
2023-02-22 18:42     ` Troy Kisky
2023-02-22 19:16       ` Simon Glass
2023-02-22 19:39       ` Troy Kisky
2023-02-22 20:41         ` Troy Kisky
2023-02-22 21:06           ` Troy Kisky
2023-02-22 21:16             ` Simon Glass
2023-02-22 20:56         ` Simon Glass
     [not found]           ` <CAO46J5WM4yLmbYesfXFeRVYU-7TC=KOPxpBte6=rt9Uh0qF3vw@mail.gmail.com>
     [not found]             ` <CAPnjgZ1jJuwwZ4FAspkhsxwK5RAQiDxtHDkygvwOOtHVFGFiJQ@mail.gmail.com>
     [not found]               ` <CAO46J5XsyQpR57-WA6Q==9wkQLsgwJ+qpsJQxnVt4=GZJ+Ysyg@mail.gmail.com>
2023-02-23  2:48                 ` Simon Glass
2023-02-22  1:38 ` [PATCH v1 18/24] solidrun: mx6cuboxi: use CONFIG_IS_ENABLED(SATA) instead of CONFIG_CMD_SATA Troy Kisky
2023-02-22 16:59   ` Tom Rini
2023-02-22 18:13     ` Troy Kisky
2023-02-24  1:19       ` Troy Kisky
2023-02-22  1:38 ` [PATCH v1 19/24] arm: mach-imx: use CONFIG_$(SPL_)SATA instead of CONFIG_SATA Troy Kisky
2023-02-22 15:05   ` Tom Rini
2023-02-23 19:23     ` Troy Kisky
2023-02-23 22:20       ` Tom Rini
2023-02-23 23:07       ` Simon Glass
2023-02-22  1:38 ` [PATCH v1 20/24] x86: cpu: i386: cpu: only set pci_ram_top if CONFIG_IS_ENABLED(PCI) Troy Kisky
2023-02-22 21:20   ` Simon Glass
2023-02-22  1:38 ` [PATCH v1 21/24] gateworks: venice: surround call of setup_fec with if IS_ENABLED(CONFIG_NET) Troy Kisky
2023-02-22 15:07   ` Tom Rini
2023-02-22  1:38 ` [PATCH v1 22/24] power: pmic: add dm style definitions if not CONFIG_IS_ENABLED(POWER_LEGACY) Troy Kisky
2023-02-22 21:20   ` Simon Glass
2023-02-22  1:38 ` [PATCH v1 23/24] arm: cpu: armv7: ls102xa: fdt: remove eth_device support Troy Kisky
2023-02-22 21:20   ` Simon Glass
2023-02-22  1:38 ` [PATCH v1 24/24] CI: add test/usage_of_is_enabled_check.sh Troy Kisky
2023-02-22 21:20   ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox