commit | 202bef4b852d447602e2c600af7d923009e64b90 | [log] [tgz] |
---|---|---|
author | James Robinson <jamesr@google.com> | Tue Nov 20 17:36:17 2018 -0800 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Mon Nov 26 19:38:52 2018 +0000 |
tree | eaabc6985a179ef9be4754b0f1cfca9aeb0e7d25 | |
parent | 3e611ca12b381dc2a409cb18c67b66355bf787cf [diff] |
[set] Guess product and board config from short names This guesses the product and board configurations based on short names. The heuristic it uses is that it matches the first entry of the form $petal/{products,boards}/$shortname.gni starting at the current guessed petal and going down through the petals in order until it finds a matching file, or printing an error and exiting it if can't. This is hopefully more ergonomic for developers than knowing exactly which repository defines which product and board set. Test: 'fx set x64 --product base --board frank' with various checkout types. Change-Id: I89c747b952bb89ca27d46c38c934f56d21dc5bd0
This repository is for scripts useful when hacking on Fuchsia. This repository should contain scripts that perform tasks spanning multiple repositories. Scripts that only operate within a single repository should live in the relevant repository.
The push-package.py script pushes the files listed in the given manifests files. No checking is performed for incremental changes.
The sample command lines below can be used to build Modular and then push those files to the default device. This assumes you have already booted your device with a version of Fuchsia that contains the most recent version of all other packages. This command line uses the “system_manifest” file from each of the modular directories, such as modular, modular_dev, and modular_tests.
cd $FUCHSIA_DIR fx build peridot:modular_all scripts/push-package.py out/debug-x64/package/modular*/system_manifest
fx publish
will take a package from the build and create a Fuchsia package manager package from a build package. It will then add the package to a local update respository which, by default, is put at ${FUCHSIA_BUILD_DIR}/amber-files
. It will also add the package content files to the update repository and name these file after their Merkle Root. If a package name is supplied to fx publish
, only that package will be processed. If no name is supplied, all the packages made by the build will be included.