diff options
author | Michał Barnaś <mb@semihalf.com> | 2021-08-27 14:45:25 +0200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-09 15:39:04 +0000 |
commit | e2a0670f9db5ecae0396da08c1f36e8b4de60fda (patch) | |
tree | f60c1b1af271f53e250ee8982ebade70f358b06e | |
parent | 4dadbef9fcbf7033cbe11f4dc71adddf175312c8 (diff) | |
download | chrome-ec-e2a0670f9db5ecae0396da08c1f36e8b4de60fda.tar.gz |
zephyr: fix compilation of kx022 driver
Add EC root directory to include directories list and
fix include directive in kx022 driver info file.
BRANCH=main
BUG=b:194424288
TEST=Compilation for lazor should work correctly.
Change-Id: I1312b4cac8695e61936b9635c7a59c2f59907502
Signed-off-by: Michał Barnaś <mb@semihalf.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3129961
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
-rw-r--r-- | zephyr/CMakeLists.txt | 1 | ||||
-rw-r--r-- | zephyr/shim/src/motionsense_driver/bmi160-drvinfo.inc | 2 | ||||
-rw-r--r-- | zephyr/shim/src/motionsense_driver/kx022-drvinfo.inc | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index e44befc1f1..7dbab86eb9 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -73,6 +73,7 @@ if (DEFINED CONFIG_PLATFORM_EC) "${PLATFORM_EC}/zephyr/shim/include" "${PLATFORM_EC}/fuzz" "${PLATFORM_EC}/test" + "${PLATFORM_EC}" "${PLATFORM_EC}/include" "${PLATFORM_EC}/include/driver" "${PLATFORM_EC}/third_party") diff --git a/zephyr/shim/src/motionsense_driver/bmi160-drvinfo.inc b/zephyr/shim/src/motionsense_driver/bmi160-drvinfo.inc index cb762c841a..dd7b21641b 100644 --- a/zephyr/shim/src/motionsense_driver/bmi160-drvinfo.inc +++ b/zephyr/shim/src/motionsense_driver/bmi160-drvinfo.inc @@ -29,7 +29,7 @@ */ CREATE_SENSOR_DATA(cros_ec_drvdata_bmi160, CREATE_SENSOR_DATA_BMI160) /* - * CREATE_MOTION_SENSOR which is defined in motionsense_sensros.c is + * CREATE_MOTION_SENSOR which is defined in motionsense_sensors.c is * the macro to create an entry in motion_sensors array. * The macro gets value of compatible property of * the sensor in device tree and sensor specific values like chip ID, diff --git a/zephyr/shim/src/motionsense_driver/kx022-drvinfo.inc b/zephyr/shim/src/motionsense_driver/kx022-drvinfo.inc index 93e471b859..800a9a1543 100644 --- a/zephyr/shim/src/motionsense_driver/kx022-drvinfo.inc +++ b/zephyr/shim/src/motionsense_driver/kx022-drvinfo.inc @@ -3,7 +3,7 @@ * found in the LICENSE file. */ -#include "accel_kx022.h" +#include "driver/accel_kionix.h" /* * CREATE_SENSOR_DATA which is defined in motionsense_sensors.c is |