diff options
Diffstat (limited to 'src/arch/posix/Makefile.inc')
-rw-r--r-- | src/arch/posix/Makefile.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arch/posix/Makefile.inc b/src/arch/posix/Makefile.inc index 2f938a8..539e5f4 100644 --- a/src/arch/posix/Makefile.inc +++ b/src/arch/posix/Makefile.inc @@ -5,6 +5,7 @@ # SPDX-License-Identifier: BSD-2-Clause COMMON_FLAGS += -DMULTIPASS_ARCH_posix +COMMON_FLAGS += -DMULTIPASS_ARCH_HAS_I2C CC = gcc CXX = g++ @@ -27,6 +28,10 @@ ifeq (${timer_s}, 1) CONFIG_arch_posix_driver_uptime = y endif +ifdef CONFIG_arch_posix_driver_i2c + CXX_TARGETS += src/arch/posix/driver/i2c.cc +endif + ifdef CONFIG_arch_posix_driver_counter CXX_TARGETS += src/arch/posix/driver/counter.cc endif |