summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/populate_sdk_base.bbclass15
1 files changed, 12 insertions, 3 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index a1c45ad70a..5e4ed51d4a 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -132,11 +132,20 @@ else
132 target_sdk_dir=$(readlink -m $target_sdk_dir) 132 target_sdk_dir=$(readlink -m $target_sdk_dir)
133fi 133fi
134 134
135printf "You are about to install the SDK to \"$target_sdk_dir\". Proceed[Y/n]?" 135if [ -e "$target_sdk_dir/environment-setup-${REAL_MULTIMACH_TARGET_SYS}" ]; then
136 echo "The directory \"$target_sdk_dir\" already contains a SDK for this architecture."
137 printf "If you continue, existing files will be overwritten! Proceed[y/N]?"
138
139 default_answer="n"
140else
141 printf "You are about to install the SDK to \"$target_sdk_dir\". Proceed[Y/n]?"
142
143 default_answer="y"
144fi
136read answer 145read answer
137 146
138if [ "$answer" = "" ]; then 147if [ "$answer" = "" ]; then
139 answer="y" 148 answer="$default_answer"
140fi 149fi
141 150
142if [ "$answer" != "Y" -a "$answer" != "y" ]; then 151if [ "$answer" != "Y" -a "$answer" != "y" ]; then
@@ -176,7 +185,7 @@ find $native_sysroot -type f -exec file '{}' \;|grep ":.*ASCII.*text"|cut -d':'
176 185
177# change all symlinks pointing to ${SDKPATH} 186# change all symlinks pointing to ${SDKPATH}
178for l in $(find $native_sysroot -type l); do 187for l in $(find $native_sysroot -type l); do
179 ln -sf $(readlink $l|sed -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:") $l 188 ln -sfn $(readlink $l|sed -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:") $l
180done 189done
181 190
182echo done 191echo done