Most of the functions for this was declared in a top level lk/ include space, so go ahead and move it there. A few exceptions: - Moved spin() over to platform/time.h and platform/time.c since the function more logically belongs to platform/time.h. Any users of spin() will need to update their headers to include platform/time.h instead. - Renamed spin_cycles() to arm_cm_spin_cycles() and moved over into arm/cm.h since it is currently defined in arch/arm-m and only used for targets that implicitly are for arm-m.
29 lines
475 B
Makefile
29 lines
475 B
Makefile
LOCAL_DIR := $(GET_LOCAL_DIR)
|
|
|
|
MODULE := $(LOCAL_DIR)
|
|
|
|
MODULE_DEPS := \
|
|
lib/libc \
|
|
lib/heap
|
|
|
|
MODULE_SRCS := \
|
|
$(LOCAL_DIR)/debug.c \
|
|
$(LOCAL_DIR)/event.c \
|
|
$(LOCAL_DIR)/init.c \
|
|
$(LOCAL_DIR)/mutex.c \
|
|
$(LOCAL_DIR)/thread.c \
|
|
$(LOCAL_DIR)/timer.c \
|
|
$(LOCAL_DIR)/semaphore.c \
|
|
$(LOCAL_DIR)/mp.c \
|
|
$(LOCAL_DIR)/port.c
|
|
|
|
ifeq ($(WITH_KERNEL_VM),1)
|
|
MODULE_DEPS += kernel/vm
|
|
else
|
|
MODULE_DEPS += kernel/novm
|
|
endif
|
|
|
|
MODULE_OPTIONS := extra_warnings
|
|
|
|
include make/module.mk
|