From 3e510b0f919ca057d5541447256699358dafbef5 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 19 Jan 2025 17:56:27 +0100 Subject: [PATCH] init.sh: Dynamically determine 'poky' basename from YOCTO_GIT_URL - Replaced hardcoded 'poky' with `$(basename $YOCTO_GIT_URL)` for better maintainability. - Ensured compatibility with dynamically fetched URLs for Yocto and potential future sources. --- init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.sh b/init.sh index 71344d1..62684d7 100755 --- a/init.sh +++ b/init.sh @@ -152,7 +152,7 @@ fi ## Layer sources YOCTO_GIT_URL="https://git.yoctoproject.org/git/poky" -POKY="poky" +POKY="$(basename $YOCTO_GIT_URL)" POKY_NAME="$IMAGE_VERSION" #TODO BUILD_ROOT_DIR="$BASEPATH/$POKY-$IMAGE_VERSION" BUILD_ROOT="$BUILD_ROOT_DIR/build"