Skip to content
  • Gregory Nutt's avatar
    apps/builtin: better fix for building with parallel make · 7b925ccb
    Gregory Nutt authored
    
    
    Build-server sometimes fails 'make -j24' with:
    
     In file included from builtin_list.c:62:0:
     builtin_list.h:1:46: error: 'ts_engine_main' undeclared here (not in a function)
      { "ts_engine", SCHED_PRIORITY_DEFAULT, 2048, ts_engine_main },
    
    or sometimes silently succeeds but generates builds that contain
    a random subset of configured NuttX applications. There are two
    root causes for this:
    
    1) Recipes for building builtin_list.h and builtin_proto.h are not
       linearizable.
    2) Nothing ensures that 'make context' is run first for apps/builtin
    
    This patch addresses both issues.
    
    Signed-off-by: default avatarJuha Niskanen <juha.niskanen@haltian.com>
    7b925ccb