Skip to content

Commit e201329

Browse files
committed
Makefile: Add library_fs target and improve clean rules
- Update build rules for test-lib and lib-fs. - Improve clean rule to remove test-lib and lib-fs binaries.
1 parent 75d8485 commit e201329

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,11 @@ endif
149149

150150
ifeq ($(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
153157
endif
154158

155159
ifeq ($(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

209213
wolfboot.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

0 commit comments

Comments
 (0)