Skip to content

Commit

Permalink
Release v0.8.2
Browse files Browse the repository at this point in the history
Release v0.8.2

Co-Authored-By: Markus Lochmann <100404916+ma-loc@users.noreply.github.com>
  • Loading branch information
she2rt and ma-loc committed Aug 1, 2023
1 parent 80e2e10 commit 616dc6f
Show file tree
Hide file tree
Showing 8 changed files with 184 additions and 231 deletions.
30 changes: 30 additions & 0 deletions drivers/input/sensors/smi230/Kbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SPDX-License-Identifier: GPL-2.0-only
#
# SMI230 driver
#

ifneq ($(CONFIG_BOSCH_DRIVER_LOG_FUNC),n)
EXTRA_CFLAGS += -DBOSCH_DRIVER_LOG_FUNC
endif


obj-$(CONFIG_INPUT_SMI230) += smi230.o
smi230-objs := smi230_log.o smi230_acc.o smi230_gyro.o

ifeq ($(CONFIG_SMI230_DATA_SYNC),y)
smi230-objs += smi230_data_sync.o
endif

ifeq ($(CONFIG_SMI230_ACC_DRIVER),y)
smi230-objs += smi230_acc_driver.o
endif

ifeq ($(CONFIG_SMI230_GYRO_DRIVER),y)
smi230-objs += smi230_gyro_driver.o
endif

ifeq ($(CONFIG_SMI230_I2C),y)
smi230-objs += smi230_i2c_driver.o
else
smi230-objs += smi230_spi_driver.o
endif
32 changes: 8 additions & 24 deletions drivers/input/sensors/smi230/Makefile
Original file line number Diff line number Diff line change
@@ -1,29 +1,13 @@
# SPDX-License-Identifier: GPL-2.0-only
#
# Makefile for Bosch sensor driver.
# Makefile for Bosch SMI230 driver
#

ifneq ($(CONFIG_BOSCH_DRIVER_LOG_FUNC),n)
EXTRA_CFLAGS += -DBOSCH_DRIVER_LOG_FUNC
endif
all:
$(MAKE) -C $(KERNEL_SRC) M=$(PWD) modules

modules_install:
$(MAKE) -C $(KERNEL_SRC) M=$(PWD) modules_install

obj-$(CONFIG_INPUT_SMI230) += smi230.o
smi230-objs := smi230_log.o smi230_acc.o smi230_gyro.o

ifeq ($(CONFIG_SMI230_DATA_SYNC),y)
smi230-objs += smi230_data_sync.o
endif

ifeq ($(CONFIG_SMI230_ACC_DRIVER),y)
smi230-objs += smi230_acc_driver.o
endif

ifeq ($(CONFIG_SMI230_GYRO_DRIVER),y)
smi230-objs += smi230_gyro_driver.o
endif

ifeq ($(CONFIG_SMI230_I2C),y)
smi230-objs += smi230_i2c_driver.o
else
smi230-objs += smi230_spi_driver.o
endif
clean:
$(MAKE) -C $(KERNEL_SRC) M=$(PWD) clean
Loading

0 comments on commit 616dc6f

Please sign in to comment.