bsp,abstract-machine: add main() to call entry()

* this flow is similar with qemu-riscv-virt64
* there is still a lot of linking error
This commit is contained in:
Zihao Yu 2023-05-24 12:33:05 +08:00
parent 1f4c0995bf
commit 0369aa35c7
2 changed files with 6 additions and 1 deletions

View file

@ -4,7 +4,7 @@ FILE_TMP = .tmp.$(FILE_MK)
RTCONFIG_H = rtconfig.h RTCONFIG_H = rtconfig.h
NAME = rtthread NAME = rtthread
SRCS = SRCS = $(shell find src -name "*.c")
CFLAGS += -DHAVE_CCONFIG_H -D__RTTHREAD__ CFLAGS += -DHAVE_CCONFIG_H -D__RTTHREAD__
-include $(FILE_MK) -include $(FILE_MK)
include $(AM_HOME)/Makefile include $(AM_HOME)/Makefile

View file

@ -0,0 +1,5 @@
int main() {
extern int entry(void);
entry();
return 0;
}