diff options
Diffstat (limited to 'meta/classes/populate_sdk_base.bbclass')
-rw-r--r-- | meta/classes/populate_sdk_base.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass index c15a4d4629..88bcb27757 100644 --- a/meta/classes/populate_sdk_base.bbclass +++ b/meta/classes/populate_sdk_base.bbclass | |||
@@ -123,7 +123,7 @@ SDK_ARCH=$(echo ${SDK_ARCH} | sed -e "s/i[5-6]86/ix86/") | |||
123 | 123 | ||
124 | if [ "$INST_ARCH" != "$SDK_ARCH" ]; then | 124 | if [ "$INST_ARCH" != "$SDK_ARCH" ]; then |
125 | echo "Error: Installation machine not supported!" | 125 | echo "Error: Installation machine not supported!" |
126 | exit -1 | 126 | exit 1 |
127 | fi | 127 | fi |
128 | 128 | ||
129 | DEFAULT_INSTALL_DIR="${SDKPATH}" | 129 | DEFAULT_INSTALL_DIR="${SDKPATH}" |
@@ -233,7 +233,7 @@ if [ $? -ne 0 ]; then | |||
233 | fi | 233 | fi |
234 | 234 | ||
235 | # replace ${SDKPATH} with the new prefix in all text files: configs/scripts/etc | 235 | # replace ${SDKPATH} with the new prefix in all text files: configs/scripts/etc |
236 | $SUDO_EXEC find $native_sysroot -type f -exec file '{}' \;|$SUDO_EXEC grep ":.*ASCII.*text"|cut -d':' -f1|$SUDO_EXEC xargs sed -i -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:g" | 236 | $SUDO_EXEC find $native_sysroot -type f -exec file '{}' \;|grep ":.*\(ASCII\|script\).*text"|cut -d':' -f1|$SUDO_EXEC xargs sed -i -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:g" |
237 | 237 | ||
238 | # change all symlinks pointing to ${SDKPATH} | 238 | # change all symlinks pointing to ${SDKPATH} |
239 | for l in $($SUDO_EXEC find $native_sysroot -type l); do | 239 | for l in $($SUDO_EXEC find $native_sysroot -type l); do |