2009-08-12 17:00:51 +02:00
|
|
|
cbfsobj :=
|
2012-10-30 22:02:45 +01:00
|
|
|
cbfsobj += cbfstool.o
|
2009-09-14 15:29:27 +02:00
|
|
|
cbfsobj += common.o
|
|
|
|
cbfsobj += compress.o
|
2013-01-28 18:56:17 +01:00
|
|
|
cbfsobj += cbfs_image.o
|
2009-09-14 15:29:27 +02:00
|
|
|
cbfsobj += cbfs-mkstage.o
|
|
|
|
cbfsobj += cbfs-mkpayload.o
|
2013-12-30 22:16:18 +01:00
|
|
|
cbfsobj += elfheaders.o
|
2013-12-03 20:13:35 +01:00
|
|
|
cbfsobj += xdr.o
|
2012-12-15 00:16:21 +01:00
|
|
|
cbfsobj += fit.o
|
2012-10-30 22:02:45 +01:00
|
|
|
# LZMA
|
|
|
|
cbfsobj += lzma.o
|
|
|
|
cbfsobj += LzFind.o
|
|
|
|
cbfsobj += LzmaDec.o
|
|
|
|
cbfsobj += LzmaEnc.o
|
2013-08-27 20:22:21 +02:00
|
|
|
# linux as payload
|
|
|
|
cbfsobj += linux_trampoline.o
|
|
|
|
cbfsobj += cbfs-payload-linux.o
|
2009-08-12 17:00:51 +02:00
|
|
|
|
2014-03-07 22:11:53 +01:00
|
|
|
rmodobj += rmodtool.o
|
|
|
|
rmodobj += rmodule.o
|
|
|
|
rmodobj += common.o
|
|
|
|
rmodobj += elfheaders.o
|
|
|
|
rmodobj += xdr.o
|
|
|
|
|
2012-10-22 10:39:24 +02:00
|
|
|
ifeq ($(shell uname -s | cut -c-7 2>/dev/null), MINGW32)
|
2014-03-07 22:11:53 +01:00
|
|
|
TOOLFLAGS+=-mno-ms-bitfields
|
2012-10-22 10:39:24 +02:00
|
|
|
endif
|
|
|
|
|
2010-04-17 00:48:57 +02:00
|
|
|
$(objutil)/cbfstool/%.o: $(top)/util/cbfstool/%.c
|
|
|
|
printf " HOSTCC $(subst $(objutil)/,,$(@))\n"
|
2014-03-07 22:11:53 +01:00
|
|
|
$(HOSTCC) $(TOOLFLAGS) $(HOSTCFLAGS) -c -o $@ $<
|
2009-08-12 17:00:51 +02:00
|
|
|
|
2013-03-29 00:51:45 +01:00
|
|
|
$(objutil)/cbfstool/%.o: $(top)/util/cbfstool/lzma/%.c
|
|
|
|
printf " HOSTCC $(subst $(objutil)/,,$(@))\n"
|
2014-03-07 22:11:53 +01:00
|
|
|
$(HOSTCC) $(TOOLFLAGS) $(HOSTCFLAGS) -c -o $@ $<
|
2009-08-12 17:00:51 +02:00
|
|
|
|
2012-10-30 22:02:45 +01:00
|
|
|
$(objutil)/cbfstool/%.o: $(top)/util/cbfstool/lzma/C/%.c
|
2012-12-14 08:44:59 +01:00
|
|
|
printf " HOSTCC $(subst $(objutil)/,,$(@))\n"
|
2014-03-07 22:11:53 +01:00
|
|
|
$(HOSTCC) $(TOOLFLAGS) $(HOSTCFLAGS) -c -o $@ $<
|
2009-09-14 15:29:27 +02:00
|
|
|
|
2014-07-15 12:28:12 +02:00
|
|
|
$(objutil)/cbfstool/cbfstool: $(addprefix $(objutil)/cbfstool/,$(cbfsobj))
|
2013-03-29 00:51:45 +01:00
|
|
|
printf " HOSTCC $(subst $(objutil)/,,$(@)) (link)\n"
|
2014-03-07 22:11:53 +01:00
|
|
|
$(HOSTCC) $(TOOLFLAGS) -o $@ $(addprefix $(objutil)/cbfstool/,$(cbfsobj))
|
|
|
|
|
2014-07-15 12:28:12 +02:00
|
|
|
$(objutil)/cbfstool/rmodtool: $(addprefix $(objutil)/cbfstool/,$(rmodobj))
|
2014-03-07 22:11:53 +01:00
|
|
|
printf " HOSTCC $(subst $(objutil)/,,$(@)) (link)\n"
|
|
|
|
$(HOSTCC) $(TOOLFLAGS) -o $@ $(addprefix $(objutil)/cbfstool/,$(rmodobj))
|