On Thu, 2023-06-29 at 16:02 +0200, Robert Berger wrote: > added --clamp-mtime --mtime to the tar command > > see: > https://bugzilla.yoctoproject.org/show_bug.cgi?id=15148 > > Signed-off-by: Robert Berger <[email protected]> > --- > meta/classes-recipe/populate_sdk_base.bbclass | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/meta/classes-recipe/populate_sdk_base.bbclass > b/meta/classes-recipe/populate_sdk_base.bbclass > index b23ea26d40..c804e7520a 100644 > --- a/meta/classes-recipe/populate_sdk_base.bbclass > +++ b/meta/classes-recipe/populate_sdk_base.bbclass > @@ -86,7 +86,7 @@ python () { > d.setVar('SDK_ARCHIVE_CMD', 'cd ${SDK_OUTPUT}/${SDKPATH}; zip -r > ${SDK_ZIP_OPTIONS} > ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.${SDK_ARCHIVE_TYPE} .') > else: > d.setVar('SDK_ARCHIVE_DEPENDS', 'xz-native') > - d.setVar('SDK_ARCHIVE_CMD', 'cd ${SDK_OUTPUT}/${SDKPATH}; tar > ${SDKTAROPTS} -cf - . | xz ${SDK_XZ_OPTIONS} > > ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.${SDK_ARCHIVE_TYPE}') > + d.setVar('SDK_ARCHIVE_CMD', 'cd ${SDK_OUTPUT}/${SDKPATH}; tar > ${SDKTAROPTS} ${SDKTAROPTS_ADDON} -cf - . | xz ${SDK_XZ_OPTIONS} > > ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.${SDK_ARCHIVE_TYPE}') > } > > SDK_RDEPENDS = "${TOOLCHAIN_TARGET_TASK} ${TOOLCHAIN_HOST_TASK}" > @@ -286,6 +286,7 @@ python check_sdk_sysroots() { > } > > SDKTAROPTS = "--owner=root --group=root" > +SDKTAROPTS_ADDON ?= "--clamp-mtime --mtime=@${SOURCE_DATE_EPOCH}" >
Thanks, looks good. I did wonder if we could just put this in SDKTAROPTS though? Do we really need to add a new variable? Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#183630): https://lists.openembedded.org/g/openembedded-core/message/183630 Mute This Topic: https://lists.openembedded.org/mt/99851149/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
