Skip to content

Commit

Permalink
bundle.bbclass: use IMAGE_MACHINE_SUFFIX instead of hard-coded '-${MA…
Browse files Browse the repository at this point in the history
…CHINE}'

-${MACHINE} is just the default for IMAGE_MACHINE_SUFFIX and can be
changed by users.

This is similar to commit 3e96177 ("bundle.bbclass: use
IMAGE_NAME_SUFFIX instead of hard-coded '.rootfs'").

Signed-off-by: Julien Delbergue <[email protected]>
  • Loading branch information
jdelbefoss authored and ejoerns committed Apr 16, 2024
1 parent 50e1eaf commit 3fee961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes-recipe/bundle.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def write_manifest(d):
img_fstype = slotflags.get('fstype', d.getVar('RAUC_IMAGE_FSTYPE'))

if imgtype == 'image':
fallback = "%s-%s%s.%s" % (d.getVar('RAUC_SLOT_%s' % slot), machine, d.getVar('IMAGE_NAME_SUFFIX'), img_fstype)
fallback = "%s%s%s.%s" % (d.getVar('RAUC_SLOT_%s' % slot), d.getVar('IMAGE_MACHINE_SUFFIX'), d.getVar('IMAGE_NAME_SUFFIX'), img_fstype)
imgname = imgsource = slotflags.get('file', fallback)
elif imgtype == 'kernel':
# TODO: Add image type support
Expand Down

0 comments on commit 3fee961

Please sign in to comment.