From 34fc82bb2ee194b6a9a41c43e37a38167acd0c66 Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Sun, 21 Feb 2016 11:18:24 +0000 Subject: Automatically disable atapromise for libpayload as well The atapromise module uses the rom_size field of the struct pci_dev found in pci.h that does not exist in libpayload's implementation and thus does not compile with libpayload. Corresponding to flashrom svn r1938. Signed-off-by: Stefan Tauner Acked-by: Stefan Tauner --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 8583fd7..095a49c 100644 --- a/Makefile +++ b/Makefile @@ -292,6 +292,12 @@ UNSUPPORTED_FEATURES += CONFIG_DUMMY=yes else override CONFIG_DUMMY = no endif +# libpayload does not provide the romsize field in struct pci_dev that the atapromise code requires. +ifeq ($(CONFIG_ATAPROMISE), yes) +UNSUPPORTED_FEATURES += CONFIG_ATAPROMISE=yes +else +override CONFIG_ATAPROMISE = no +endif # Bus Pirate, Serprog and PonyProg are not supported with libpayload (missing serial support). ifeq ($(CONFIG_BUSPIRATE_SPI), yes) UNSUPPORTED_FEATURES += CONFIG_BUSPIRATE_SPI=yes -- cgit v1.1