Details
-
Type:
Task
-
Status: Rejected
-
Priority:
Medium
-
Resolution: Won't Do
-
Affects Version/s: 2.2.0
-
Fix Version/s: None
-
Labels:
-
Environment:Yocto sumo, meta-mender
-
Days in progress:0
Description
Compression was added to mender-artifact which is available to yocto builds with the newer recipes added for it.
There doesn’t seem to be any provision to set mender-artifact global options like compression. MENDER_ARTIFACT_EXTRA_ARGS adds command args and cannot be used for global options. We provide a MENDER_ARTIFACT_GLOBAL_ARGS variable to support change of compression in yocto builds.
For example:
from this:
mender-artifact write rootfs-image \
-n ${MENDER_ARTIFACT_NAME} \
$extra_args \
$image_flag ${IMGDEPLOYDIR}/${ARTIFACTIMG_NAME}.${ARTIFACTIMG_FSTYPE} \
${MENDER_ARTIFACT_EXTRA_ARGS} \
-o ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.mender
to
mender-artifact ${MENDER_ARTIFACT_GLOBAL_ARGS} write rootfs-image \
-n ${MENDER_ARTIFACT_NAME} \
$extra_args \
$image_flag ${IMGDEPLOYDIR}/${ARTIFACTIMG_NAME}.${ARTIFACTIMG_FSTYPE} \
${MENDER_ARTIFACT_EXTRA_ARGS} \
-o ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.mender