summaryrefslogtreecommitdiffstats
path: root/meta/classes/populate_sdk_base.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/populate_sdk_base.bbclass')
-rw-r--r--meta/classes/populate_sdk_base.bbclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index 1c151d7186..2bff41f9e6 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -118,7 +118,7 @@ fakeroot create_shar() {
118 118
119DEFAULT_INSTALL_DIR="${SDKPATH}" 119DEFAULT_INSTALL_DIR="${SDKPATH}"
120 120
121echo -n "Enter target directory for Poky SDK (default: $DEFAULT_INSTALL_DIR): " 121printf "Enter target directory for Poky SDK (default: $DEFAULT_INSTALL_DIR): "
122read target_sdk_dir 122read target_sdk_dir
123 123
124if [ "$target_sdk_dir" = "" ]; then 124if [ "$target_sdk_dir" = "" ]; then
@@ -128,7 +128,7 @@ fi
128eval target_sdk_dir=$target_sdk_dir 128eval target_sdk_dir=$target_sdk_dir
129target_sdk_dir=$(readlink -m $target_sdk_dir) 129target_sdk_dir=$(readlink -m $target_sdk_dir)
130 130
131echo -n "You are about to install Poky SDK to \"$target_sdk_dir\". Proceed[Y/n]?" 131printf "You are about to install Poky SDK to \"$target_sdk_dir\". Proceed[Y/n]?"
132read answer 132read answer
133 133
134if [ "$answer" = "" ]; then 134if [ "$answer" = "" ]; then
@@ -148,11 +148,11 @@ fi
148 148
149payload_offset=$(($(grep -na -m1 "^MARKER:$" $(basename $0)|cut -d':' -f1) + 1)) 149payload_offset=$(($(grep -na -m1 "^MARKER:$" $(basename $0)|cut -d':' -f1) + 1))
150 150
151echo -n "Extracting SDK..." 151printf "Extracting SDK..."
152tail -n +$payload_offset $(basename $0) | tar xj --strip-components=4 -C $target_sdk_dir 152tail -n +$payload_offset $(basename $0) | tar xj --strip-components=4 -C $target_sdk_dir
153echo "done" 153echo "done"
154 154
155echo -n "Setting it up..." 155printf "Setting it up..."
156# fix environment paths 156# fix environment paths
157env_setup_script=$(find $target_sdk_dir -name "environment-setup-${REAL_MULTIMACH_TARGET_SYS}") 157env_setup_script=$(find $target_sdk_dir -name "environment-setup-${REAL_MULTIMACH_TARGET_SYS}")
158sed -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:g" -i $env_setup_script 158sed -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:g" -i $env_setup_script