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 <[email protected]>
---
 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


_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to