From ae86a46c1b255e7c2833eb6d48ed46eba440e95a Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 20 Aug 2013 13:06:27 +0000 Subject: 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 --- meta/classes/populate_sdk_base.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() { -- cgit v1.2.3