Lines Matching full:build

30 west build [-h] [-b BOARD[@REV]]] [-d BUILD_DIR]
52 A "pristine" build directory is empty. The -p option controls
53 whether the build directory is made pristine before the build
56 guess if a pristine build may be necessary."""
59 return config.get('build', option, fallback=fallback)
62 return config.getboolean('build', option, fallback=fallback)
69 class Build(Forceable): class
72 super(Build, self).__init__(
73 'build',
80 '''Source directory for the build, or None on error.'''
83 '''Final build directory used to run the build, or None on error.'''
86 '''True if the build directory was created; False otherwise.'''
92 build system generated by CMake may also update itself due to
96 '''Final parsed CMake cache for the build, or None on error.'''
99 self.inf('-- west build: ' + msg, colorize=True)
113 help='board to build for with optional board revision')
116 parser.add_argument('-d', '--build-dir',
117 help='build directory to create or use')
120 group = parser.add_argument_group('cmake and build tool')
124 help="just run cmake; don't build (implies -c)")
126 help='''execute build tool (make or ninja) only for
129 help='''run build system target TARGET
132 help='''Build based on test data in testcase.yaml
139 group.add_argument('-o', '--build-opt', default=[], action='append',
140 help='''options to pass to the build tool
144 help="just print build commands; don't run them")
176 help='''create multi domain build system''')
178 help='''do not create multi domain build system
185 help='pristine build folder setting')
230 'treating unknown build.pristine value "{}" as "never"'.
288 # This happens if there's a build error from a previous run.
370 # are not supported by 'west build'
371 self.wrn('"west build" does not support '
417 # Build the final argument list
445 # If we created the build directory, we must run CMake.
446 self.dbg('setting up build directory', level=Verbosity.DBG_EXTREME)
454 self.die('Unable to determine a default build folder. Check '
455 'your build.dir-fmt configuration option')
459 self.die('build directory {} exists and is not a directory'.
470 # implicitly from the build directory's CMake cache, or using the
485 # This really ought to be there. The build directory
487 self.die('build directory', self.build_dir,
497 self.die('source and build directory {} cannot be the same; '
498 'use --build-dir {} to specify a build directory'.
504 'it looks like {srcrel} is a build directory: '
505 'did you mean --build-dir {srcrel} instead?'.
511 'want to build? (Use -s SOURCE_DIR to specify '
516 # Sanity check the build configuration.
518 self.dbg('sanity checking the build', level=Verbosity.DBG_EXTREME)
525 # This happens sometimes when a build system is not
533 # an older build folder, this still requires pristine.
544 # If the build directory specifies a source app, make sure it's
551 'Build directory "{}" is for application "{}", but source '
553 'or use --build-dir to set another build directory'.
564 # run pristine on the build, invalidating the cached
572 '"west config build.board <BOARD>", or set '
580 'Build directory {} targets board {}, but board {} was specified. '
581 '(Clean the directory, use --pristine, or use --build-dir to '
591 # Tricky corner-case: The user has not specified a build folder but
601 self.wrn('This looks like a fresh build and BOARD is unknown;',
605 "'west config build.board_warn false'")
610 self._banner('generating a build system')
647 # west build -- -DOVERLAY_CONFIG=relative-path.conf
657 self._banner('making build dir {} pristine'.format(self.build_dir))
660 'Zephyr build system')
689 # If no domain is specified, we just build top build dir as that
690 # will build all domains.
705 # drop this nonsense and just run "cmake --build BUILD -v".