fix: hello word compile error

fix: hello word compile error

https://atomgit.com/tobudos/kernel/change/1  

squash 合并:

* fix: hello word compile error
This commit is contained in:
Han Chen 2024-01-11 09:36:40 +00:00
parent f468283f6e
commit a5b85d6017
3 changed files with 14 additions and 7 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
**/build/
*.o
*.a
.DS_Store

View File

@ -9,15 +9,13 @@ set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
set(TINY_ROOT ../../../)
include_directories(${TINY_ROOT}/osal/cmsis_os)
include_directories(${TINY_ROOT}/kernel/core/include)
include_directories(${TINY_ROOT}/kernel/evtdrv/include)
include_directories(${TINY_ROOT}/kernel/hal/include)
include_directories(${TINY_ROOT}/kernel/pm/include)
include_directories(${TINY_ROOT}/core/include)
include_directories(${TINY_ROOT}/hal/include)
include_directories(${TINY_ROOT}/pm/include)
set(CMSIS_SRCS ${TINY_ROOT}/osal/cmsis_os/cmsis_os.c)
aux_source_directory(${TINY_ROOT}/kernel/core CORE_SRCS)
aux_source_directory(${TINY_ROOT}/kernel/evtdrv EVTDRV_SRCS)
aux_source_directory(${TINY_ROOT}/kernel/pm PM_SRCS)
aux_source_directory(${TINY_ROOT}/core CORE_SRCS)
aux_source_directory(${TINY_ROOT}/pm PM_SRCS)
set(ARCH_ROOT ${TINY_ROOT}/arch/linux)

View File

@ -47,7 +47,12 @@
#define SIG_SUSPEND SIGUSR1
#define SIG_RESUME SIGUSR2
#ifdef __APPLE__
#define SIG_CONTEXT_SWITCH SIGIO
#warning this signal just for compile pass on macOS, can not real run
#else
#define SIG_CONTEXT_SWITCH SIGRTMIN
#endif
#define SIG_TICK SIGALRM
#define TIMER_TYPE ITIMER_REAL