From 60e47a730f9a0c0eb20ccd067954009c192418c9 Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Fri, 7 Mar 2014 19:06:54 -0800 Subject: make the common runtime optional In order to achieve really tiny firmwares, make our runtime (tasks, hooks, muxed timers, GPIO abstraction ...) optional. Add 2 new build options for it : CONFIG_COMMON_RUNTIME and CONFIG_COMMON_GPIO which are enabled by default, and ensure all the source files are built according to the right configuration variable. Signed-off-by: Vincent Palatin BRANCH=none BUG=none TEST=make buildall build a minimal board with no runtime. Change-Id: Icb621cbe0a75b3a320cb53c3267d6e578cd3c32f Reviewed-on: https://chromium-review.googlesource.com/189403 Reviewed-by: Vic Yang Commit-Queue: Vincent Palatin Tested-by: Vincent Palatin --- include/task.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/task.h') diff --git a/include/task.h b/include/task.h index 4cbd60b857..723c6f0ad6 100644 --- a/include/task.h +++ b/include/task.h @@ -205,6 +205,10 @@ struct irq_priority { * Implement the DECLARE_IRQ(irq, routine, priority) macro which is * a core specific helper macro to declare an interrupt handler "routine". */ +#ifdef CONFIG_COMMON_RUNTIME #include "irq_handler.h" +#else +#define DECLARE_IRQ(irq, routine, priority) +#endif #endif /* __CROS_EC_TASK_H */ -- cgit v1.2.1