Makefile: Add DEPENDS_ON_LINUX_I2C

Based on commit 868f801acebd (Makefile: use the HAS_ USE_ scheme for
linux i2c dependent programmer) on flashrom master.

Change-Id: I2e9ab278c2a1bc2615eef954521e4e10dec1f479
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/72303
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/Makefile b/Makefile
index ceb58b9..e064ea3 100644
--- a/Makefile
+++ b/Makefile
@@ -170,6 +170,8 @@
 DEPENDS_ON_LIB_NI845X := \
 	CONFIG_NI845X_SPI \
 
+DEPENDS_ON_LINUX_I2C := \
+	CONFIG_MSTARDDC_SPI \
 
 ifeq ($(CONFIG_ENABLE_LIBUSB1_PROGRAMMERS), no)
 $(call disable_all,$(DEPENDS_ON_LIBUSB1))
@@ -310,7 +312,7 @@
 endif
 
 ifeq ($(HAS_LINUX_I2C), no)
-$(call mark_unsupported,CONFIG_MSTARDDC_SPI)
+$(call mark_unsupported,$(DEPENDS_ON_LINUX_I2C))
 endif
 
 ifeq ($(TARGET_OS), Android)