summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2016-02-21 11:18:24 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2016-02-21 11:18:24 +0000
commite016826a077abafc9ebe669c5fb8a809b6e6c2ea (patch)
treedc32dd3ce3e3c88a88584eb58c4d15dcfaac0d4e /Makefile
parente0c7abf219b81ad049d09a4671ebc9196153d308 (diff)
downloadast2050-flashrom-e016826a077abafc9ebe669c5fb8a809b6e6c2ea.zip
ast2050-flashrom-e016826a077abafc9ebe669c5fb8a809b6e6c2ea.tar.gz
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 <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
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
OpenPOWER on IntegriCloud