File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -149,7 +149,11 @@ endif
149149
150150ifeq ($(TARGET ) ,library)
151151 CFLAGS+ =-g
152- MAIN_TARGET: =libwolfboot.a
152+ MAIN_TARGET: =test-lib
153+ endif
154+
155+ ifeq ($(TARGET ) ,library_fs)
156+ MAIN_TARGET: =lib-fs
153157endif
154158
155159ifeq ($(TARGET ) ,raspi3)
@@ -202,9 +206,9 @@ test-lib: libwolfboot.a hal/library.o
202206 @echo " \t[BIN] $@ "
203207 $(Q )$(CC ) $(CFLAGS ) -o $@ hal/library.o libwolfboot.a
204208
205- lib-fs : libwolfboot.a hal/library .o
209+ lib-fs : libwolfboot.a hal/library_fs .o
206210 @echo " \t[BIN] $@ "
207- $(Q )$(CC ) $(CFLAGS ) -o hal/library .o libwolfboot.a
211+ $(Q )$(CC ) $(CFLAGS ) -o $@ hal/library_fs .o libwolfboot.a
208212
209213wolfboot.efi : wolfboot.elf
210214 @echo " \t[BIN] $@ "
@@ -395,6 +399,8 @@ clean:
395399 $(Q ) rm -f $(OBJS )
396400 $(Q ) rm -f tools/keytools/otp/otp-keystore-gen
397401 $(Q ) rm -f .stack_usage
402+ $(Q ) rm -f test-lib
403+ $(Q ) rm -f lib-fs
398404 $(Q )$(MAKE ) -C test-app -s clean
399405 $(Q )$(MAKE ) -C tools/check_config -s clean
400406 $(Q )$(MAKE ) -C stage1 -s clean
You can’t perform that action at this time.
0 commit comments