[flashrom] [PATCH] libpayload: By default build libflashrom.a instead of flashrom.
Stefan Tauner
stefan.tauner at student.tuwien.ac.at
Sun Aug 25 00:45:01 CEST 2013
flashrom won't built nor run as native payload very soon (or ever). This
patch changes a special GNU make variable that allows to select the default
goal which is taken if no goal is given explicitly on the command line. Normally
this would be the first rule in Makefile, i.e. all. This won't compile if the target
OS is libpayload, hence change it to "libflashrom.a" in that case.
Signed-off-by: Stefan Tauner <stefan.tauner at student.tuwien.ac.at>
---
Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Makefile b/Makefile
index 023c41d..e6834a3 100644
--- a/Makefile
+++ b/Makefile
@@ -215,6 +215,10 @@ endif
endif
ifeq ($(TARGET_OS), libpayload)
+ifeq ($(MAKECMDGOALS),)
+.DEFAULT_GOAL := libflashrom.a
+$(info Setting default goal to libflashrom.a)
+endif
FLASHROM_CFLAGS += -DSTANDALONE
ifeq ($(CONFIG_DUMMY), yes)
UNSUPPORTED_FEATURES += CONFIG_DUMMY=yes
--
Kind regards, Stefan Tauner
More information about the flashrom
mailing list