[coreboot] [FILO] r124 - trunk/filo

repository service svn at coreboot.org
Sun Apr 11 13:37:06 CEST 2010


Author: stepan
Date: Sun Apr 11 13:37:06 2010
New Revision: 124
URL: http://tracker.coreboot.org/trac/filo/changeset/124

Log:
- drop duplicate .config
- print an explicit message instead of bailing out with 2 pages of errors 
  if there is no libpayload installed. The check could be better but it's
  a start.

Signed-off-by: Stefan Reinauer <stepan at coresystems.de>

Modified:
   trunk/filo/Makefile

Modified: trunk/filo/Makefile
==============================================================================
--- trunk/filo/Makefile	Sun Apr 11 13:34:44 2010	(r123)
+++ trunk/filo/Makefile	Sun Apr 11 13:37:06 2010	(r124)
@@ -99,9 +99,13 @@
 
 TARGET  = $(obj)/filo.elf
 
-include $(src)/.config
-
+HAVE_LIBPAYLOAD := $(wildcard $(LIBPAYLOAD))
+ifeq ($(strip $(HAVE_LIBPAYLOAD)),)
+all:
+	@printf "\nError: libpayload is not installed!\nexpected: $(LIBPAYLOAD).\n"
+else
 all: prepare $(obj)/version.h $(TARGET)
+endif
 
 $(obj)/filo: $(src)/.config $(OBJS)
 	$(Q)printf "  LD      $(subst $(shell pwd)/,,$(@))\n"




More information about the coreboot mailing list