[oe-commits] [openembedded-core] 20/65: populate_sdk_ext: Delete the buildtools tar file after installation

git at git.openembedded.org git at git.openembedded.org
Tue Mar 1 20:56:48 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit af7b2a9985a1e22b57e45fe86dfb2fc7f8b76993
Author: Randy Witt <randy.e.witt at linux.intel.com>
AuthorDate: Mon Feb 29 08:50:28 2016 -0800

    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 <randy.e.witt at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/populate_sdk_ext.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass
index 27d4afc..1f06214 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}"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list