mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-28 07:23:43 +02:00
Makefile: use the HAS_ USE_ scheme for linux i2c dependent programmer
Change-Id: I47acdf89a369441b9fc664352c27c43b461545b1 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/62197 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Felix Singer <felixsinger@posteo.net>
This commit is contained in:
parent
79e2bd045c
commit
868f801ace
9
Makefile
9
Makefile
@ -168,6 +168,10 @@ DEPENDS_ON_LIBJAYLINK := \
|
|||||||
DEPENDS_ON_LIB_NI845X := \
|
DEPENDS_ON_LIB_NI845X := \
|
||||||
CONFIG_NI845X_SPI \
|
CONFIG_NI845X_SPI \
|
||||||
|
|
||||||
|
DEPENDS_ON_LINUX_I2C := \
|
||||||
|
CONFIG_MSTARDDC_SPI \
|
||||||
|
CONFIG_LSPCON_I2C_SPI \
|
||||||
|
CONFIG_REALTEK_MST_I2C_SPI \
|
||||||
|
|
||||||
ifeq ($(CONFIG_ENABLE_LIBUSB1_PROGRAMMERS), no)
|
ifeq ($(CONFIG_ENABLE_LIBUSB1_PROGRAMMERS), no)
|
||||||
$(call disable_all,$(DEPENDS_ON_LIBUSB1))
|
$(call disable_all,$(DEPENDS_ON_LIBUSB1))
|
||||||
@ -302,7 +306,7 @@ $(call mark_unsupported,CONFIG_LINUX_SPI)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(HAS_LINUX_I2C), no)
|
ifeq ($(HAS_LINUX_I2C), no)
|
||||||
$(call mark_unsupported,CONFIG_MSTARDDC_SPI CONFIG_LSPCON_I2C_SPI CONFIG_REALTEK_MST_I2C_SPI)
|
$(call mark_unsupported,DEPENDS_ON_LINUX_I2C)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(TARGET_OS), Android)
|
ifeq ($(TARGET_OS), Android)
|
||||||
@ -800,7 +804,8 @@ FEATURE_FLAGS += -D'CONFIG_NI845X_SPI=1'
|
|||||||
PROGRAMMER_OBJS += ni845x_spi.o
|
PROGRAMMER_OBJS += ni845x_spi.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(HAS_LINUX_I2C), yes)
|
USE_LINUX_I2C := $(if $(call filter_deps,$(DEPENDS_ON_LINUX_I2C)),yes,no)
|
||||||
|
ifeq ($(USE_LINUX_I2C), yes)
|
||||||
LIB_OBJS += i2c_helper_linux.o
|
LIB_OBJS += i2c_helper_linux.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user