1db856d08a
secimage does not use libgmp, so don't link it in. (Otherwise linking fails if the library is not installed) Change-Id: I24af21c7754ecd0109f3e86669fa34fa6991d7fe Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: http://review.coreboot.org/11079 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
18 lines
525 B
Makefile
18 lines
525 B
Makefile
secimageobj :=
|
|
secimageobj += crypto.o
|
|
secimageobj += io.o
|
|
secimageobj += misc.o
|
|
secimageobj += sbi.o
|
|
|
|
LIBS = -lssl -lcrypto
|
|
|
|
additional-dirs += $(objutil)/broadcom/secimage
|
|
|
|
$(objutil)/broadcom/secimage/%.o: $(top)/util/broadcom/secimage/%.c
|
|
printf " HOSTCC $(subst $(objutil)/,,$(@))\n"
|
|
$(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
|
|
|
|
$(objutil)/broadcom/secimage/secimage: \
|
|
$(addprefix $(objutil)/broadcom/secimage/,$(secimageobj))
|
|
printf " HOSTCC $(subst $(objutil)/,,$(@)) (link)\n"
|
|
$(HOSTCC) -o $@ $^ $(LIBS)
|