summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-02-03 06:01:05 -0700
committerSimon Glass <sjg@chromium.org>2021-03-22 19:23:27 +1300
commit8d6f2d359e7cf5a6960d55281ee378fac7db0bbb (patch)
tree7e6a57711a96363ca452ffe05705e78551fb9beb /doc
parent735ddfc638bf3ffdf6888f5502bddbbfa6b3636e (diff)
downloadu-boot-8d6f2d359e7cf5a6960d55281ee378fac7db0bbb.tar.gz
u-boot-8d6f2d359e7cf5a6960d55281ee378fac7db0bbb.tar.xz
u-boot-8d6f2d359e7cf5a6960d55281ee378fac7db0bbb.zip
dtoc: Process driver aliases along with drivers
Instead of using a separate step for this processing, handle it while scanning its associated driver. This allows us to drop the code coverage exception in this case. Note that only files containing drivers are scanned by dtoc, so aliases declared in a file that doesn't hold a driver will not be noticed. It would be confusing to put them anywhere other than in the driver that they relate to, but update the documentation to say this explicitly, just in case. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/driver-model/of-plat.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/driver-model/of-plat.rst b/doc/driver-model/of-plat.rst
index 4ef2fe699a..a5a6e46e3e 100644
--- a/doc/driver-model/of-plat.rst
+++ b/doc/driver-model/of-plat.rst
@@ -183,7 +183,8 @@ each 'compatible' string.
In order to make this a bit more flexible DM_DRIVER_ALIAS macro can be
used to declare an alias for a driver name, typically a 'compatible' string.
-This macro produces no code, but it is by dtoc tool.
+This macro produces no code, but it is by dtoc tool. It must be located in the
+same file as its associated driver, ideally just after it.
The parent_idx is the index of the parent driver_info structure within its
linker list (instantiated by the U_BOOT_DRVINFO() macro). This is used to support