40 lines
1.3 KiB
Makefile
40 lines
1.3 KiB
Makefile
|
#
|
||
|
# Makefile for Invensense inv-mpu-iio device.
|
||
|
#
|
||
|
|
||
|
obj-$(CONFIG_INV_MPU_IIO) += inv-mpu-iio.o
|
||
|
|
||
|
inv-mpu-iio-objs := inv_mpu_core.o
|
||
|
inv-mpu-iio-objs += inv_mpu_ring.o
|
||
|
inv-mpu-iio-objs += inv_mpu_trigger.o
|
||
|
inv-mpu-iio-objs += inv_mpu_misc.o
|
||
|
inv-mpu-iio-objs += inv_mpu3050_iio.o
|
||
|
inv-mpu-iio-objs += dmpDefaultMPU6050.o
|
||
|
inv-mpu-iio-objs += inv_slave_compass.o
|
||
|
inv-mpu-iio-objs += inv_slave_pressure.o
|
||
|
|
||
|
CFLAGS_inv_mpu_core.o += -Idrivers/staging/iio
|
||
|
CFLAGS_inv_mpu_ring.o += -Idrivers/staging/iio
|
||
|
CFLAGS_inv_mpu_trigger.o += -Idrivers/staging/iio
|
||
|
CFLAGS_inv_mpu_misc.o += -Idrivers/staging/iio
|
||
|
CFLAGS_inv_mpu3050_iio.o += -Idrivers/staging/iio
|
||
|
CFLAGS_dmpDefaultMPU6050.o += -Idrivers/staging/iio
|
||
|
CFLAGS_inv_slave_compass.o += -Idrivers/staging/iio
|
||
|
CFLAGS_inv_slave_pressure.o += -Idrivers/staging/iio
|
||
|
|
||
|
# the Bosch BMA250 driver is added to the inv-mpu device driver because it
|
||
|
# must be connected to an MPU3050 device on the secondary slave bus.
|
||
|
ifeq ($(CONFIG_INV_IIO_MPU3050_ACCEL_SLAVE_BMA250), y)
|
||
|
inv-mpu-iio-objs += inv_slave_bma250.o
|
||
|
CFLAGS_inv_slave_bma250.o += -Idrivers/staging/iio
|
||
|
endif
|
||
|
|
||
|
# compile Invensense MPU IIO driver as DTS
|
||
|
ifeq ($(CONFIG_DTS_INV_MPU_IIO), y)
|
||
|
inv-mpu-iio-objs += inv_mpu_dts.o
|
||
|
CFLAGS_inv_mpu_dts.o += -Idrivers/staging/iio
|
||
|
endif
|
||
|
|
||
|
obj-y += inv_compass/
|
||
|
obj-y += inv_test/
|