Skip to content

Commit

Permalink
WIP bitbake/run.py: Don't generate files/* if given --only (ros-infra…
Browse files Browse the repository at this point in the history
  • Loading branch information
herb-kuta-lge committed Sep 4, 2019
1 parent a4fe779 commit 428b9bd
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions superflore/generators/bitbake/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,21 +140,23 @@ def main():
except KeyError:
err("No package to satisfy key '%s'" % pkg)
sys.exit(1)
yoctoRecipe.generate_ros_distro_inc(
_repo, args.ros_distro, overlay.get_file_revision_logs(
'files/{0}/cache.yaml'.format(args.ros_distro)),
distro.release_platforms, skip_keys)
yoctoRecipe.generate_superflore_datetime_inc(
_repo, args.ros_distro, now)
yoctoRecipe.generate_distro_cache(_repo, args.ros_distro)
yoctoRecipe.generate_rosdep_resolve(_repo, args.ros_distro)
yoctoRecipe.generate_newer_platform_components(
_repo, args.ros_distro)
yoctoRecipe.generate_superflore_change_summary(
_repo, args.ros_distro, overlay.get_change_summary())
if false:

This comment has been minimized.

Copy link
@shr-project

shr-project Sep 5, 2019

Is it correct to always disable this?

This comment has been minimized.

Copy link
@herb-kuta-lge

herb-kuta-lge Sep 5, 2019

Author Owner

Yes. The content of the files/* generated files will be incomplete unless the superflore run is for all of the packages.

But I should fix the typo: false -> False.

This comment has been minimized.

Copy link
@shr-project

shr-project Sep 5, 2019

Then why not delete this whole block?

This comment has been minimized.

Copy link
@herb-kuta-lge

herb-kuta-lge Sep 5, 2019

Author Owner

Because it's WIP...

yoctoRecipe.generate_ros_distro_inc(
_repo, args.ros_distro, overlay.get_file_revision_logs(
'files/{0}/cache.yaml'.format(args.ros_distro)),
distro.release_platforms, skip_keys)
yoctoRecipe.generate_superflore_datetime_inc(
_repo, args.ros_distro, now)
yoctoRecipe.generate_distro_cache(_repo, args.ros_distro)
yoctoRecipe.generate_rosdep_resolve(_repo, args.ros_distro)
yoctoRecipe.generate_newer_platform_components(
_repo, args.ros_distro)
yoctoRecipe.generate_superflore_change_summary(
_repo, args.ros_distro, overlay.get_change_summary())
# Commit changes and file pull request
title = '{{{0}}} Sync to {0}-cache.yaml as of {1}\n'.format(
args.ros_distro, now)
title =\
'{{{0}}} Selected recipes generated from to '\
'{0}-cache.yaml as of {1}\n'.format(args.ros_distro, now)
regen_dict = dict()
regen_dict[args.ros_distro] = args.only
delta = "Regenerated: '%s'\n" % args.only
Expand Down

0 comments on commit 428b9bd

Please sign in to comment.