aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.d
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.com>2021-10-20 22:08:24 +0200
committerNico Huber <nico.h@gmx.de>2021-11-07 16:59:40 +0000
commitd87fd9cf3d1e44b2f702dc6df433f6edbd89d15e (patch)
tree35d3bb776e0d773d4a5ac630e2cda8916aa44378 /Makefile.d
parent2dae0b764f23fa3359f39b88d889205940d3c60f (diff)
downloadflashrom-d87fd9cf3d1e44b2f702dc6df433f6edbd89d15e.tar.gz
flashrom-d87fd9cf3d1e44b2f702dc6df433f6edbd89d15e.tar.bz2
flashrom-d87fd9cf3d1e44b2f702dc6df433f6edbd89d15e.zip
Makefile: Revise build options for Linux specific headers
Clean up the feature target by outsourcing the test to an own variable. Change the print output and don't write to the build-details file. This is in preparation for further changes. Change-Id: I18fc27252afb49fa7d1f2787faee2b5b669275aa Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/58627 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'Makefile.d')
-rw-r--r--Makefile.d/linux_i2c_test.c9
-rw-r--r--Makefile.d/linux_mtd_test.c8
-rw-r--r--Makefile.d/linux_spi_test.c9
3 files changed, 26 insertions, 0 deletions
diff --git a/Makefile.d/linux_i2c_test.c b/Makefile.d/linux_i2c_test.c
new file mode 100644
index 00000000..768226ba
--- /dev/null
+++ b/Makefile.d/linux_i2c_test.c
@@ -0,0 +1,9 @@
+#include <linux/i2c-dev.h>
+#include <linux/i2c.h>
+
+int main(int argc, char **argv)
+{
+ (void)argc;
+ (void)argv;
+ return 0;
+}
diff --git a/Makefile.d/linux_mtd_test.c b/Makefile.d/linux_mtd_test.c
new file mode 100644
index 00000000..d254e242
--- /dev/null
+++ b/Makefile.d/linux_mtd_test.c
@@ -0,0 +1,8 @@
+#include <mtd/mtd-user.h>
+
+int main(int argc, char **argv)
+{
+ (void)argc;
+ (void)argv;
+ return 0;
+}
diff --git a/Makefile.d/linux_spi_test.c b/Makefile.d/linux_spi_test.c
new file mode 100644
index 00000000..a4d26578
--- /dev/null
+++ b/Makefile.d/linux_spi_test.c
@@ -0,0 +1,9 @@
+#include <linux/types.h>
+#include <linux/spi/spidev.h>
+
+int main(int argc, char **argv)
+{
+ (void)argc;
+ (void)argv;
+ return 0;
+}