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>
This commit is contained in:
Benjamin Walsh 2016-11-03 14:54:17 -04:00 committed by Anas Nashif
commit 5ce3be75aa

View file

@ -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: