Lines Matching full:image
1 # Development tool - build-image plugin
8 """Devtool plugin containing the build-image subcommand."""
36 """Entry point for the devtool 'build-image' subcommand."""
38 image = args.imagename
40 if not image:
43 image = sdk_targets[0]
45 if not image:
46 raise DevtoolError('Unable to determine image to build, please specify one')
53 result, outputdir = build_image_task(config, basepath, workspace, image, add_packages)
56 raise DevtoolError('Unable to determine image to build, please specify one')
58 raise DevtoolError('Specified recipe %s is not an image recipe' % image)
62 % (image, outputdir))
65 def build_image_task(config, basepath, workspace, image, add_packages=None, task=None, extra_append… argument
66 # remove <image>.bbappend to make sure setup_tinfoil doesn't
80 rd = parse_recipe(config, tinfoil, image, True)
84 if not bb.data.inherits_class('image', rd):
107 logger.warning('No recipes in workspace, building image %s unmodified', image)
109 logger.warning('No packages to add, building image %s unmodified', image)
115 # include packages from workspace recipes into the image
118 logger.info('Building image %s with the following '
119 'additional packages: %s', image, ' '.join(packages))
137 # run bitbake to build image (or specified task)
140 'bitbake %s %s' % (options, image), watch=True)
153 """Register devtool subcommands from the build-image plugin"""
154 parser = subparsers.add_parser('build-image',
155 help='Build image including workspace recipe packages',
156 description='Builds an image, extending it to include '
159 parser.add_argument('imagename', help='Image recipe to build', nargs='?')
161 'entire workspace, specify packages to be added to the image '