mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-30 00:13:43 +02:00
Makefile: Deflate handling of Linux-only programmers
Also one case that doesn't work on Android. Change-Id: I17381172f8df213bbddccedec2ef288326e49ecf Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/55877 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
fa478ed2a6
commit
7c7c84370b
41
Makefile
41
Makefile
@ -240,44 +240,15 @@ $(call mark_unsupported,$(DEPENDS_ON_LIBUSB1) $(DEPENDS_ON_LIBFTDI) $(DEPENDS_ON
|
|||||||
$(call mark_unsupported,CONFIG_ENE_LPC CONFIG_MEC1308)
|
$(call mark_unsupported,CONFIG_ENE_LPC CONFIG_MEC1308)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(TARGET_OS), Linux)
|
# Android is handled internally as separate OS, but it supports about the same drivers as Linux.
|
||||||
# Android is handled internally as separate OS, but it supports CONFIG_LINUX_SPI and CONFIG_MSTARDDC_SPI
|
ifeq ($(filter $(TARGET_OS),Linux Android), )
|
||||||
ifneq ($(TARGET_OS), Android)
|
$(call mark_unsupported,CONFIG_LINUX_MTD CONFIG_LINUX_SPI)
|
||||||
ifeq ($(CONFIG_LINUX_MTD), yes)
|
$(call mark_unsupported,CONFIG_MSTARDDC_SPI CONFIG_LSPCON_I2C_SPI CONFIG_REALTEK_MST_I2C_SPI)
|
||||||
UNSUPPORTED_FEATURES += CONFIG_LINUX_MTD=yes
|
|
||||||
else
|
|
||||||
override CONFIG_LINUX_MTD = no
|
|
||||||
endif
|
|
||||||
ifeq ($(CONFIG_LINUX_SPI), yes)
|
|
||||||
UNSUPPORTED_FEATURES += CONFIG_LINUX_SPI=yes
|
|
||||||
else
|
|
||||||
override CONFIG_LINUX_SPI = no
|
|
||||||
endif
|
|
||||||
ifeq ($(CONFIG_MSTARDDC_SPI), yes)
|
|
||||||
UNSUPPORTED_FEATURES += CONFIG_MSTARDDC_SPI=yes
|
|
||||||
else
|
|
||||||
override CONFIG_MSTARDDC_SPI = no
|
|
||||||
ifeq ($(CONFIG_LSPCON_I2C_SPI), yes)
|
|
||||||
UNSUPPORTED_FEATURES += CONFIG_LSPCON_I2C_SPI=yes
|
|
||||||
else
|
|
||||||
override CONFIG_LSPCON_I2C_SPI = no
|
|
||||||
endif
|
|
||||||
ifeq ($(CONFIG_REALTEK_MST_I2C_SPI), yes)
|
|
||||||
UNSUPPORTED_FEATURES += CONFIG_REALTEK_MST_I2C_SPI=yes
|
|
||||||
else
|
|
||||||
override CONFIG_REALTEK_MST_I2C_SPI = no
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(TARGET_OS), Android)
|
ifeq ($(TARGET_OS), Android)
|
||||||
# Android on x86 (currently) does not provide raw PCI port I/O operations
|
# Android on x86 (currently) does not provide raw PCI port I/O operations.
|
||||||
ifeq ($(CONFIG_RAYER_SPI), yes)
|
$(call mark_unsupported,CONFIG_RAYER_SPI)
|
||||||
UNSUPPORTED_FEATURES += CONFIG_RAYER_SPI=yes
|
|
||||||
else
|
|
||||||
override CONFIG_RAYER_SPI = no
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(TARGET_OS), Linux)
|
ifeq ($(TARGET_OS), Linux)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user