arch/arm/common: add directives to compile up_schedyield logic
authorOleg Lyovin <o.lyovin@partner.samsung.com>
Fri, 21 Jul 2017 14:04:38 +0000 (17:04 +0300)
committerOleg Lyovin <o.lyovin@partner.samsung.com>
Wed, 9 Aug 2017 14:44:21 +0000 (17:44 +0300)
* When option CONFIG_SCHED_YIELD_OPTIMIZATION is enabled, scheduler's
  code enable yield feature which requires up_schedyield to be
  implemented. But there was missing logic in arch Makefile for
  compiling up_schedyield.c file.

Signed-off-by: Oleg Lyovin <o.lyovin@partner.samsung.com>
os/arch/arm/src/s5j/Make.defs

index 51c3b04..eb1af77 100644 (file)
@@ -102,6 +102,10 @@ ifeq ($(CONFIG_ARMV7M_MPU),y)
 CMN_CSRCS += arm_mpu.c
 endif
 
+ifeq ($(CONFIG_SCHED_YIELD_OPTIMIZATION),y)
+CMN_CSRCS += up_schedyield.c
+endif
+
 ifeq ($(CONFIG_BUILD_KERNEL),y)
 CMN_CSRCS += up_task_start.c up_pthread_start.c arm_signal_dispatch.c
 endif