Makefile: Update migration warnings
v4 cover Makefile: Update migration warnings
The code that produces the migration warnings is quite tedious to understanding and modify. This series updates it to use a common function to handle the logic, so that the message definition is quite short and has no duplication in it.
It is still necessary to write a message in migration.rst however.
This series came out of a patch intended to add an I2C warning.
It also renames CONFIG_DM_RESET; it does not need to be migrated since it already uses driver model.
Changes in v4:
- Refactored the warning code to make it easier to get this right
- Add GPIO deprecation as well
- Add patches to rename DM_RESET to RESET
Changes in v3:
- s/'network'/I2C/ again
Changes in v2:
- s/'network'/I2C/
Simon Glass (14):
Makefile: Move non-DM migration messages to the top
Makefile: Add common code to report deprecation
Makefile: Use common code for MMC deprecation warning
Makefile: Use common code for USB deprecation warning
Makefile: Use common code for MVSATA_IDE deprecation warning
Makefile: Use common code for LIBATA deprecation warning
Makefile: Use common code for PCI deprecation warning
Makefile: Use common code for DM_VIDEO deprecation warning
Makefile: Use common code for SPI_FLASH deprecation warning
Makefile: Use common code for WDT deprecation warning
Makefile: Use common code for DM_ETH deprecation warning
Makefile: Drop the old SPI flash migration message
dm: i2c: Add a migration method for I2C
dm: gpio: Add a migration message for GPIO
Makefile | 157 +++++++++++---------------------- doc/driver-model/migration.rst | 16 ++++ 2 files changed, 67 insertions(+), 106 deletions(-)
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog
PATCH v4 1/14 Makefile: Move non-DM migration messages to the top
At present the driver model migration messages are mixed with the others. Collect them together before starting to refactor them.
---
(no changes since v1)
Makefile | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-)
Makefile +15 -15
@@ -1037,6 +1037,21 @@ ifneq ($(CONFIG_DM_SPI)$(CONFIG_OF_CONTROL),yy) endif endif endif +ifeq ($(CONFIG_OF_EMBED),y) + @echo >&2 "===================== WARNING ======================" + @echo >&2 "CONFIG_OF_EMBED is enabled. This option should only" + @echo >&2 "be used for debugging purposes. Please use" + @echo >&2 "CONFIG_OF_SEPARATE for boards in mainline." + @echo >&2 "See doc/README.fdt-control for more info." + @echo >&2 "====================================================" +endif +ifneq ($(CONFIG_SPL_FIT_GENERATOR),) + @echo >&2 "===================== WARNING ======================" + @echo >&2 "This board uses CONFIG_SPL_FIT_GENERATOR. Please migrate" + @echo >&2 "to binman instead, to avoid the proliferation of" + @echo >&2 "arch-specific scripts with no tests." + @echo >&2 "====================================================" +endif ifneq ($(CONFIG_DM),y) @echo >&2 "===================== WARNING ======================" @echo >&2 "This board does not use CONFIG_DM. CONFIG_DM will be"
@@ -1106,14 +1121,6 @@ ifneq ($(CONFIG_DM_VIDEO),y) @echo >&2 "====================================================" endif endif -ifeq ($(CONFIG_OF_EMBED),y) - @echo >&2 "===================== WARNING ======================" - @echo >&2 "CONFIG_OF_EMBED is enabled. This option should only" - @echo >&2 "be used for debugging purposes. Please use" - @echo >&2 "CONFIG_OF_SEPARATE for boards in mainline." - @echo >&2 "See doc/README.fdt-control for more info." - @echo >&2 "====================================================" -endif ifeq ($(CONFIG_SPI_FLASH),y) ifneq ($(CONFIG_DM_SPI_FLASH)$(CONFIG_OF_CONTROL),yy) @echo >&2 "===================== WARNING ======================"
@@ -1145,13 +1152,6 @@ ifneq ($(CONFIG_DM_ETH),y) @echo >&2 "See doc/driver-model/migration.rst for more info." @echo >&2 "====================================================" endif -endif -ifneq ($(CONFIG_SPL_FIT_GENERATOR),) - @echo >&2 "===================== WARNING ======================" - @echo >&2 "This board uses CONFIG_SPL_FIT_GENERATOR. Please migrate" - @echo >&2 "to binman instead, to avoid the proliferation of" - @echo >&2 "arch-specific scripts with no tests." - @echo >&2 "====================================================" endif @# Check that this build does not use CONFIG options that we do not @# know about unless they are in Kconfig. All the existing CONFIG
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog
PATCH v4 1/14 Makefile: Move non-DM migration messages to the top
Quoted 4 lines · Simon Glass
At present the driver model migration messages are mixed with the others. Collect them together before starting to refactor them.
Signed-off-by Simon Glass <[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: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210327/ae29c96a/attachment.sig>
PATCH v4 2/14 Makefile: Add common code to report deprecation
In reply to Simon GlassAdd a function which can be called to report a migration problem. This will make it easier to add new migration checks, since the logic and strings are not spread out over 8 lines of code.
---
(no changes since v1)
Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)
Makefile +27 -0
@@ -1017,6 +1017,33 @@ quiet_cmd_cfgcheck = CFGCHK $2 cmd_cfgcheck = $(srctree)/scripts/check-config.sh $2 \ $(srctree)/scripts/config_whitelist.txt $(srctree) +# Concat the value of all the CONFIGs (result is 'y' or 'yy', etc. ) +got = $(foreach cfg,$(1),$($(cfg))) + +# expected value 'y for each one +expect = $(foreach cfg,$(1),y) + +# Show a deprecation message +# Args: +# 1: List of CONFIG_DM_... to migrate to (e.g. "CONFIG_DM_MMC CONFIG_BLK") +# 2: Name of component (e.g . "Ethernet drivers") +# 3: Release deadline (e.g. "v202.07") +# 4: Condition to require before checking (e.g. "$(CONFIG_NET)") +# Note: Script avoids bash construct, hence the strange double 'if' +# (patches welcome!) +define deprecated + if [ -n "$(strip $(4))" ]; then if [ "$(got)" != "$(expect)" ]; then \ + echo >&2 "===================== WARNING ======================"; \ + echo >&2 "This board does not use $(firstword $(1)) (Driver Model"; \ + echo >&2 "for $(2)). Please update the board to use"; \ + echo >&2 "$(firstword $(1)) before the $(3) release. Failure to"; \ + echo >&2 "update by the deadline may result in board removal."; \ + echo >&2 "See doc/driver-model/migration.rst for more info."; \ + echo >&2 "===================================================="; \ + fi; fi + +endef + PHONY += inputs inputs: $(INPUTS-y)
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog
PATCH v4 2/14 Makefile: Add common code to report deprecation
Quoted 5 lines · Simon Glass
Add a function which can be called to report a migration problem. This will make it easier to add new migration checks, since the logic and strings are not spread out over 8 lines of code.
Signed-off-by Simon Glass <[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: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210327/8cae7038/attachment.sig>
PATCH v4 3/14 Makefile: Use common code for MMC deprecation warning
In reply to Simon GlassUpdate the MMC check to use the 'deprecated' function.
Tested with zc5202
Old message:
===================== WARNING ====================== This board does not use CONFIG_DM_MMC. Please update the board to use CONFIG_DM_MMC before the v2019.04 release. Failure to update by the deadline may result in board removal. See doc/driver-model/migration.rst for more info.
====================================================
New message:
===================== WARNING ====================== This board does not use CONFIG_DM_MMC (Driver Model for MMC). Please update the board to use CONFIG_DM_MMC before the v2019.04 release. Failure to update by the deadline may result in board removal. See doc/driver-model/migration.rst for more info.
====================================================
---
(no changes since v1)
Makefile | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-)
Makefile +1 -10
@@ -1087,16 +1087,7 @@ ifneq ($(CONFIG_DM),y) @echo >&2 "See doc/driver-model/migration.rst for more info." @echo >&2 "====================================================" endif -ifeq ($(CONFIG_MMC),y) -ifneq ($(CONFIG_DM_MMC)$(CONFIG_BLK),yy) - @echo >&2 "===================== WARNING ======================" - @echo >&2 "This board does not use CONFIG_DM_MMC. Please update" - @echo >&2 "the board to use CONFIG_DM_MMC before the v2019.04 release." - @echo >&2 "Failure to update by the deadline may result in board removal." - @echo >&2 "See doc/driver-model/migration.rst for more info." - @echo >&2 "====================================================" -endif -endif + $(call deprecated,CONFIG_DM_MMC CONFIG_BLK,MMC,v2019.04,$(CONFIG_MMC)) ifeq ($(CONFIG_USB),y) ifneq ($(CONFIG_DM_USB)$(CONFIG_OF_CONTROL)$(CONFIG_BLK),yyy) @echo >&2 "===================== WARNING ======================"
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog
PATCH v4 3/14 Makefile: Use common code for MMC deprecation warning
Quoted 23 lines · Simon Glass
Update the MMC check to use the 'deprecated' function.
Tested with zc5202
Old message:
===================== WARNING ====================== This board does not use
CONFIG_DM_MMC. Please update the board to useCONFIG_DM_MMCbefore the v2019.04 release. Failure to update by the deadline may result in board removal. Seedoc/driver-model/migration.rstfor more info.
====================================================New message:
===================== WARNING ====================== This board does not use
CONFIG_DM_MMC(Driver Model for MMC). Please update the board to useCONFIG_DM_MMCbefore the v2019.04 release. Failure to update by the deadline may result in board removal. Seedoc/driver-model/migration.rstfor more info.
====================================================
Quoted 1 line
Signed-off-by Simon Glass <[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: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210327/51fbcbdf/attachment.sig>
PATCH v4 4/14 Makefile: Use common code for USB deprecation warning
In reply to Simon GlassUpdate the USB check to use the 'deprecated' function.
Tested with xpress
Old message:
===================== WARNING ====================== This board does not use CONFIG_DM_USB. Please update the board to use CONFIG_DM_USB before the v2019.07 release. Failure to update by the deadline may result in board removal. See doc/driver-model/migration.rst for more info.
====================================================
New message:
===================== WARNING ====================== This board does not use CONFIG_DM_USB (Driver Model for USB). Please update the board to use CONFIG_DM_USB before the v2019.07 release. Failure to update by the deadline may result in board removal. See doc/driver-model/migration.rst for more info.
====================================================
---
(no changes since v1)
Makefile | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-)
Makefile +2 -10
@@ -1088,16 +1088,8 @@ ifneq ($(CONFIG_DM),y) @echo >&2 "====================================================" endif $(call deprecated,CONFIG_DM_MMC CONFIG_BLK,MMC,v2019.04,$(CONFIG_MMC)) -ifeq ($(CONFIG_USB),y) -ifneq ($(CONFIG_DM_USB)$(CONFIG_OF_CONTROL)$(CONFIG_BLK),yyy) - @echo >&2 "===================== WARNING ======================" - @echo >&2 "This board does not use CONFIG_DM_USB. Please update" - @echo >&2 "the board to use CONFIG_DM_USB before the v2019.07 release." - @echo >&2 "Failure to update by the deadline may result in board removal." - @echo >&2 "See doc/driver-model/migration.rst for more info." - @echo >&2 "====================================================" -endif -endif + $(call deprecated,CONFIG_DM_USB CONFIG_OF_CONTROL CONFIG_BLK,\ + USB,v2019.07,$(CONFIG_USB)) ifeq ($(CONFIG_MVSATA_IDE),y) @echo >&2 "===================== WARNING ======================" @echo >&2 "This board does use CONFIG_MVSATA_IDE which is not"
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog
PATCH v4 4/14 Makefile: Use common code for USB deprecation warning
Quoted 23 lines · Simon Glass
Update the USB check to use the 'deprecated' function.
Tested with xpress
Old message:
===================== WARNING ====================== This board does not use
CONFIG_DM_USB. Please update the board to useCONFIG_DM_USBbefore the v2019.07 release. Failure to update by the deadline may result in board removal. Seedoc/driver-model/migration.rstfor more info.
====================================================New message:
===================== WARNING ====================== This board does not use
CONFIG_DM_USB(Driver Model for USB). Please update the board to useCONFIG_DM_USBbefore the v2019.07 release. Failure to update by the deadline may result in board removal. Seedoc/driver-model/migration.rstfor more info.
====================================================
Quoted 1 line
Signed-off-by Simon Glass <[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: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210327/d0d184ae/attachment.sig>
PATCH v4 5/14 Makefile: Use common code for MVSATA_IDE deprecation warning
In reply to Simon GlassUpdate the CONFIG_MVSATA_IDE check to use the 'deprecated' function.
Tested with nas220
Old message:
===================== WARNING ====================== This board does use CONFIG_MVSATA_IDE which is not ported to driver-model (DM) yet. Please update the storage controller driver to use CONFIG_AHCI before the v2019.07 release.
Failure to update by the deadline may result in board removal. See doc/driver-model/migration.rst for more info.
====================================================
New message:
===================== WARNING ======================
This board does not use CONFIG_AHCI (Driver Model
for AHCI instead of CONFIG_MVSATA_IDE). Please update the board to use CONFIG_AHCI before the v2019.07 release. Failure to
update by the deadline may result in board removal.
See doc/driver-model/migration.rst for more info.
====================================================
---
(no changes since v1)
Makefile | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-)
Makefile +2 -10
@@ -1090,16 +1090,8 @@ endif $(call deprecated,CONFIG_DM_MMC CONFIG_BLK,MMC,v2019.04,$(CONFIG_MMC)) $(call deprecated,CONFIG_DM_USB CONFIG_OF_CONTROL CONFIG_BLK,\ USB,v2019.07,$(CONFIG_USB)) -ifeq ($(CONFIG_MVSATA_IDE),y) - @echo >&2 "===================== WARNING ======================" - @echo >&2 "This board does use CONFIG_MVSATA_IDE which is not" - @echo >&2 "ported to driver-model (DM) yet. Please update the storage" - @echo >&2 "controller driver to use CONFIG_AHCI before the v2019.07" - @echo >&2 "release." - @echo >&2 "Failure to update by the deadline may result in board removal." - @echo >&2 "See doc/driver-model/migration.rst for more info." - @echo >&2 "====================================================" -endif + $(call deprecated,CONFIG_AHCI,AHCI instead of CONFIG_MVSATA_IDE,v2019.07, \ + $(CONFIG_MVSATA_IDE)) ifeq ($(CONFIG_LIBATA),y) ifneq ($(CONFIG_AHCI),y) @echo >&2 "===================== WARNING ======================"
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog
PATCH v4 5/14 Makefile: Use common code for MVSATA_IDE deprecation warning
Quoted 25 lines · Simon Glass
Update the
CONFIG_MVSATA_IDEcheck to use the 'deprecated' function.Tested with nas220
Old message:
===================== WARNING ====================== This board does use
CONFIG_MVSATA_IDEwhich is not ported to driver-model (DM) yet. Please update the storage controller driver to useCONFIG_AHCIbefore the v2019.07 release.
Failure to update by the deadline may result in board removal. Seedoc/driver-model/migration.rstfor more info.
====================================================New message:
===================== WARNING ======================
This board does not useCONFIG_AHCI(Driver Model
for AHCI instead ofCONFIG_MVSATA_IDE). Please update the board to useCONFIG_AHCIbefore the v2019.07 release. Failure to
update by the deadline may result in board removal.
Seedoc/driver-model/migration.rstfor more info.
====================================================
Quoted 1 line
Signed-off-by Simon Glass <[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: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210327/4d798f49/attachment.sig>
PATCH v4 6/14 Makefile: Use common code for LIBATA deprecation warning
In reply to Simon GlassUpdate the CONFIG_LIBATA check to use the 'deprecated' function.
Tested with MPC8349ITX
Old message:
===================== WARNING ====================== This board does use CONFIG_LIBATA but has CONFIG_AHCI not enabled. Please update the storage controller driver to use CONFIG_AHCI before the v2019.07 release.
Failure to update by the deadline may result in board removal. See doc/driver-model/migration.rst for more info.
====================================================
New message:
===================== WARNING ====================== This board does not use CONFIG_AHCI (Driver Model for AHCI). Please update the board to use CONFIG_AHCI before the v2019.07 release. Failure to update by the deadline may result in board removal. See doc/driver-model/migration.rst for more info.
====================================================
---
(no changes since v1)
Makefile | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
Makefile +1 -11
@@ -1092,17 +1092,7 @@ endif USB,v2019.07,$(CONFIG_USB)) $(call deprecated,CONFIG_AHCI,AHCI instead of CONFIG_MVSATA_IDE,v2019.07, \ $(CONFIG_MVSATA_IDE)) -ifeq ($(CONFIG_LIBATA),y) -ifneq ($(CONFIG_AHCI),y) - @echo >&2 "===================== WARNING ======================" - @echo >&2 "This board does use CONFIG_LIBATA but has CONFIG_AHCI not" - @echo >&2 "enabled. Please update the storage controller driver to use" - @echo >&2 "CONFIG_AHCI before the v2019.07 release." - @echo >&2 "Failure to update by the deadline may result in board removal." - @echo >&2 "See doc/driver-model/migration.rst for more info." - @echo >&2 "====================================================" -endif -endif + $(call deprecated,CONFIG_AHCI,AHCI,v2019.07, $(CONFIG_LIBATA)) ifeq ($(CONFIG_PCI),y) ifneq ($(CONFIG_DM_PCI),y) @echo >&2 "===================== WARNING ======================"
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog
PATCH v4 6/14 Makefile: Use common code for LIBATA deprecation warning
Quoted 24 lines · Simon Glass
Update the
CONFIG_LIBATAcheck to use the 'deprecated' function.Tested with MPC8349ITX
Old message:
===================== WARNING ====================== This board does use
CONFIG_LIBATAbut hasCONFIG_AHCInot enabled. Please update the storage controller driver to useCONFIG_AHCIbefore the v2019.07 release.
Failure to update by the deadline may result in board removal. Seedoc/driver-model/migration.rstfor more info.
====================================================New message:
===================== WARNING ====================== This board does not use
CONFIG_AHCI(Driver Model for AHCI). Please update the board to useCONFIG_AHCIbefore the v2019.07 release. Failure to update by the deadline may result in board removal. Seedoc/driver-model/migration.rstfor more info.
====================================================
Quoted 1 line
Signed-off-by Simon Glass <[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: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210327/b029cef8/attachment.sig>
PATCH v4 7/14 Makefile: Use common code for PCI deprecation warning
In reply to Simon GlassUpdate the CONFIG_DM_PCI check to use the 'deprecated' function.
Tested with MPC8349ITX
Old message:
===================== WARNING ====================== This board does not use CONFIG_DM_PCI Please update the board to use CONFIG_DM_PCI before the v2019.07 release. Failure to update by the deadline may result in board removal. See doc/driver-model/migration.rst for more info.
====================================================
New message:
===================== WARNING ====================== This board does not use CONFIG_DM_PCI (Driver Model for PCI). Please update the board to use CONFIG_DM_PCI before the v2019.07 release. Failure to update by the deadline may result in board removal. See doc/driver-model/migration.rst for more info.
====================================================
---
(no changes since v1)
Makefile | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-)
Makefile +1 -10
@@ -1093,16 +1093,7 @@ endif $(call deprecated,CONFIG_AHCI,AHCI instead of CONFIG_MVSATA_IDE,v2019.07, \ $(CONFIG_MVSATA_IDE)) $(call deprecated,CONFIG_AHCI,AHCI,v2019.07, $(CONFIG_LIBATA)) -ifeq ($(CONFIG_PCI),y) -ifneq ($(CONFIG_DM_PCI),y) - @echo >&2 "===================== WARNING ======================" - @echo >&2 "This board does not use CONFIG_DM_PCI Please update" - @echo >&2 "the board to use CONFIG_DM_PCI before the v2019.07 release." - @echo >&2 "Failure to update by the deadline may result in board removal." - @echo >&2 "See doc/driver-model/migration.rst for more info." - @echo >&2 "====================================================" -endif -endif + $(call deprecated,CONFIG_DM_PCI,PCI,v2019.07,$(CONFIG_PCI)) ifneq ($(CONFIG_LCD)$(CONFIG_VIDEO),) ifneq ($(CONFIG_DM_VIDEO),y) @echo >&2 "===================== WARNING ======================"
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog
PATCH v4 7/14 Makefile: Use common code for PCI deprecation warning
Quoted 23 lines · Simon Glass
Update the
CONFIG_DM_PCIcheck to use the 'deprecated' function.Tested with MPC8349ITX
Old message:
===================== WARNING ====================== This board does not use
CONFIG_DM_PCIPlease update the board to useCONFIG_DM_PCIbefore the v2019.07 release. Failure to update by the deadline may result in board removal. Seedoc/driver-model/migration.rstfor more info.
====================================================New message:
===================== WARNING ====================== This board does not use
CONFIG_DM_PCI(Driver Model for PCI). Please update the board to useCONFIG_DM_PCIbefore the v2019.07 release. Failure to update by the deadline may result in board removal. Seedoc/driver-model/migration.rstfor more info.
====================================================
Quoted 1 line
Signed-off-by Simon Glass <[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: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210327/2efc9514/attachment.sig>
PATCH v4 8/14 Makefile: Use common code for DM_VIDEO deprecation warning
In reply to Simon GlassUpdate the CONFIG_DM_VIDEO check to use the 'deprecated' function.
Tested with pxm2
Old message:
===================== WARNING ====================== This board does not use CONFIG_DM_VIDEO Please update the board to use CONFIG_DM_VIDEO before the v2019.07 release. Failure to update by the deadline may result in board removal. See doc/driver-model/migration.rst for more info.
====================================================
New message:
===================== WARNING ====================== This board does not use CONFIG_DM_VIDEO (Driver Model for video). Please update the board to use CONFIG_DM_VIDEO before the v2019.07 release. Failure to update by the deadline may result in board removal. See doc/driver-model/migration.rst for more info.
==================================================
---
(no changes since v1)
Makefile | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-)
Makefile +2 -10
@@ -1094,16 +1094,8 @@ endif $(CONFIG_MVSATA_IDE)) $(call deprecated,CONFIG_AHCI,AHCI,v2019.07, $(CONFIG_LIBATA)) $(call deprecated,CONFIG_DM_PCI,PCI,v2019.07,$(CONFIG_PCI)) -ifneq ($(CONFIG_LCD)$(CONFIG_VIDEO),) -ifneq ($(CONFIG_DM_VIDEO),y) - @echo >&2 "===================== WARNING ======================" - @echo >&2 "This board does not use CONFIG_DM_VIDEO Please update" - @echo >&2 "the board to use CONFIG_DM_VIDEO before the v2019.07 release." - @echo >&2 "Failure to update by the deadline may result in board removal." - @echo >&2 "See doc/driver-model/migration.rst for more info." - @echo >&2 "====================================================" -endif -endif + $(call deprecated,CONFIG_DM_VIDEO,video,v2019.07,\ + $(CONFIG_LCD)$(CONFIG_VIDEO)) ifeq ($(CONFIG_SPI_FLASH),y) ifneq ($(CONFIG_DM_SPI_FLASH)$(CONFIG_OF_CONTROL),yy) @echo >&2 "===================== WARNING ======================"
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog
PATCH v4 8/14 Makefile: Use common code for DM_VIDEO deprecation warning
Quoted 23 lines · Simon Glass
Update the
CONFIG_DM_VIDEOcheck to use the 'deprecated' function.Tested with pxm2
Old message:
===================== WARNING ====================== This board does not use
CONFIG_DM_VIDEOPlease update the board to useCONFIG_DM_VIDEObefore the v2019.07 release. Failure to update by the deadline may result in board removal. Seedoc/driver-model/migration.rstfor more info.
====================================================New message:
===================== WARNING ====================== This board does not use
CONFIG_DM_VIDEO(Driver Model for video). Please update the board to useCONFIG_DM_VIDEObefore the v2019.07 release. Failure to update by the deadline may result in board removal. Seedoc/driver-model/migration.rstfor more info.
==================================================
Quoted 1 line
Signed-off-by Simon Glass <[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: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210327/be7dcb83/attachment.sig>
PATCH v4 9/14 Makefile: Use common code for SPI_FLASH deprecation warning
In reply to Simon GlassUpdate the CONFIG_DM_SPI_FLASH check to use the 'deprecated' function.
Tested with vinco
Old message:
===================== WARNING ====================== This board does not use CONFIG_DM_SPI_FLASH. Please update the board to use CONFIG_SPI_FLASH before the v2019.07 release. Failure to update by the deadline may result in board removal. See doc/driver-model/migration.rst for more info.
====================================================
New message:
===================== WARNING ====================== This board does not use CONFIG_DM_SPI_FLASH (Driver Model for SPI flash). Please update the board to use CONFIG_DM_SPI_FLASH before the v2019.07 release. Failure to update by the deadline may result in board removal. See doc/driver-model/migration.rst for more info.
====================================================
---
(no changes since v1)
Makefile | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-)
Makefile +2 -10
@@ -1096,16 +1096,8 @@ endif $(call deprecated,CONFIG_DM_PCI,PCI,v2019.07,$(CONFIG_PCI)) $(call deprecated,CONFIG_DM_VIDEO,video,v2019.07,\ $(CONFIG_LCD)$(CONFIG_VIDEO)) -ifeq ($(CONFIG_SPI_FLASH),y) -ifneq ($(CONFIG_DM_SPI_FLASH)$(CONFIG_OF_CONTROL),yy) - @echo >&2 "===================== WARNING ======================" - @echo >&2 "This board does not use CONFIG_DM_SPI_FLASH. Please update" - @echo >&2 "the board to use CONFIG_SPI_FLASH before the v2019.07 release." - @echo >&2 "Failure to update by the deadline may result in board removal." - @echo >&2 "See doc/driver-model/migration.rst for more info." - @echo >&2 "====================================================" -endif -endif + $(call deprecated,CONFIG_DM_SPI_FLASH,SPI flash,v2019.07,\ + $(CONFIG_SPI_FLASH)) ifneq ($(CONFIG_WATCHDOG)$(CONFIG_HW_WATCHDOG),) ifneq ($(CONFIG_WDT),y) @echo >&2 "===================== WARNING ======================"
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog
PATCH v4 9/14 Makefile: Use common code for SPI_FLASH deprecation warning
Quoted 23 lines · Simon Glass
Update the
CONFIG_DM_SPI_FLASHcheck to use the 'deprecated' function.Tested with vinco
Old message:
===================== WARNING ====================== This board does not use
CONFIG_DM_SPI_FLASH. Please update the board to useCONFIG_SPI_FLASHbefore the v2019.07 release. Failure to update by the deadline may result in board removal. Seedoc/driver-model/migration.rstfor more info.
====================================================New message:
===================== WARNING ====================== This board does not use
CONFIG_DM_SPI_FLASH(Driver Model for SPI flash). Please update the board to useCONFIG_DM_SPI_FLASHbefore the v2019.07 release. Failure to update by the deadline may result in board removal. Seedoc/driver-model/migration.rstfor more info.
====================================================
Quoted 1 line
Signed-off-by Simon Glass <[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: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210327/931eb563/attachment.sig>
PATCH v4 10/14 Makefile: Use common code for WDT deprecation warning
In reply to Simon GlassUpdate the CONFIG_WDT check to use the 'deprecated' function.
Tested with kmcent2
Old message:
===================== WARNING ====================== This board does not use CONFIG_WDT (DM watchdog support). Please update the board to use CONFIG_WDT before the v2019.10 release.
Failure to update by the deadline may result in board removal. See doc/driver-model/migration.rst for more info.
====================================================
New message:
===================== WARNING ====================== This board does not use CONFIG_WDT (Driver Model for DM watchdog). Please update the board to use CONFIG_WDT before the v2019.10 release. Failure to update by the deadline may result in board removal. See doc/driver-model/migration.rst for more info.
====================================================
---
(no changes since v1)
Makefile | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-)
Makefile +2 -11
@@ -1098,17 +1098,8 @@ endif $(CONFIG_LCD)$(CONFIG_VIDEO)) $(call deprecated,CONFIG_DM_SPI_FLASH,SPI flash,v2019.07,\ $(CONFIG_SPI_FLASH)) -ifneq ($(CONFIG_WATCHDOG)$(CONFIG_HW_WATCHDOG),) -ifneq ($(CONFIG_WDT),y) - @echo >&2 "===================== WARNING ======================" - @echo >&2 "This board does not use CONFIG_WDT (DM watchdog support)." - @echo >&2 "Please update the board to use CONFIG_WDT before the" - @echo >&2 "v2019.10 release." - @echo >&2 "Failure to update by the deadline may result in board removal." - @echo >&2 "See doc/driver-model/migration.rst for more info." - @echo >&2 "====================================================" -endif -endif + $(call deprecated,CONFIG_WDT,DM watchdog,v2019.10,\ + $(CONFIG_WATCHDOG)$(CONFIG_HW_WATCHDOG)) ifneq ($(CONFIG_NET),) ifneq ($(CONFIG_DM_ETH),y) @echo >&2 "===================== WARNING ======================"
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog
PATCH v4 10/14 Makefile: Use common code for WDT deprecation warning
Quoted 24 lines · Simon Glass
Update the
CONFIG_WDTcheck to use the 'deprecated' function.Tested with kmcent2
Old message:
===================== WARNING ====================== This board does not use
CONFIG_WDT(DM watchdog support). Please update the board to useCONFIG_WDTbefore the v2019.10 release.
Failure to update by the deadline may result in board removal. Seedoc/driver-model/migration.rstfor more info.
====================================================New message:
===================== WARNING ====================== This board does not use
CONFIG_WDT(Driver Model for DM watchdog). Please update the board to useCONFIG_WDTbefore the v2019.10 release. Failure to update by the deadline may result in board removal. Seedoc/driver-model/migration.rstfor more info.
====================================================
Quoted 1 line
Signed-off-by Simon Glass <[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: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210327/e1f39aa6/attachment.sig>
PATCH v4 11/14 Makefile: Use common code for DM_ETH deprecation warning
In reply to Simon GlassUpdate the CONFIG_DM_ETH check to use the 'deprecated' function.
Tested with snow
Old message:
===================== WARNING ====================== This board does not use CONFIG_DM_ETH (Driver Model for Ethernet drivers). Please update the board to use CONFIG_DM_ETH before the v2020.07 release. Failure to update by the deadline may result in board removal. See doc/driver-model/migration.rst for more info.
====================================================
New message:
===================== WARNING ====================== This board does not use CONFIG_DM_ETH (Driver Model for Ethernet drivers). Please update the board to use CONFIG_DM_ETH before the v2020.07 release. Failure to update by the deadline may result in board removal. See doc/driver-model/migration.rst for more info.
====================================================
---
(no changes since v1)
Makefile | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
Makefile +1 -11
@@ -1100,17 +1100,7 @@ endif $(CONFIG_SPI_FLASH)) $(call deprecated,CONFIG_WDT,DM watchdog,v2019.10,\ $(CONFIG_WATCHDOG)$(CONFIG_HW_WATCHDOG)) -ifneq ($(CONFIG_NET),) -ifneq ($(CONFIG_DM_ETH),y) - @echo >&2 "===================== WARNING ======================" - @echo >&2 "This board does not use CONFIG_DM_ETH (Driver Model" - @echo >&2 "for Ethernet drivers). Please update the board to use" - @echo >&2 "CONFIG_DM_ETH before the v2020.07 release. Failure to" - @echo >&2 "update by the deadline may result in board removal." - @echo >&2 "See doc/driver-model/migration.rst for more info." - @echo >&2 "====================================================" -endif -endif + $(call deprecated,CONFIG_DM_ETH,Ethernet drivers,v2020.07,$(CONFIG_NET)) @# Check that this build does not use CONFIG options that we do not @# know about unless they are in Kconfig. All the existing CONFIG @# options are whitelisted, so new ones should not be added.
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog
PATCH v4 11/14 Makefile: Use common code for DM_ETH deprecation warning
Quoted 24 lines · Simon Glass
Update the
CONFIG_DM_ETHcheck to use the 'deprecated' function.Tested with snow
Old message:
===================== WARNING ====================== This board does not use
CONFIG_DM_ETH(Driver Model for Ethernet drivers). Please update the board to useCONFIG_DM_ETHbefore the v2020.07 release. Failure to update by the deadline may result in board removal. Seedoc/driver-model/migration.rstfor more info.
====================================================New message:
===================== WARNING ====================== This board does not use
CONFIG_DM_ETH(Driver Model for Ethernet drivers). Please update the board to useCONFIG_DM_ETHbefore the v2020.07 release. Failure to update by the deadline may result in board removal. Seedoc/driver-model/migration.rstfor more info.
====================================================
Quoted 1 line
Signed-off-by Simon Glass <[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: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210327/675263c2/attachment.sig>
PATCH v4 12/14 Makefile: Drop the old SPI flash migration message
In reply to Simon GlassThis message does not seem to make sense. It may be out of date. Drop it.
---
(no changes since v1)
Makefile | 5 ----- 1 file changed, 5 deletions(-)
Makefile +0 -5
@@ -1058,11 +1058,6 @@ endif ifeq ($(CONFIG_DEPRECATED),y) $(warning "You have deprecated configuration options enabled in your .config! Please check your configuration.") -ifeq ($(CONFIG_SPI),y) -ifneq ($(CONFIG_DM_SPI)$(CONFIG_OF_CONTROL),yy) - $(warning "The relevant config item with associated code will remove in v2019.07 release.") -endif -endif endif ifeq ($(CONFIG_OF_EMBED),y) @echo >&2 "===================== WARNING ======================"
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog
PATCH v4 12/14 Makefile: Drop the old SPI flash migration message
Quoted 3 lines · Simon Glass
This message does not seem to make sense. It may be out of date. Drop it.
Signed-off-by Simon Glass <[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: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210327/23c1a2b8/attachment.sig>
PATCH v4 13/14 dm: i2c: Add a migration method for I2C
In reply to Simon GlassThis probably should have been done a while back since it is a core system. Add a migration deadline of later this year, to catch the stragglers.
---
(no changes since v1)
Makefile | 1 + doc/driver-model/migration.rst | 8 ++++++++ 2 files changed, 9 insertions(+)
Makefile +1 -0
@@ -1096,6 +1096,7 @@ endif $(call deprecated,CONFIG_WDT,DM watchdog,v2019.10,\ $(CONFIG_WATCHDOG)$(CONFIG_HW_WATCHDOG)) $(call deprecated,CONFIG_DM_ETH,Ethernet drivers,v2020.07,$(CONFIG_NET)) + $(call deprecated,CONFIG_DM_I2C,I2C drivers,v2020.07,$(CONFIG_I2C)) @# Check that this build does not use CONFIG options that we do not @# know about unless they are in Kconfig. All the existing CONFIG @# options are whitelisted, so new ones should not be added.
doc/driver-model/migration.rst +8 -0
@@ -99,3 +99,11 @@ Deadline: 2020.07 The network subsystem has supported the driver model since early 2015. Maintainers should submit patches switching over to using CONFIG_DM_ETH and other base driver model options in time for inclusion in the 2020.07 release. + +CONFIG_DM_I2C +------------- +Deadline: 2021.10 + +The I2C subsystem has supported the driver model since early 2015. +Maintainers should submit patches switching over to using CONFIG_DM_I2C and +other base driver model options in time for inclusion in the 2021.10 release.
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog
PATCH v4 13/14 dm: i2c: Add a migration method for I2C
Quoted 5 lines · Simon Glass
This probably should have been done a while back since it is a core system. Add a migration deadline of later this year, to catch the stragglers.
Signed-off-by Simon Glass <[email protected]>
After changing the date to v2022.04 (we must gave 1 year on new notices), 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: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210327/6fc9d124/attachment.sig>
PATCH v4 14/14 dm: gpio: Add a migration message for GPIO
In reply to Simon GlassThis probably should have been done a while back since it is a core system. Add a migration deadline of later this year, to catch the stragglers.
---
Changes in v4:
- Refactored the warning code to make it easier to get this right
- Add GPIO deprecation as well
- Add patches to rename DM_RESET to RESET
Changes in v3:
- s/'network'/I2C/ again
Changes in v2:
- s/'network'/I2C/
Makefile | 1 + doc/driver-model/migration.rst | 8 ++++++++ 2 files changed, 9 insertions(+)
Makefile +1 -0
@@ -1097,6 +1097,7 @@ endif $(CONFIG_WATCHDOG)$(CONFIG_HW_WATCHDOG)) $(call deprecated,CONFIG_DM_ETH,Ethernet drivers,v2020.07,$(CONFIG_NET)) $(call deprecated,CONFIG_DM_I2C,I2C drivers,v2020.07,$(CONFIG_I2C)) + $(call deprecated,CONFIG_DM_GPIO,GPIO drivers,v2020.07,$(CONFIG_GPIO)) @# Check that this build does not use CONFIG options that we do not @# know about unless they are in Kconfig. All the existing CONFIG @# options are whitelisted, so new ones should not be added.
doc/driver-model/migration.rst +8 -0
@@ -107,3 +107,11 @@ Deadline: 2021.10 The I2C subsystem has supported the driver model since early 2015. Maintainers should submit patches switching over to using CONFIG_DM_I2C and other base driver model options in time for inclusion in the 2021.10 release. + +CONFIG_DM_GPIO +-------------- +Deadline: 2021.10 + +The GPIO subsystem has supported the driver model since early 2014. +Maintainers should submit patches switching over to using CONFIG_DM_GPIO and +other base driver model options in time for inclusion in the 2021.10 release.
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog
PATCH v4 14/14 dm: gpio: Add a migration message for GPIO
Quoted 5 lines · Simon Glass
This probably should have been done a while back since it is a core system. Add a migration deadline of later this year, to catch the stragglers.
Signed-off-by Simon Glass <[email protected]>
After doing a world build of this, there are no warnings issued about DM_GPIO, so I'm not applying this patch. I'm going to fire up a quick patch to setup defaults and so forth next, to see what happens.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210327/f04c8bb8/attachment.sig>
PATCH v4 14/14 dm: gpio: Add a migration message for GPIO
Quoted 11 lines · Tom Rini
Quoted 5 lines · Simon Glass
This probably should have been done a while back since it is a core system. Add a migration deadline of later this year, to catch the stragglers.
Signed-off-by Simon Glass <[email protected]>After doing a world build of this, there are no warnings issued about
DM_GPIO, so I'm not applying this patch. I'm going to fire up a quick patch to setup defaults and so forth next, to see what happens.
Looking harder, there is: AT91_GPIO, DA8XX_GPIO, IPROC_GPIO, MXC_GPIO, MXS_GPIO, OMAP_GPIO, CMD_PCA953X, SUNXI_GPIO, CMD_TCA642X, GPIO_UNIPHIER in terms of GPIO drivers that do not spell out a dependency on DM/DM_GPIO. The next step here would be to see which of these do not use DM_GPIO today and work up some deprecation warning from there.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210327/b5b2e51b/attachment.sig>
v4 cover Makefile: Update migration warnings
In reply to Simon GlassHi Simon and Tom,
Quoted 10 lines · Simon Glass
The code that produces the migration warnings is quite tedious to understanding and modify. This series updates it to use a common function to handle the logic, so that the message definition is quite short and has no duplication in it.
It is still necessary to write a message in
migration.rsthowever.This series came out of a patch intended to add an I2C warning.
Quoted 7 lines
It also renames
CONFIG_DM_RESET; it does not need to be migrated since it already uses driver model.Changes in v4:
- Refactored the warning code to make it easier to get this right
- Add GPIO deprecation as well
- Add patches to renameDM_RESETto RESET
This series caused a bunch of output message when building a board without "V=1":
$ make if [ -n "y" ]; then if [ "y y" != "y y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not use CONFIG_DM_MMC (Driver Model"; echo >&2 "for MMC). Please update the board to use"; echo >&2 "CONFIG_DM_MMC before the v2019.04 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "See doc/driver-model/migration.rst for more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ " y y" != "y y y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not use CONFIG_DM_USB (Driver Model"; echo >&2 "for USB). Please update the board to use"; echo >&2 "CONFIG_DM_USB before the v2019.07 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "See doc/driver-model/migration.rst for more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ "" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not use CONFIG_AHCI (Driver Model"; echo >&2 "for AHCI instead of CONFIG_MVSATA_IDE). Please update the board to use"; echo
Quoted 1 line
&2 "
CONFIG_AHCIbefore the v2019.07 release. Failure to"; echo >&2
"update by the deadline may result in board removal."; echo >&2 "See doc/driver-model/migration.rst for more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ "" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not use CONFIG_AHCI (Driver Model"; echo >&2 "for AHCI). Please update the board to use"; echo >&2 "CONFIG_AHCI before the v2019.07 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "See doc/driver-model/migration.rst for more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ "" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not use CONFIG_DM_PCI (Driver Model"; echo >&2 "for PCI). Please update the board to use"; echo >&2 "CONFIG_DM_PCI before the v2019.07 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "See doc/driver-model/migration.rst for more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ "" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not use CONFIG_DM_VIDEO (Driver Model"; echo >&2 "for video). Please update the board to use"; echo >&2 "CONFIG_DM_VIDEO before the v2019.07 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "See doc/driver-model/migration.rst for more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ "" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not use CONFIG_DM_SPI_FLASH (Driver Model"; echo >&2 "for SPI flash). Please update the board to use"; echo >&2 "CONFIG_DM_SPI_FLASH before the v2019.07 release. Failure to"; echo
Quoted 1 line
&2 "update by the deadline may result in board removal."; echo >&2
"See doc/driver-model/migration.rst for more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ "" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not use CONFIG_WDT (Driver Model"; echo >&2 "for DM watchdog). Please update the board to use"; echo >&2 "CONFIG_WDT before the v2019.10 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "See doc/driver-model/migration.rst for more info."; echo >&2 "===================================================="; fi; fi if [ -n "y" ]; then if [ "y" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not use CONFIG_DM_ETH (Driver Model"; echo >&2 "for Ethernet drivers). Please update the board to use"; echo >&2 "CONFIG_DM_ETH before the v2020.07 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "See doc/driver-model/migration.rst for more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ "" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not use CONFIG_DM_I2C (Driver Model"; echo >&2 "for I2C drivers). Please update the board to use"; echo >&2 "CONFIG_DM_I2C before the v2022.04 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "See doc/driver-model/migration.rst for more info."; echo >&2 "===================================================="; fi; fi
CFGCHK u-boot.cfg
cat: u-boot.cfg: No such file or directory
Also these warnings do not sound correct to this board as the board does not support AHCI or VIDEO, etc.
Regards,
Bin
v4 cover Makefile: Update migration warnings
Quoted 109 lines · Bin Meng
Hi Simon and Tom,
Quoted 10 lines · Simon Glass
The code that produces the migration warnings is quite tedious to understanding and modify. This series updates it to use a common function to handle the logic, so that the message definition is quite short and has no duplication in it.
It is still necessary to write a message in
migration.rsthowever.This series came out of a patch intended to add an I2C warning.
Quoted 7 lines
It also renames
CONFIG_DM_RESET; it does not need to be migrated since it already uses driver model.Changes in v4:
- Refactored the warning code to make it easier to get this right
- Add GPIO deprecation as well
- Add patches to renameDM_RESETto RESETThis series caused a bunch of output message when building a board without "V=1":
$ make if [ -n "y" ]; then if [ "y y" != "y y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not use CONFIG_DM_MMC (Driver Model"; echo >&2 "for MMC). Please update the board to use"; echo >&2 "CONFIG_DM_MMC before the v2019.04 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "See doc/driver-model/migration.rst for more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ " y y" != "y y y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not use CONFIG_DM_USB (Driver Model"; echo >&2 "for USB). Please update the board to use"; echo >&2 "CONFIG_DM_USB before the v2019.07 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "See doc/driver-model/migration.rst for more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ "" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not use CONFIG_AHCI (Driver Model"; echo >&2 "for AHCI instead of CONFIG_MVSATA_IDE). Please update the board to use"; echoQuoted 1 line
&2 "
CONFIG_AHCIbefore the v2019.07 release. Failure to"; echo >&2"update by the deadline may result in board removal."; echo >&2 "See
doc/driver-model/migration.rstfor more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ "" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not useCONFIG_AHCI(Driver Model"; echo >&2 "for AHCI). Please update the board to use"; echo >&2 "CONFIG_AHCIbefore the v2019.07 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "Seedoc/driver-model/migration.rstfor more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ "" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not useCONFIG_DM_PCI(Driver Model"; echo >&2 "for PCI). Please update the board to use"; echo >&2 "CONFIG_DM_PCIbefore the v2019.07 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "Seedoc/driver-model/migration.rstfor more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ "" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not useCONFIG_DM_VIDEO(Driver Model"; echo >&2 "for video). Please update the board to use"; echo >&2 "CONFIG_DM_VIDEObefore the v2019.07 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "Seedoc/driver-model/migration.rstfor more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ "" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not useCONFIG_DM_SPI_FLASH(Driver Model"; echo >&2 "for SPI flash). Please update the board to use"; echo >&2 "CONFIG_DM_SPI_FLASHbefore the v2019.07 release. Failure to"; echoQuoted 1 line
&2 "update by the deadline may result in board removal."; echo >&2
"See
doc/driver-model/migration.rstfor more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ "" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not useCONFIG_WDT(Driver Model"; echo >&2 "for DM watchdog). Please update the board to use"; echo >&2 "CONFIG_WDTbefore the v2019.10 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "Seedoc/driver-model/migration.rstfor more info."; echo >&2 "===================================================="; fi; fi if [ -n "y" ]; then if [ "y" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not useCONFIG_DM_ETH(Driver Model"; echo >&2 "for Ethernet drivers). Please update the board to use"; echo >&2 "CONFIG_DM_ETHbefore the v2020.07 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "Seedoc/driver-model/migration.rstfor more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ "" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not useCONFIG_DM_I2C(Driver Model"; echo >&2 "for I2C drivers). Please update the board to use"; echo >&2 "CONFIG_DM_I2Cbefore the v2022.04 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "Seedoc/driver-model/migration.rstfor more info."; echo >&2 "===================================================="; fi; fi
CFGCHK u-boot.cfg
cat: u-boot.cfg: No such file or directory
Quoted 2 lines
Also these warnings do not sound correct to this board as the board does not support AHCI or VIDEO, etc.
Yes, it looks like we should have:
Makefile +1 -1
@@ -1031,7 +1031,7 @@ expect = $(foreach cfg,$(1),y) # Note: Script avoids bash construct, hence the strange double 'if' # (patches welcome!) define deprecated - if [ -n "$(strip $(4))" ]; then if [ "$(got)" != "$(expect)" ]; then \ + @if [ -n "$(strip $(4))" ]; then if [ "$(got)" != "$(expect)" ]; then \ echo >&2 "===================== WARNING ======================"; \ echo >&2 "This board does not use $(firstword $(1)) (Driver Model"; \ echo >&2 "for $(2)). Please update the board to use"; \
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210331/4d85987d/attachment.sig>
v4 cover Makefile: Update migration warnings
Hi,
Quoted 121 lines · Tom Rini
Quoted 109 lines · Bin Meng
Hi Simon and Tom,
Quoted 10 lines · Simon Glass
The code that produces the migration warnings is quite tedious to understanding and modify. This series updates it to use a common function to handle the logic, so that the message definition is quite short and has no duplication in it.
It is still necessary to write a message in
migration.rsthowever.This series came out of a patch intended to add an I2C warning.
Quoted 7 lines
It also renames
CONFIG_DM_RESET; it does not need to be migrated since it already uses driver model.Changes in v4:
- Refactored the warning code to make it easier to get this right
- Add GPIO deprecation as well
- Add patches to renameDM_RESETto RESETThis series caused a bunch of output message when building a board without "V=1":
$ make if [ -n "y" ]; then if [ "y y" != "y y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not use CONFIG_DM_MMC (Driver Model"; echo >&2 "for MMC). Please update the board to use"; echo >&2 "CONFIG_DM_MMC before the v2019.04 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "See doc/driver-model/migration.rst for more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ " y y" != "y y y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not use CONFIG_DM_USB (Driver Model"; echo >&2 "for USB). Please update the board to use"; echo >&2 "CONFIG_DM_USB before the v2019.07 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "See doc/driver-model/migration.rst for more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ "" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not use CONFIG_AHCI (Driver Model"; echo >&2 "for AHCI instead of CONFIG_MVSATA_IDE). Please update the board to use"; echoQuoted 1 line
&2 "
CONFIG_AHCIbefore the v2019.07 release. Failure to"; echo >&2"update by the deadline may result in board removal."; echo >&2 "See
doc/driver-model/migration.rstfor more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ "" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not useCONFIG_AHCI(Driver Model"; echo >&2 "for AHCI). Please update the board to use"; echo >&2 "CONFIG_AHCIbefore the v2019.07 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "Seedoc/driver-model/migration.rstfor more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ "" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not useCONFIG_DM_PCI(Driver Model"; echo >&2 "for PCI). Please update the board to use"; echo >&2 "CONFIG_DM_PCIbefore the v2019.07 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "Seedoc/driver-model/migration.rstfor more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ "" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not useCONFIG_DM_VIDEO(Driver Model"; echo >&2 "for video). Please update the board to use"; echo >&2 "CONFIG_DM_VIDEObefore the v2019.07 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "Seedoc/driver-model/migration.rstfor more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ "" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not useCONFIG_DM_SPI_FLASH(Driver Model"; echo >&2 "for SPI flash). Please update the board to use"; echo >&2 "CONFIG_DM_SPI_FLASHbefore the v2019.07 release. Failure to"; echoQuoted 1 line
&2 "update by the deadline may result in board removal."; echo >&2
"See
doc/driver-model/migration.rstfor more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ "" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not useCONFIG_WDT(Driver Model"; echo >&2 "for DM watchdog). Please update the board to use"; echo >&2 "CONFIG_WDTbefore the v2019.10 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "Seedoc/driver-model/migration.rstfor more info."; echo >&2 "===================================================="; fi; fi if [ -n "y" ]; then if [ "y" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not useCONFIG_DM_ETH(Driver Model"; echo >&2 "for Ethernet drivers). Please update the board to use"; echo >&2 "CONFIG_DM_ETHbefore the v2020.07 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "Seedoc/driver-model/migration.rstfor more info."; echo >&2 "===================================================="; fi; fi if [ -n "" ]; then if [ "" != "y" ]; then echo >&2 "===================== WARNING ======================"; echo >&2 "This board does not useCONFIG_DM_I2C(Driver Model"; echo >&2 "for I2C drivers). Please update the board to use"; echo >&2 "CONFIG_DM_I2Cbefore the v2022.04 release. Failure to"; echo >&2 "update by the deadline may result in board removal."; echo >&2 "Seedoc/driver-model/migration.rstfor more info."; echo >&2 "===================================================="; fi; fi
CFGCHK u-boot.cfg
cat: u-boot.cfg: No such file or directoryQuoted 2 lines
Also these warnings do not sound correct to this board as the board does not support AHCI or VIDEO, etc.
Yes, it looks like we should have:
Makefile +0
-0
Makefile expect = $(foreach cfg,$(1),y) · line 1037
Quoted 8 lines
Makefile +1
-1@@ -1031,7 +1031,7 @@ expect = $(foreach cfg,$(1),y) # Note: Script avoids bash construct, hence the strange double 'if' # (patches welcome!) define deprecated - if [ -n "$(strip $(4))" ]; then if [ "$(got)" != "$(expect)" ]; then \ + @if [ -n "$(strip $(4))" ]; then if [ "$(got)" != "$(expect)" ]; then \ echo >&2 "===================== WARNING ======================"; \ echo >&2 "This board does not use $(firstword $(1)) (Driver Model"; \ echo >&2 "for $(2)). Please update the board to use"; \
Thank you both, I sent a patch.
Regards,
Simon