[oe-commits] Jackie Huang : populate_sdk_base.bbclass: add execution permission for self-extracting archive

git at git.openembedded.org git at git.openembedded.org
Fri Feb 8 14:59:38 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 3d6537f6ab1ce98075461b9a5d49885c2454417f
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=3d6537f6ab1ce98075461b9a5d49885c2454417f

Author: Jackie Huang <jackie.huang at windriver.com>
Date:   Tue Dec 11 13:34:02 2012 +0800

populate_sdk_base.bbclass: add execution permission for self-extracting archive

[ CQID: WIND00392947 ]

It is not good user experience that the self-extracting archive (.sh file)
has no execution permission by default.

Signed-off-by: Jackie Huang <jackie.huang at windriver.com>
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
Signed-off-by: Mark Hatle <mark.hatle at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 meta/classes/populate_sdk_base.bbclass |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index c587af8..c025d40 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -257,6 +257,9 @@ exit 0
 
 MARKER:
 EOF
+	# add execution permission
+	chmod +x ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh
+
 	# append the SDK tarball
 	cat ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 >> ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh
 





More information about the Openembedded-commits mailing list