summaryrefslogtreecommitdiff
path: root/scripts/sysgen
diff options
context:
space:
mode:
authorBenjamin Walsh <benjamin.walsh@windriver.com>2016-11-03 14:54:17 -0400
committerAnas Nashif <nashif@linux.intel.com>2016-11-03 23:06:42 +0000
commit5ce3be75aa565567d221e34613f8999eb5ab073e (patch)
tree685a1c282d24cd93c1c070c838cb18998be3acc2 /scripts/sysgen
parent5c2731f27fa2f9e43ec43e1080d327e3a94d9fbf (diff)
unified/sysgen: do not generate TICK_EVENT event
Sysgen was still generating the TICK_EVENT event needed for the microkernel system clock timer driver in the unified kernel. That ended up dragging in alerts all the time, which in turns drag in the system work queue, which drags in the work queue, which drags in FIFOs. This shaves 1052 bytes of RAM and 860 bytes of ROM in systems that don't need these components (on x86 with IAMCU). Change-Id: Ica56857da2b6444181f10e83f6c986d092aa967b Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
Diffstat (limited to 'scripts/sysgen')
-rwxr-xr-xscripts/sysgen9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/sysgen b/scripts/sysgen
index dbd61926f..0769b3986 100755
--- a/scripts/sysgen
+++ b/scripts/sysgen
@@ -598,10 +598,11 @@ def kernel_main_c_events():
# event descriptors
# pre-defined event for timer
- if (num_timers > 0):
- kernel_main_c_out("DEFINE_EVENT(TICK_EVENT, _k_ticker);\n")
- else:
- kernel_main_c_out("DEFINE_EVENT(TICK_EVENT, NULL);\n")
+ if kernel_type == 'micro':
+ if (num_timers > 0):
+ kernel_main_c_out("DEFINE_EVENT(TICK_EVENT, _k_ticker);\n")
+ else:
+ kernel_main_c_out("DEFINE_EVENT(TICK_EVENT, NULL);\n")
# project-specific events
for event in event_list: