Lines Matching full:build

26 west build [-h] [-b BOARD[@REV]]] [-d BUILD_DIR]
45 A "pristine" build directory is empty. The -p option controls
46 whether the build directory is made pristine before the build
49 guess if a pristine build may be necessary."""
52 log.inf('-- west build: ' + msg, colorize=True)
55 return config.get('build', option, fallback=fallback)
58 return config.getboolean('build', option, fallback=fallback)
65 class Build(Forceable): class
68 super(Build, self).__init__(
69 'build',
76 '''Source directory for the build, or None on error.'''
79 '''Final build directory used to run the build, or None on error.'''
82 '''True if the build directory was created; False otherwise.'''
88 build system generated by CMake may also update itself due to
92 '''Final parsed CMake cache for the build, or None on error.'''
106 help='board to build for with optional board revision')
109 parser.add_argument('-d', '--build-dir',
110 help='build directory to create or use')
113 group = parser.add_argument_group('cmake and build tool')
117 help="just run cmake; don't build (implies -c)")
119 help='''execute build tool (make or ninja) only for
122 help='''run build system target TARGET
125 help='''Build based on test data in testcase.yaml
132 group.add_argument('-o', '--build-opt', default=[], action='append',
133 help='''options to pass to the build tool
137 help="just print build commands; don't run them")
148 help='''create multi domain build system''')
150 help='''do not create multi domain build system
157 help='pristine build folder setting')
202 'treating unknown build.pristine value "{}" as "never"'.
242 # This happens if there's a build error from a previous run.
359 # Build the final argument list
387 # If we created the build directory, we must run CMake.
388 log.dbg('setting up build directory', level=log.VERBOSE_EXTREME)
396 log.die('Unable to determine a default build folder. Check '
397 'your build.dir-fmt configuration option')
401 log.die('build directory {} exists and is not a directory'.
412 # implicitly from the build directory's CMake cache, or using the
420 # This really ought to be there. The build directory
422 log.die('build directory', self.build_dir,
432 log.die('source and build directory {} cannot be the same; '
433 'use --build-dir {} to specify a build directory'.
439 'it looks like {srcrel} is a build directory: '
440 'did you mean --build-dir {srcrel} instead?'.
446 'want to build? (Use -s SOURCE_DIR to specify '
451 # Sanity check the build configuration.
453 log.dbg('sanity checking the build', level=log.VERBOSE_EXTREME)
460 # This happens sometimes when a build system is not
468 # an older build folder, this still requires pristine.
479 # If the build directory specifies a source app, make sure it's
486 'Build directory "{}" is for application "{}", but source '
488 'or use --build-dir to set another build directory'.
499 # run pristine on the build, invalidating the cached
507 '"west config build.board <BOARD>", or set '
515 'Build directory {} targets board {}, but board {} was specified. '
516 '(Clean the directory, use --pristine, or use --build-dir to '
526 # Tricky corner-case: The user has not specified a build folder but
536 log.wrn('This looks like a fresh build and BOARD is unknown;',
540 "'west config build.board_warn false'")
545 _banner('generating a build system')
573 # west build -- -DOVERLAY_CONFIG=relative-path.conf
583 _banner('making build dir {} pristine'.format(self.build_dir))
586 'Zephyr build system')
615 # If no domain is specified, we just build top build dir as that
616 # will build all domains.
631 # drop this nonsense and just run "cmake --build BUILD -v".