Currently I am trying to get an Invensense MPU-9250 working with Android (Codeaurora Oreo release) on a SOM using the Snapdragon (msm8996). I found and set up a driver and that looks to be working just fine (cat /sys/bus/iio/iio:device0/regdump gives non-zero values when the device is connected, otherwise all zeros)). Now the next step is getting it connected to the OS through the Android Sensors HAL. I found some code under $ANDROID_ROOT/hardware/invensense/65xx, which is pretty much the same IC without the magnetometer, so that should be fine (right?). However, I can’t find any good documentation on how to get this compiled and hooked up to my /dev/iio:device0. As far as I understand the HAL code should generate some shared libs under out/target/system and out/target/system/hw, but they are not generated. When I run mmm inside hardware/invensense/65xx/libsensors_iio I get the following error:
ninja: error: 'out/target/product/msm/obj_arm/SHARED_LIBRARIES/libmllite_intermediates/export_includes', needed by 'out/target/product/msm/obj_arm/SHARED_LIBRARIES/sensors.msm_intermediates/import_includes', missing and no known rule to make it
Is there any documentation or support available to get HAL support for this sensor working? If it is easier to do with a newer IC from the xxx series it is no problem too.