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

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

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