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

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

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