diff --git a/bsp/abstract-machine/Makefile b/bsp/abstract-machine/Makefile index 8ecdb37..9818028 100644 --- a/bsp/abstract-machine/Makefile +++ b/bsp/abstract-machine/Makefile @@ -4,7 +4,7 @@ FILE_TMP = .tmp.$(FILE_MK) RTCONFIG_H = rtconfig.h NAME = rtthread -SRCS = +SRCS = $(shell find src -name "*.c") CFLAGS += -DHAVE_CCONFIG_H -D__RTTHREAD__ -include $(FILE_MK) include $(AM_HOME)/Makefile diff --git a/bsp/abstract-machine/src/init.c b/bsp/abstract-machine/src/init.c new file mode 100644 index 0000000..7742a96 --- /dev/null +++ b/bsp/abstract-machine/src/init.c @@ -0,0 +1,5 @@ +int main() { + extern int entry(void); + entry(); + return 0; +}