Skip to contentSkip to conversation

populate_sdk_ext: Delete the buildtools tar file after installation

PATCH New Randy Witt 1 participant 1 message Feb 29, 2016

lore
Share & tools
lore

Randy Witt

author
#0 lore raw

PATCH 1/1 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]

---
 meta/classes/populate_sdk_ext.bbclass | 3 +++
 1 file changed, 3 insertions(+)
meta/classes/populate_sdk_ext.bbclass +3 -0
index 9e2fc61..f927cb9 100644
@@ -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}"
Signature · 1 line
2.5.0