summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/installer/adt-installer/adt_installer
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/installer/adt-installer/adt_installer')
-rwxr-xr-xmeta/recipes-devtools/installer/adt-installer/adt_installer13
1 files changed, 12 insertions, 1 deletions
diff --git a/meta/recipes-devtools/installer/adt-installer/adt_installer b/meta/recipes-devtools/installer/adt-installer/adt_installer
index 9336b9ec68..1dd07b7f34 100755
--- a/meta/recipes-devtools/installer/adt-installer/adt_installer
+++ b/meta/recipes-devtools/installer/adt-installer/adt_installer
@@ -228,7 +228,7 @@ if [ -f "$LOCAL_DOWNLOAD/$filename" ]; then
228 fi 228 fi
229fi 229fi
230echo_info "Downloading file: $filename..." 230echo_info "Downloading file: $filename..."
231wget "$YOCTOADT_IPKG_REPO/$1" -P $LOCAL_DOWNLOAD --progress=bar:force 2>&1 | tee -a "$YOCTOADT_INSTALL_LOG_FILE" 231wget "$YOCTOADT_REPO/rootfs/$1" -P $LOCAL_DOWNLOAD --progress=bar:force 2>&1 | tee -a "$YOCTOADT_INSTALL_LOG_FILE"
232} 232}
233 233
234 234
@@ -339,6 +339,17 @@ user_inst_type="$?"
339 339
340validate_config 340validate_config
341check_result 341check_result
342
343#check adt_repo exist
344wget $YOCTOADT_REPO 2>&1 | tee -a "$YOCTOADT_INSTALL_LOG_FILE"
345if grep -q "ERROR 404: Not Found" $YOCTOADT_INSTALL_LOG_FILE; then
346 echo -e "[ADT_INST] Error: YOCTOADT_REPO does not exist: $YOCTOADT_REPO"
347 echo -e "\n#############################################################################"
348 echo -e "# Meet error(s) when installing Yocto ADT! Please check log file for details. "
349 echo -e "#############################################################################\n"
350 exit -1
351fi
352
342#firstly we need to install opkg host 353#firstly we need to install opkg host
343install_opkg 354install_opkg
344 355