[hipl-commit] [tiny] Rev 3715: Improved module processing.

  • From: Tim Just <tim.just@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Thu, 25 Mar 2010 17:20:49 +0200

Committer: Tim Just <tim.just@xxxxxxxxxxxxxx>
Date: 25/03/2010 at 17:20:49
Revision: 3715
Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: tiny

Log:
  Improved module processing.
  
  If no modules are found the array of module names is defined as empty.
  Furthermore the srcdir prefix is considered during module info file
  parsing.

Modified:
  M  process_modules.py

=== modified file 'process_modules.py'
--- process_modules.py  2010-03-25 14:13:45 +0000
+++ process_modules.py  2010-03-25 15:18:59 +0000
@@ -258,7 +258,8 @@
                 else:
                     hdr_file.write('\n\ntypedef int (*pt2Function)(void);\n')
                     hdr_file.write('\nconst int num_modules_' + current_app + 
' = 0;')
-
+                    hdr_file.write('\n\nconst char *modules_' + current_app)
+                    hdr_file.write('[0] = {};')
                     hdr_file.write('\n\nstatic const pt2Function ' + 
current_app)
                     hdr_file.write('_init_functions[0] = {};')
 
@@ -336,7 +337,7 @@
      disabled_modules) = parse_info_file(os.path.join(srcdir, INFO_FILE_NAME),
                                          disabled_modules)
 
-    module_info  = read_module_info(MODULES_DIR,
+    module_info  = read_module_info(os.path.join(srcdir, MODULES_DIR),
                                     disabled_modules,
                                     applications,
                                     compile_type)

Other related posts:

  • » [hipl-commit] [tiny] Rev 3715: Improved module processing. - Tim Just