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.
This commit is contained in:
2025-01-19 17:56:27 +01:00
parent e915e9a3af
commit 3e510b0f91

View File

@@ -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"