Hi,

This fixes a pair of race conditions in libpayload and coreinfo makefiles.

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
Signed-off-by: Robert Millan <[EMAIL PROTECTED]>

Index: coreinfo/Makefile
===================================================================
--- coreinfo/Makefile	(revision 3744)
+++ coreinfo/Makefile	(working copy)
@@ -65,9 +65,9 @@
 
 include $(src)/.config
 
-all: prepare $(TARGET)
+all: $(TARGET)
 
-$(TARGET): $(src)/.config $(OBJS)
+$(TARGET): $(src)/.config $(OBJS) prepare
 	$(Q)printf "  LD      $(subst $(shell pwd)/,,$(@))\n"
 	$(Q)$(XCC) -o $@ $(OBJS)
 	$(Q)printf "  STRIP   $(subst $(shell pwd)/,,$(@))\n"
Index: libpayload/Makefile
===================================================================
--- libpayload/Makefile	(revision 3744)
+++ libpayload/Makefile	(working copy)
@@ -104,14 +104,14 @@
 
 all: lib
 
-lib: prepare $(obj)/lib/libpayload.a copystuff
+lib: $(obj)/lib/libpayload.a copystuff
 
 # Copy libpayload.a and head.o into $(src)/lib where lpgcc et al expect them.
 copystuff: $(obj)/$(ARCHDIR-y)/head.S.o $(obj)/lib/libpayload.a
 	$(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)
+$(obj)/lib/libpayload.a: $(OBJS) prepare
 	$(Q)printf "  AR      $(subst $(shell pwd)/,,$(@))\n"
 	$(Q)$(AR) rc $@ $(OBJS)
 
--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to