diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-20 13:06:27 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-22 18:30:05 +0100 |
commit | ae86a46c1b255e7c2833eb6d48ed46eba440e95a (patch) | |
tree | 84ceee963822e57fc39c463423bf61b96ed52abe | |
parent | cd1ac8257ed2701cbe3802870183e8e1cd3b0418 (diff) | |
download | openembedded-core-ae86a46c1b255e7c2833eb6d48ed46eba440e95a.tar.gz openembedded-core-ae86a46c1b255e7c2833eb6d48ed46eba440e95a.tar.bz2 openembedded-core-ae86a46c1b255e7c2833eb6d48ed46eba440e95a.zip |
populate_sdk_base: Allow sdk tar options to be overridden
It can be useful to override or append options to the SDK tarball creation command
so add a variable to allow this.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/populate_sdk_base.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass index aa3c2fa9fd..998280e054 100644 --- a/meta/classes/populate_sdk_base.bbclass +++ b/meta/classes/populate_sdk_base.bbclass @@ -108,11 +108,13 @@ fakeroot create_sdk_files() { sed -i -e "s:##DEFAULT_INSTALL_DIR##:$escaped_sdkpath:" ${SDK_OUTPUT}/${SDKPATH}/relocate_sdk.py } +SDKTAROPTS = "--owner=root --group=root -j" + fakeroot tar_sdk() { # Package it up mkdir -p ${SDK_DEPLOY} cd ${SDK_OUTPUT}/${SDKPATH} - tar --owner=root --group=root -cj --file=${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 . + tar ${SDKTAROPTS} -c --file=${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 . } fakeroot create_shar() { |