]> code.ossystems Code Review - openembedded-core.git/commitdiff
populate_sdk_ext: Delete the buildtools tar file after installation
authorRandy Witt <randy.e.witt@linux.intel.com>
Mon, 29 Feb 2016 16:50:28 +0000 (08:50 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 2 Mar 2016 22:39:06 +0000 (22:39 +0000)
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 <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/populate_sdk_ext.bbclass

index 27d4afc26b8fa4d7e3917372d4e41761a7212cc0..1f0621489f4ab2fc6d4e39697d73cabd88263a5a 100644 (file)
@@ -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}"