Enable i2c_scan only when there is I2C peripheral
The slinky app includes i2c_scan, but this causes a build error
on HAL ports which don't include an i2c driver. This change only
includes i2c_scan when some I2C_x switch is enabled.
@@ -26,7 +26,6 @@ pkg.keywords:
pkg.deps:
- test/flash_test
- - test/i2c_scan
- mgmt/imgmgr
- mgmt/newtmgr
- mgmt/newtmgr/transport/nmgr_shell
@@ -40,6 +39,10 @@ pkg.deps:
- sys/stats/full
- boot/split
+pkg.deps.I2C_0: test/i2c_scan
+pkg.deps.I2C_1: test/i2c_scan
+pkg.deps.I2C_2: test/i2c_scan
+
pkg.deps.CONFIG_NFFS:
- fs/nffs
