Hi,
While working on the RAUC integration for STM32MP157F-DK2 and other STM32MP embedded Linux devices, I had to set IMAGE_MACHINE_SUFFIX="-${DISTRO}-stm32mp15-disco" in the RAUC bundle.
Now I am trying to use RAUC_SLOT_rootfs[rename] instead but I am running into a behavior that looks like a bug in class classes-recipe/bundle.bbclass from layer meta-rauc. In the recipe I have set:
RAUC_SLOT_rootfs[rename] = "st-image-core-${DISTRO}-${MACHINE}.rootfs.ext4"
The result is the following note and error:
NOTE: adding image to bundle dir: 'st-image-core-openstlinux-weston-stm32mp15-disco.rootfs.ext4'
ERROR: Failed to find source st-image-core-stm32mp15-disco.rootfs.ext4
In bundle.bbclass variable imgname is used to print the NOTE and the value matches RAUC_SLOT_rootfs[rename]. But after that for the ERROR variable imgsource is used. Variable imgsource has a different value from RAUC_SLOT_rootfs[rename] and as a result it points to a file that doesn't exist in the particular case.
I am testing on Scarthgap but this particular code in the bundle.bbclass looks the same in master.
Am I missing something or doing anything wrong with RAUC_SLOT_rootfs[rename] ?
Hi,
While working on the RAUC integration for STM32MP157F-DK2 and other STM32MP embedded Linux devices, I had to set
IMAGE_MACHINE_SUFFIX="-${DISTRO}-stm32mp15-disco"in the RAUC bundle.Now I am trying to use
RAUC_SLOT_rootfs[rename]instead but I am running into a behavior that looks like a bug in classclasses-recipe/bundle.bbclassfrom layer meta-rauc. In the recipe I have set:The result is the following note and error:
In
bundle.bbclassvariableimgnameis used to print the NOTE and the value matchesRAUC_SLOT_rootfs[rename]. But after that for the ERROR variableimgsourceis used. Variableimgsourcehas a different value fromRAUC_SLOT_rootfs[rename]and as a result it points to a file that doesn't exist in the particular case.I am testing on Scarthgap but this particular code in the
bundle.bbclasslooks the same in master.Am I missing something or doing anything wrong with
RAUC_SLOT_rootfs[rename]?