0588d19abe
Works on Kontron, qemu, and serengeti. Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> tested on abuild only. Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4534 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
39 lines
874 B
Makefile
39 lines
874 B
Makefile
#
|
|
#
|
|
#
|
|
|
|
ifdef POST_EVALUATION
|
|
|
|
cbfsobj :=
|
|
# commands
|
|
cbfsobj += create.o
|
|
cbfsobj += bootblock.o
|
|
cbfsobj += delete.o
|
|
cbfsobj += extract.o
|
|
cbfsobj += add.o
|
|
cbfsobj += print.o
|
|
cbfsobj += resize.o
|
|
# main tool
|
|
cbfsobj += cbfstool.o
|
|
cbfsobj += util.o
|
|
cbfsobj += fs.o
|
|
|
|
cbfsinc := cbfstool.h cbfs.h
|
|
|
|
$(obj)/util/cbfstool:
|
|
$(Q)mkdir -p $@
|
|
$(Q)mkdir -p $@/tools/lzma
|
|
|
|
$(obj)/util/cbfstool/%.o: $(top)/util/cbfstool/%.c
|
|
$(Q)printf " HOSTCC $(subst $(obj)/,,$(@))\n"
|
|
$(Q)$(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
|
|
|
|
$(obj)/util/cbfstool/cbfstool: $(obj)/util/cbfstool $(obj)/util/cbfstool/tools/cbfs-mkpayload $(obj)/util/cbfstool/tools/cbfs-mkstage $(addprefix $(obj)/util/cbfstool/,$(cbfsobj))
|
|
$(Q)printf " HOSTCC $(subst $(obj)/,,$(@)) (link)\n"
|
|
$(Q)$(HOSTCC) -o $@ $(addprefix $(obj)/util/cbfstool/,$(cbfsobj))
|
|
|
|
endif
|
|
|
|
include $(top)/util/cbfstool/tools/Makefile.inc
|
|
|
|
|