diff options
author | Ming Liu <liu.ming50@gmail.com> | 2020-01-26 22:14:20 +0100 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2020-02-28 13:42:02 +0100 |
commit | b736c8524b85f3e2d3e21fd77c4b5587316b665f (patch) | |
tree | 45da63deecb346724966b53bd2a2d7cf7496866a /classes/target_version_example.bbclass | |
parent | 7485d0d2ded4abb3dd84d4e5f30f792eac575740 (diff) | |
download | meta-updater-b736c8524b85f3e2d3e21fd77c4b5587316b665f.tar.gz |
meta: move HOSTTOOLS definitions to sota.conf.inc
HOSTTOOLS and HOSTTOOLS_NONFATAL are global variables that being
handled in base_eventhandler, so they must be defined in config files
or in INHERIT classes or classes being inherited by base.bbclass, or
else we might run into the following problems:
```
$ bitbake pkgname
$ bitbake imgname
```
the HOSTTOOLS and HOSTTOOLS_NONFATAL in the above image recipe, for
instance, 'repo python' in image_repo_manifest.bbclass, they would not
be copied to HOSTTOOLS_DIR.
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Diffstat (limited to 'classes/target_version_example.bbclass')
-rw-r--r-- | classes/target_version_example.bbclass | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/classes/target_version_example.bbclass b/classes/target_version_example.bbclass index ef119fb..c0b5aec 100644 --- a/classes/target_version_example.bbclass +++ b/classes/target_version_example.bbclass | |||
@@ -1,7 +1,5 @@ | |||
1 | # Writes target version to be used by garage-sign | 1 | # Writes target version to be used by garage-sign |
2 | 2 | ||
3 | HOSTTOOLS += " git " | ||
4 | |||
5 | deploy_target_version () { | 3 | deploy_target_version () { |
6 | version=$(git --git-dir=${METADIR}/.repo/manifests/.git/ rev-parse HEAD) | 4 | version=$(git --git-dir=${METADIR}/.repo/manifests/.git/ rev-parse HEAD) |
7 | echo -n ${version} > ${STAGING_DATADIR_NATIVE}/target_version | 5 | echo -n ${version} > ${STAGING_DATADIR_NATIVE}/target_version |