mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 09:49:32 +02:00
adt-installer: add warning if MACHINE is not set in adt-installer.conf
Since the MACHINE can now be specified in adt-installer.conf, in order to install the proper toolchain and environment script for the given machine, add a sanity checking at the beginning to make sure MACHINE is set for the wanted architecture. Also: * uncomment the x86 target variables, in adt-installer.conf, in order to have qemux86 MACHINE set, by default, and also the sysroot installed (since it doesn't make much sense to install the toolchain without a target sysroot); * remove 'sudo' when creating relocate_sdk_tmp.py because the file is created in adt-installer directory; [YOCTO #5259] (From OE-Core rev: 0623a0e1bd7cf0c405a0469e9f16779971c0c3b5) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1ffa203dd5
commit
d7e22e5f20
@@ -195,8 +195,8 @@ escaped_sdkpath=$(echo $DEFAULT_INSTALL_FOLDER |sed -e "s:[\+\.]:\\\\\\\\\0:g")
|
||||
|
||||
# We don't change the script in-place since we may want the user to re-run
|
||||
# adt-installer script
|
||||
$SUDO sh -c "sed -e '"s:##DEFAULT_INSTALL_DIR##:$escaped_sdkpath:"' scripts/relocate_sdk.py > scripts/relocate_sdk_tmp.py"
|
||||
$SUDO chmod +x scripts/relocate_sdk_tmp.py
|
||||
sed -e "s:##DEFAULT_INSTALL_DIR##:$escaped_sdkpath:" scripts/relocate_sdk.py > scripts/relocate_sdk_tmp.py
|
||||
chmod +x scripts/relocate_sdk_tmp.py
|
||||
|
||||
dl_path=$(find $OECORE_NATIVE_SYSROOT/lib -name "ld-linux*")
|
||||
executable_files=$(find $OECORE_NATIVE_SYSROOT -type f -perm /111)
|
||||
|
||||
Reference in New Issue
Block a user