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:
parent
f468283f6e
commit
a5b85d6017
|
@ -0,0 +1,4 @@
|
||||||
|
**/build/
|
||||||
|
*.o
|
||||||
|
*.a
|
||||||
|
.DS_Store
|
|
@ -9,15 +9,13 @@ set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
|
||||||
set(TINY_ROOT ../../../)
|
set(TINY_ROOT ../../../)
|
||||||
|
|
||||||
include_directories(${TINY_ROOT}/osal/cmsis_os)
|
include_directories(${TINY_ROOT}/osal/cmsis_os)
|
||||||
include_directories(${TINY_ROOT}/kernel/core/include)
|
include_directories(${TINY_ROOT}/core/include)
|
||||||
include_directories(${TINY_ROOT}/kernel/evtdrv/include)
|
include_directories(${TINY_ROOT}/hal/include)
|
||||||
include_directories(${TINY_ROOT}/kernel/hal/include)
|
include_directories(${TINY_ROOT}/pm/include)
|
||||||
include_directories(${TINY_ROOT}/kernel/pm/include)
|
|
||||||
|
|
||||||
set(CMSIS_SRCS ${TINY_ROOT}/osal/cmsis_os/cmsis_os.c)
|
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}/core CORE_SRCS)
|
||||||
aux_source_directory(${TINY_ROOT}/kernel/evtdrv EVTDRV_SRCS)
|
aux_source_directory(${TINY_ROOT}/pm PM_SRCS)
|
||||||
aux_source_directory(${TINY_ROOT}/kernel/pm PM_SRCS)
|
|
||||||
|
|
||||||
set(ARCH_ROOT ${TINY_ROOT}/arch/linux)
|
set(ARCH_ROOT ${TINY_ROOT}/arch/linux)
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,12 @@
|
||||||
|
|
||||||
#define SIG_SUSPEND SIGUSR1
|
#define SIG_SUSPEND SIGUSR1
|
||||||
#define SIG_RESUME SIGUSR2
|
#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
|
#define SIG_CONTEXT_SWITCH SIGRTMIN
|
||||||
|
#endif
|
||||||
#define SIG_TICK SIGALRM
|
#define SIG_TICK SIGALRM
|
||||||
#define TIMER_TYPE ITIMER_REAL
|
#define TIMER_TYPE ITIMER_REAL
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue