Makefile: Use common code for WDT deprecation warning
authorSimon Glass <sjg@chromium.org>
Thu, 25 Mar 2021 08:24:41 +0000 (21:24 +1300)
committerTom Rini <trini@konsulko.com>
Sat, 27 Mar 2021 13:48:26 +0000 (09:48 -0400)
commit78b4a564cb9ab75a2d298a731d05c600eb4400d9
tree4d91f6e09aecf341c5fdb2ec6919fbce5fe8afa0
parentec384f9f1242039742e3955c774669e7d69a48ea
Makefile: Use common code for WDT deprecation warning

Update 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.
====================================================

Signed-off-by: Simon Glass <sjg@chromium.org>
Makefile