mirror of
https://github.com/tuxbox-neutrino/buildenv.git
synced 2025-08-26 15:02:58 +02:00
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:
2
init.sh
2
init.sh
@@ -152,7 +152,7 @@ fi
|
|||||||
|
|
||||||
## Layer sources
|
## Layer sources
|
||||||
YOCTO_GIT_URL="https://git.yoctoproject.org/git/poky"
|
YOCTO_GIT_URL="https://git.yoctoproject.org/git/poky"
|
||||||
POKY="poky"
|
POKY="$(basename $YOCTO_GIT_URL)"
|
||||||
POKY_NAME="$IMAGE_VERSION" #TODO
|
POKY_NAME="$IMAGE_VERSION" #TODO
|
||||||
BUILD_ROOT_DIR="$BASEPATH/$POKY-$IMAGE_VERSION"
|
BUILD_ROOT_DIR="$BASEPATH/$POKY-$IMAGE_VERSION"
|
||||||
BUILD_ROOT="$BUILD_ROOT_DIR/build"
|
BUILD_ROOT="$BUILD_ROOT_DIR/build"
|
||||||
|
Reference in New Issue
Block a user