Skip to content

Commit 372985f

Browse files
committed
multiboot.c: add multiboot unit test
1 parent eab12d3 commit 372985f

2 files changed

Lines changed: 759 additions & 1 deletion

File tree

tools/unit-tests/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ TESTS:=unit-parser unit-extflash unit-string unit-spi-flash unit-aes128 \
2929
unit-aes256 unit-chacha20 unit-pci unit-mock-state unit-sectorflags \
3030
unit-image unit-nvm unit-nvm-flagshome unit-enc-nvm \
3131
unit-enc-nvm-flagshome unit-delta unit-update-flash \
32-
unit-update-flash-enc unit-update-ram unit-pkcs11_store
32+
unit-update-flash-enc unit-update-ram unit-pkcs11_store unit-multiboot
3333

3434
all: $(TESTS)
3535

@@ -153,6 +153,9 @@ unit-update-ram: ../../include/target.h unit-update-ram.c
153153
unit-pkcs11_store: ../../include/target.h unit-pkcs11_store.c
154154
gcc -o $@ $(WOLFCRYPT_SRC) unit-pkcs11_store.c $(CFLAGS) $(WOLFCRYPT_CFLAGS) $(LDFLAGS)
155155

156+
unit-multiboot: ../../include/target.h unit-multiboot.c
157+
gcc -o $@ $^ $(CFLAGS) $(LDFLAGS)
158+
156159
%.o:%.c
157160
gcc -c -o $@ $^ $(CFLAGS)
158161

0 commit comments

Comments
 (0)