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

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

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