[coreboot] [PATCH] libpayload: Fix immediate rebuild after a clean
jordan at cosmicpenguin.net
Tue Nov 25 17:42:00 CET 2008
Mart Raudsepp wrote:
> 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>
> libpayload/Makefile | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
> diff --git a/libpayload/Makefile b/libpayload/Makefile
> index f2536e9..32c3957 100644
> --- a/libpayload/Makefile
> +++ b/libpayload/Makefile
> @@ -111,7 +111,7 @@ 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) prepare
> +$(obj)/lib/libpayload.a: prepare $(OBJS)
> $(Q)printf " AR $(subst $(shell pwd)/,,$(@))\n"
> $(Q)$(AR) rc $@ $(OBJS)
More information about the coreboot