summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Wild <dominik.wild@glutz.com>2021-01-19 17:43:43 +0100
committerDominik Wild <dominik.wild@glutz.com>2021-01-19 17:54:55 +0100
commit41ff3f9e558d2abf619c3584c59c36c0735d3288 (patch)
treef235c280ddd0afcb3646e90f726a959a0071c57f
parent016854946467909fe97b7b6f29c7b749098af6ad (diff)
downloadmeta-updater-41ff3f9e558d2abf619c3584c59c36c0735d3288.tar.gz
image_repo_manifest.bbclass: Improvement for builds outside the .repo directory
The repo tool searches up the directory tree to find the .repo directory, which doesn't work in a separated build directory. Signed-off-by: Dominik Wild <dominik.wild@glutz.com>
-rw-r--r--classes/image_repo_manifest.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/image_repo_manifest.bbclass b/classes/image_repo_manifest.bbclass
index 12f56f0..3e4ecbb 100644
--- a/classes/image_repo_manifest.bbclass
+++ b/classes/image_repo_manifest.bbclass
@@ -15,7 +15,7 @@ inherit python3native
15buildinfo_manifest () { 15buildinfo_manifest () {
16 repotool=`which repo || true` 16 repotool=`which repo || true`
17 if [ -n "$repotool" ]; then 17 if [ -n "$repotool" ]; then
18 python3 $repotool manifest --revision-as-HEAD -o ${IMAGE_ROOTFS}${sysconfdir}/manifest.xml || bbwarn "Android repo tool failed to run; manifest not copied" 18 cd ${THISDIR} && python3 $repotool manifest --revision-as-HEAD -o ${IMAGE_ROOTFS}${sysconfdir}/manifest.xml || bbwarn "Android repo tool failed to run; manifest not copied"
19 else 19 else
20 bbwarn "Android repo tool not found; manifest not copied." 20 bbwarn "Android repo tool not found; manifest not copied."
21 fi 21 fi