From 949e97aecf9fa0aa899024417054a1eae8c8b593 Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Wed, 21 Oct 2015 14:02:07 -0700 Subject: [PATCH] sysgen: fix copy-and-paste errors and more empty lines While adding private object supports, there were lots of copy and paste. This results in lines writing to kernel_main.c while it should be writing to sysgen.h. So update those lines to write to sysgen.h instead, and add more new lines there so sysgen.h is easier to read. Change-Id: I38496b58d6dc4ed8a50eab4e09ac7bff8c59026f Signed-off-by: Daniel Leung Signed-off-by: Anas Nashif --- scripts/sysgen | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/sysgen b/scripts/sysgen index b1f23dc1983..17cadcb13d7 100755 --- a/scripts/sysgen +++ b/scripts/sysgen @@ -867,6 +867,7 @@ def generate_sysgen_h_obj_ids(): # mutex object ids + sysgen_h_data += "\n" for mutex in mutex_list: name = mutex[0] sysgen_h_data += \ @@ -876,6 +877,7 @@ def generate_sysgen_h_obj_ids(): # semaphore object ids + sysgen_h_data += "\n" for semaphore in sema_list: name = semaphore[0] sysgen_h_data += \ @@ -885,6 +887,7 @@ def generate_sysgen_h_obj_ids(): # fifo object ids + sysgen_h_data += "\n" for fifo in fifo_list: name = fifo[0] sysgen_h_data += \ @@ -894,6 +897,7 @@ def generate_sysgen_h_obj_ids(): # mailbox object ids + sysgen_h_data += "\n" for mbx in mbx_list: name = mbx[0] sysgen_h_data += \ @@ -903,7 +907,7 @@ def generate_sysgen_h_obj_ids(): # pipe object id - kernel_main_c_out("\n") + sysgen_h_data += "\n" for pipe in pipe_list: name = pipe[0]; sysgen_h_data += \ @@ -912,7 +916,7 @@ def generate_sysgen_h_obj_ids(): # memory map object id - kernel_main_c_out("\n") + sysgen_h_data += "\n" for map in map_list: name = map[0]; sysgen_h_data += \ @@ -921,7 +925,7 @@ def generate_sysgen_h_obj_ids(): # task object id - kernel_main_c_out("\n") + sysgen_h_data += "\n" for task in task_list: name = task[0]; sysgen_h_data += \