From 41ff3f9e558d2abf619c3584c59c36c0735d3288 Mon Sep 17 00:00:00 2001 From: Dominik Wild Date: Tue, 19 Jan 2021 17:43:43 +0100 Subject: 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 --- classes/image_repo_manifest.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 buildinfo_manifest () { repotool=`which repo || true` if [ -n "$repotool" ]; then - python3 $repotool manifest --revision-as-HEAD -o ${IMAGE_ROOTFS}${sysconfdir}/manifest.xml || bbwarn "Android repo tool failed to run; manifest not copied" + cd ${THISDIR} && python3 $repotool manifest --revision-as-HEAD -o ${IMAGE_ROOTFS}${sysconfdir}/manifest.xml || bbwarn "Android repo tool failed to run; manifest not copied" else bbwarn "Android repo tool not found; manifest not copied." fi -- cgit v1.2.3-54-g00ecf