From ce5b6bc9faf38c7feaf5053424176d39e91c7323 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Mon, 31 Jan 2022 21:51:59 +0100 Subject: fixed build --- fw/fe310/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'fw/fe310/Makefile') diff --git a/fw/fe310/Makefile b/fw/fe310/Makefile index 96687c7..be584f5 100644 --- a/fw/fe310/Makefile +++ b/fw/fe310/Makefile @@ -1,22 +1,26 @@ include common.mk +MAKEFLAGS += -I$(fe310_dir) -CFLAGS += -I./include +include $(crypto_dir)/crypto_obj.mk +obj_crypto = $(addprefix $(crypto_dir)/,$(obj_dep)) -subdirs = bsp/drivers bsp/gloss bsp/metal eos eos/i2c eos/eve eos/eve/screen eos/eve/widget eos/app crypto fsfat +subdirs = bsp/drivers bsp/gloss bsp/metal eos eos/i2c eos/eve eos/eve/screen eos/eve/widget eos/app fsfat +# $(info INFO $(obj_crypto)) all: libeos.a %.o: %.c $(CC) $(CFLAGS) -c $< libeos.a: - for i in $(subdirs); do \ + for i in $(subdirs) $(crypto_dir); do \ (cd $$i && $(MAKE)) || exit; \ done rm -f $@ for i in $(subdirs); do \ $(AR) rcs $@ $$i/*.o; \ done + $(AR) rcs $@ $(obj_crypto) clean: for i in $(subdirs); do \ -- cgit v1.2.3