RTEMS | waf: Track cpuopts.h as compilation dependency (!1093)

Sebastian Huber (@sebhub) gitlab at rtems.org
Mon May 18 00:24:55 UTC 2026




Sebastian Huber commented on a discussion on wscript: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1093#note_150395

 >      def cc(self, bld, bic, source, target=None, deps=[], cppflags=[]):
 >          if target is None:
 >              target = os.path.splitext(source)[0] + ".o"
 > +
 > +        cpuopts = bld.bldnode.make_node("cpukit/include/rtems/score/cpuopts.h")

I was able to fix the build using hard-coded dependencies in the tests using tar archives, see !1249.

I don't think there is an issue in waf itself.

For the normal compilation tasks, we use the `gccdeps.py` plugin. However, the features provided by this plugin are not available for the `Item.cc()` and `Item.cxx()` rules in `wscript`. Someone with enough waf knowledge could probably fix this, but I don't know how to do it.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1093#note_150395
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260518/179088c0/attachment-0001.htm>


More information about the bugs mailing list