From: Randy Witt Date: Mon, 29 Feb 2016 16:50:28 +0000 (-0800) Subject: populate_sdk_ext: Delete the buildtools tar file after installation X-Git-Tag: 2016-4~620 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=0dc7d3179a605c10987ee836dd179ffeb14d0ba5;p=openembedded-core.git populate_sdk_ext: Delete the buildtools tar file after installation When installing the ext sdk, buildtools is extracted and installed as well. The tar file containing buildtools isn't used after installation so was wasted space and clutter. [YOCTO #9172] Signed-off-by: Randy Witt Signed-off-by: Ross Burton --- diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass index 27d4afc26b..1f0621489f 100644 --- a/meta/classes/populate_sdk_ext.bbclass +++ b/meta/classes/populate_sdk_ext.bbclass @@ -313,6 +313,9 @@ sdk_ext_postinst() { cd $target_sdk_dir printf "buildtools\ny" | ./*buildtools-nativesdk-standalone* > /dev/null || ( printf 'ERROR: buildtools installation failed\n' ; exit 1 ) + # Delete the buildtools tar file since it won't be used again + rm ./*buildtools-nativesdk-standalone*.sh -f + # Make sure when the user sets up the environment, they also get # the buildtools-tarball tools in their path. env_setup_script="$target_sdk_dir/environment-setup-${REAL_MULTIMACH_TARGET_SYS}"