summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmeta/recipes-devtools/installer/adt-installer/adt_installer14
-rw-r--r--meta/recipes-devtools/installer/adt-installer/adt_installer.conf10
-rwxr-xr-xmeta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal4
3 files changed, 20 insertions, 8 deletions
diff --git a/meta/recipes-devtools/installer/adt-installer/adt_installer b/meta/recipes-devtools/installer/adt-installer/adt_installer
index 76afcf36ed..f3c05185a1 100755
--- a/meta/recipes-devtools/installer/adt-installer/adt_installer
+++ b/meta/recipes-devtools/installer/adt-installer/adt_installer
@@ -67,6 +67,10 @@ validate_config()
67 67
68 for selected_arch_type in $YOCTOADT_TARGETS; do 68 for selected_arch_type in $YOCTOADT_TARGETS; do
69 found=0 69 found=0
70 select_machine_var="\$YOCTOADT_TARGET_MACHINE_$selected_arch_type"
71 select_machine=`eval echo $select_machine_var`
72 show_error_banner=0
73
70 for supported_arch_type in $YOCTOADT_SUPPORTED_TARGETS; do 74 for supported_arch_type in $YOCTOADT_SUPPORTED_TARGETS; do
71 if [ "$selected_arch_type" == "$supported_arch_type" ]; then 75 if [ "$selected_arch_type" == "$supported_arch_type" ]; then
72 found=1 76 found=1
@@ -75,10 +79,18 @@ validate_config()
75 done 79 done
76 if [ $found == 0 ]; then 80 if [ $found == 0 ]; then
77 echo_info "[ADT_INST] Error: YOCTADT_TARGETS in adt_installer.conf contains invalid entries: $YOCTOADT_TARGETS. Valid values are: $YOCTOADT_SUPPORTED_TARGETS" 81 echo_info "[ADT_INST] Error: YOCTADT_TARGETS in adt_installer.conf contains invalid entries: $YOCTOADT_TARGETS. Valid values are: $YOCTOADT_SUPPORTED_TARGETS"
82 show_error_banner=1
83 elif [ -z "$select_machine" ]; then
84 echo_info "[ADT_INST] Error: No MACHINE was defined for $selected_arch_type architecture! This is needed to install the toolchain and the correct environment settings."
85 echo_info "[ADT_INST] To do that, in adt-installer.conf, set the following variable: YOCTOADT_TARGET_MACHINE_$selected_arch_type"
86 show_error_banner=1
87 fi
88
89 if [ $show_error_banner == 1 ]; then
78 echo -e "\n#############################################################################" 90 echo -e "\n#############################################################################"
79 echo -e "# Meet error(s) when installing Yocto ADT! Please check log file for details. " 91 echo -e "# Meet error(s) when installing Yocto ADT! Please check log file for details. "
80 echo -e "#############################################################################\n" 92 echo -e "#############################################################################\n"
81 exit -1 93 exit -1
82 fi 94 fi
83 done 95 done
84 96
diff --git a/meta/recipes-devtools/installer/adt-installer/adt_installer.conf b/meta/recipes-devtools/installer/adt-installer/adt_installer.conf
index cc54acda19..9329a8d199 100644
--- a/meta/recipes-devtools/installer/adt-installer/adt_installer.conf
+++ b/meta/recipes-devtools/installer/adt-installer/adt_installer.conf
@@ -51,11 +51,11 @@ YOCTOADT_TARGET_MACHINE_arm="qemuarm"
51YOCTOADT_TARGET_SYSROOT_LOC_arm="$HOME/test-yocto/$YOCTOADT_TARGET_MACHINE_arm" 51YOCTOADT_TARGET_SYSROOT_LOC_arm="$HOME/test-yocto/$YOCTOADT_TARGET_MACHINE_arm"
52 52
53 53
54#Here's another example for setting up target arch of x86, by uncommenting it will trigger the installer to download and setup 2 sysroot environment for 2 target arches: arm and x86. If you want to add more target arch support, you can append more entries by following these samples 54#Here's a template for setting up target arch of x86
55#YOCTOADT_ROOTFS_x86="sato-sdk" 55YOCTOADT_ROOTFS_x86="sato-sdk"
56#YOCTOADT_TARGET_SYSROOT_IMAGE_x86="sato-sdk" 56YOCTOADT_TARGET_SYSROOT_IMAGE_x86="sato-sdk"
57#YOCTOADT_TARGET_MACHINE_x86="qemux86" 57YOCTOADT_TARGET_MACHINE_x86="qemux86"
58#YOCTOADT_TARGET_SYSROOT_LOC_x86="$HOME/test-yocto/$YOCTOADT_TARGET_MACHINE_x86" 58YOCTOADT_TARGET_SYSROOT_LOC_x86="$HOME/test-yocto/$YOCTOADT_TARGET_MACHINE_x86"
59 59
60#Here's some template of other arches, which you need to change the value in "" 60#Here's some template of other arches, which you need to change the value in ""
61#YOCTOADT_ROOTFS_x86_64="sato-sdk" 61#YOCTOADT_ROOTFS_x86_64="sato-sdk"
diff --git a/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal b/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal
index ebfdf2a69b..2eb13a9044 100755
--- a/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal
+++ b/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal
@@ -195,8 +195,8 @@ escaped_sdkpath=$(echo $DEFAULT_INSTALL_FOLDER |sed -e "s:[\+\.]:\\\\\\\\\0:g")
195 195
196# We don't change the script in-place since we may want the user to re-run 196# We don't change the script in-place since we may want the user to re-run
197# adt-installer script 197# adt-installer script
198$SUDO sh -c "sed -e '"s:##DEFAULT_INSTALL_DIR##:$escaped_sdkpath:"' scripts/relocate_sdk.py > scripts/relocate_sdk_tmp.py" 198sed -e "s:##DEFAULT_INSTALL_DIR##:$escaped_sdkpath:" scripts/relocate_sdk.py > scripts/relocate_sdk_tmp.py
199$SUDO chmod +x scripts/relocate_sdk_tmp.py 199chmod +x scripts/relocate_sdk_tmp.py
200 200
201dl_path=$(find $OECORE_NATIVE_SYSROOT/lib -name "ld-linux*") 201dl_path=$(find $OECORE_NATIVE_SYSROOT/lib -name "ld-linux*")
202executable_files=$(find $OECORE_NATIVE_SYSROOT -type f -perm /111) 202executable_files=$(find $OECORE_NATIVE_SYSROOT -type f -perm /111)