aboutsummaryrefslogtreecommitdiff
path: root/init-yocto-directories.sh
blob: 014816aa18cbb0393091e2e0e4c47676535d5667 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Info: this is just a random SH script to create /opt/yocto directories if they don't exist
# This is to make cache directories for yocto builds
# This is not needed for the kas build system, but it is highly recommended to have these directories created for yocto builds

#!/bin/sh
YOCTO_DIR=/opt/yocto

for dir in sstate-cache downloads builds tmp; do
    mkdir -p "$YOCTO_DIR/$dir"
    chown -R "1000:1000" "$YOCTO_DIR/$dir"
    chmod -R u+rwx "$YOCTO_DIR/$dir"
done
echo "Yocto directories created in $YOCTO_DIR"