drivers: sensors: exclude BSD components from build

Unless ALLOW_BSD_COMPONENTS is enabled support will not be built

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
Alin Jerpelea 2022-02-21 08:06:53 +00:00 committed by Xiang Xiao
parent 3a77cd3d6a
commit 660da04204

View File

@ -74,6 +74,7 @@ config SENSORS_AS726X
bool "AMS AS726X Spetral sensor support"
default n
select I2C
depends on ALLOW_BSD_COMPONENTS
---help---
Enable driver support for the AS726X Spectral Sensor.
@ -373,6 +374,7 @@ config LIS3DH
bool "STMicro LIS3DH 3-Axis accelerometer support"
default n
select SPI
depends on ALLOW_BSD_COMPONENTS
---help---
Enable driver support for the STMicro LIS3DH 3-Axis accelerometer.
@ -398,6 +400,7 @@ config SENSORS_LSM303AGR
bool "STMicro LSM303AGR support"
default n
select I2C
depends on ALLOW_BSD_COMPONENTS
---help---
Enable driver support for the STMicro LSM303AGR.
@ -411,6 +414,7 @@ config SENSORS_LSM6DSL
bool "STMicro LSM6DSL support"
default n
select I2C
depends on ALLOW_BSD_COMPONENTS
---help---
Enable driver support for the STMicro LSM6DSL.
@ -992,6 +996,7 @@ config SENSORS_VL53L1X
bool "ST VL53L1X TOF sensor"
default n
select I2C
depends on ALLOW_BSD_COMPONENTS
---help---
Enable driver support for the VL53L1X Time Of Flight sensor.