File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 33
33
34
34
CROSS_COMPILE = arm-none-eabi-
35
35
36
- TINYTEST = $(TOP ) /lib/tinytest
37
-
38
36
INC += -I.
39
37
INC += -I$(TOP )
40
38
INC += -I$(BUILD )
41
- INC += -I$(TINYTEST )
42
39
43
40
CFLAGS += $(INC ) -Wall -Wpointer-arith -Werror -std=gnu99 $(COPT ) \
44
41
-ffunction-sections -fdata-sections
@@ -71,6 +68,7 @@ SRC_RUN_C = \
71
68
72
69
SRC_TEST_C = \
73
70
test_main.c \
71
+ lib/tinytest/tinytest.c \
74
72
75
73
LIB_SRC_C += $(addprefix lib/,\
76
74
libc/string0.c \
@@ -108,7 +106,6 @@ ALL_OBJ_RUN = $(OBJ_COMMON) $(OBJ_RUN)
108
106
109
107
OBJ_TEST =
110
108
OBJ_TEST += $(addprefix $(BUILD ) /, $(SRC_TEST_C:.c=.o ) )
111
- OBJ_TEST += $(BUILD ) /tinytest.o
112
109
113
110
ALL_OBJ_TEST = $(OBJ_COMMON ) $(OBJ_TEST )
114
111
Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ $(BUILD)/genhdr/tests.h:
13
13
(cd $(TOP)/tests; ./run-tests --target=qemu-arm --write-exp)
14
14
$(Q)echo "Generating $@";(cd $(TOP)/tests; ../tools/tinytest-codegen.py) > $@
15
15
16
- $(BUILD)/tinytest.o:
17
- $(Q)$(CC) $(CFLAGS) -DNO_FORKING -o $@ -c $(TINYTEST)/tinytest.c
16
+ $(BUILD)/lib/tinytest/tinytest.o: CFLAGS += -DNO_FORKING
18
17
19
18
$(BUILD)/firmware-test.elf: $(LDSCRIPT) $(ALL_OBJ_TEST)
20
19
$(Q)$(LD) $(LDFLAGS) -o $@ $(ALL_OBJ_TEST) $(LIBS)
Original file line number Diff line number Diff line change 12
12
#include "py/gc.h"
13
13
#include "py/mperrno.h"
14
14
#include "lib/utils/gchelper.h"
15
-
16
- #include "tinytest.h"
17
- #include "tinytest_macros.h"
15
+ #include "lib/tinytest/tinytest.h"
16
+ #include "lib/tinytest/tinytest_macros.h"
18
17
19
18
#define HEAP_SIZE (100 * 1024)
20
19
You can’t perform that action at this time.
0 commit comments