[RTEMS Project] #4474: module.h not regenarating

RTEMS trac trac at rtems.org
Sun Jul 18 13:48:58 UTC 2021


#4474: module.h not regenarating
-------------------------+--------------------
  Reporter:  Husni Faiz  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  normal      |  Milestone:
 Component:  build       |    Version:
  Severity:  normal      |   Keywords:
Blocked By:              |   Blocking:
-------------------------+--------------------
 When I built the libbsd with some modules enabled and then agian disable
 the modules and rebuild the LibBSD without a clean, the disabled
 components with the preprocessor guard are still included.

 This is because the auto generated module.h header file doesn't regenerate
 after updating the buildset in the next build. So the next build use the
 same header generated for the first time.


 == Example


 {{{
 #if !defined(__rtems__) || defined(RTEMS_BSD_MODULE_DEV_USB_TEMPLATE)

 some code here

 #endif
 }}}

 If I enable the **dev_usb_template** module and build the LibBSD it will
 include the code inside the pre-processor guard. This is expected
 behaviour.But If turn the module **off** and rebuild the LibBSD, it
 doesn't exclude the code inside the preprocessor guard.


 == Workarround

 Do a **waf clean** before **waf** after changing the buildset files.

--
Ticket URL: <http://devel.rtems.org/ticket/4474>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list