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:
parent
1f4c0995bf
commit
0369aa35c7
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||||
|
|
5
bsp/abstract-machine/src/init.c
Normal file
5
bsp/abstract-machine/src/init.c
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
int main() {
|
||||||
|
extern int entry(void);
|
||||||
|
entry();
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue