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-23 16:20:11 +0100 |
commit | 7f5d712f377b5d69fbb2f511eb420eaeebfc796a (patch) | |
tree | d7a8e0dcfe8b5649c201cfd10f381325e87756e3 /meta/classes/populate_sdk_base.bbclass | |
parent | 16e59f3ba75962693d25c7cd8ba773e189db8149 (diff) | |
download | poky-7f5d712f377b5d69fbb2f511eb420eaeebfc796a.tar.gz |
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.
(From OE-Core rev: ae86a46c1b255e7c2833eb6d48ed46eba440e95a)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/populate_sdk_base.bbclass')
-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() { | |||
108 | sed -i -e "s:##DEFAULT_INSTALL_DIR##:$escaped_sdkpath:" ${SDK_OUTPUT}/${SDKPATH}/relocate_sdk.py | 108 | sed -i -e "s:##DEFAULT_INSTALL_DIR##:$escaped_sdkpath:" ${SDK_OUTPUT}/${SDKPATH}/relocate_sdk.py |
109 | } | 109 | } |
110 | 110 | ||
111 | SDKTAROPTS = "--owner=root --group=root -j" | ||
112 | |||
111 | fakeroot tar_sdk() { | 113 | fakeroot tar_sdk() { |
112 | # Package it up | 114 | # Package it up |
113 | mkdir -p ${SDK_DEPLOY} | 115 | mkdir -p ${SDK_DEPLOY} |
114 | cd ${SDK_OUTPUT}/${SDKPATH} | 116 | cd ${SDK_OUTPUT}/${SDKPATH} |
115 | tar --owner=root --group=root -cj --file=${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 . | 117 | tar ${SDKTAROPTS} -c --file=${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 . |
116 | } | 118 | } |
117 | 119 | ||
118 | fakeroot create_shar() { | 120 | fakeroot create_shar() { |