[coreboot] r3771 - trunk/payloads/libpayload

svn at coreboot.org svn at coreboot.org
Tue Nov 25 17:41:21 CET 2008

Author: jcrouse
Date: 2008-11-25 17:41:21 +0100 (Tue, 25 Nov 2008)
New Revision: 3771

libpayload: Fix immediate rebuild after a clean

After running make clean, most of build/ directory gets deleted.
It is (re)created in the "prepare" make target, but that was libpayload.a
dependency after the $OBJS, while OBJS building already needs to dump its
created object files there.
Simply rearrange the make target dependencies to get at least "make clean;make" working.

Signed-off-by: Mart Raudsepp <mart.raudsepp at artecdesign.ee>
Acked-by: Jordan Crouse <jordan at cosmicpenguin.net>

Modified: trunk/payloads/libpayload/Makefile
--- trunk/payloads/libpayload/Makefile	2008-11-25 02:03:16 UTC (rev 3770)
+++ trunk/payloads/libpayload/Makefile	2008-11-25 16:41:21 UTC (rev 3771)
@@ -111,7 +111,7 @@
 	$(Q)cp $(obj)/$(ARCHDIR-y)/head.S.o $(src)/lib/$(ARCHDIR-y)/head.o
 	$(Q)cp $(obj)/lib/libpayload.a $(src)/lib
-$(obj)/lib/libpayload.a: $(OBJS) prepare
+$(obj)/lib/libpayload.a: prepare $(OBJS)
 	$(Q)printf "  AR      $(subst $(shell pwd)/,,$(@))\n"
 	$(Q)$(AR) rc $@ $(OBJS)

More information about the coreboot mailing list