The Android Open Source Project | f53ebec | 2009-03-03 19:32:14 -0800 | [diff] [blame] | 1 | Default (and possibly architecture dependents) HAL modules go here. |
| 2 | |
| 3 | |
| 4 | libhardware.so eventually should contain *just* the HAL hub |
| 5 | (hardware.c), everything in it should be rewritten as modules. |
| 6 | |
Po-Chien Hsueh | c535b2f | 2017-03-02 15:44:24 +0800 | [diff] [blame^] | 7 | Modules are .so in /vendor/lib/hw/ and have a well defined naming |
The Android Open Source Project | f53ebec | 2009-03-03 19:32:14 -0800 | [diff] [blame] | 8 | convention: |
| 9 | |
Po-Chien Hsueh | c535b2f | 2017-03-02 15:44:24 +0800 | [diff] [blame^] | 10 | /vendor/lib/hw/<*_HARDWARE_MODULE_ID>.<ro.product.board>.so |
| 11 | /vendor/lib/hw/<*_HARDWARE_MODULE_ID>.<ro.board.platform>.so |
| 12 | /vendor/lib/hw/<*_HARDWARE_MODULE_ID>.<ro.arch>.so |
| 13 | /vendor/lib/hw/<*_HARDWARE_MODULE_ID>.default.so |
The Android Open Source Project | f53ebec | 2009-03-03 19:32:14 -0800 | [diff] [blame] | 14 | |
| 15 | They also have a well defined interface which lives in include/hardware/. |
| 16 | |
| 17 | A module can have several variants: "default", "arch" and "board", and they're |
| 18 | loaded in the "board", "arch" and "default" order. |
| 19 | The source code for the "board" variant, usually lives under partners/... |
| 20 | |
| 21 | The source code for "default" and "arch" would usually |
| 22 | live under hardware/modules/. |
| 23 | |