[RTEMS Project] #3846: Build system does not track the dependencies of start.o files

RTEMS trac trac at rtems.org
Wed Dec 18 09:36:04 UTC 2019


#3846: Build system does not track the dependencies of start.o files
------------------------------+-----------------------------
  Reporter:  Sebastian Huber  |      Owner:  Sebastian Huber
      Type:  defect           |     Status:  assigned
  Priority:  normal           |  Milestone:  6.1
 Component:  build            |    Version:  6
  Severity:  normal           |   Keywords:
Blocked By:                   |   Blocking:
------------------------------+-----------------------------
 This defect relates to the new waf based build system.

 Most start.o are generated from start.S files which use the C
 preprocessor. The start.o files are not re-generated if header files (e.g.
 cpuopts.h, bspopts.h) change. The problem is that the automatic dependency
 generation via the GCC -MMD flags doesn't work with the current asm rule:
 {{{#!python
     def asm(self, bld, bic, source, target=None, deps=[], cppflags=[]):
         if target is None:
             target = os.path.splitext(source)[0] + ".o"
         bld(
             asflags=self.data["asflags"],
             before=["cstlib"],
             cppflags=cppflags + self.data["cppflags"],
             features="asm c",
             includes=bic.includes + self.data["includes"],
             rule="${CC} ${ASFLAGS} ${CPPFLAGS} ${DEFINES_ST:DEFINES}
 ${CPPPATH_ST:INCPATHS} -c ${SRC[0]} -o ${TGT}",
             source=[source] + deps,
             target=target,
         )
         return target
 }}}

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


More information about the bugs mailing list