Skip to content

Commit

Permalink
base: u-boot/fip: fix bootfirmware version without firmware node
Browse files Browse the repository at this point in the history
Create the /firmware/bootloader node using auto-path, in order to
automatically create all nodes required for the node path (useful for
cases where /firmware is not defined by the board).

Signed-off-by: Ricardo Salveti <[email protected]>
  • Loading branch information
ricardosalveti committed May 5, 2023
1 parent 3ffb58e commit 4c50c84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion meta-lmp-base/classes/fip-utils.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ do_deploy:append:class-target() {
# Add boot firmware version to U-Boot DTB (if it's defined and is not zero)
if [ -n "${LMP_BOOT_FIRMWARE_VERSION}" -a "${LMP_BOOT_FIRMWARE_VERSION}" != "0" ]; then
# Might return "FDT_ERR_EXISTS" error, if "lmp" node already exists
fdtput -c -t s "${WORKDIR}/${FIP_UBOOT_DTB}.${FIP_UBOOT_DTB_SUFFIX}" /firmware/bootloader || true
fdtput -c -p -t s "${WORKDIR}/${FIP_UBOOT_DTB}.${FIP_UBOOT_DTB_SUFFIX}" /firmware/bootloader || true
fdtput -t s "${WORKDIR}/${FIP_UBOOT_DTB}.${FIP_UBOOT_DTB_SUFFIX}" /firmware/bootloader compatible "lmp,bootloader"
fdtput -t s "${WORKDIR}/${FIP_UBOOT_DTB}.${FIP_UBOOT_DTB_SUFFIX}" /firmware/bootloader bootfirmware-version "${LMP_BOOT_FIRMWARE_VERSION}"
fi
Expand Down
2 changes: 1 addition & 1 deletion meta-lmp-base/classes/uboot-fitimage.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ EOF
# Add boot firmware version to U-Boot DTB (if it's defined and is not zero)
if [ -n "${LMP_BOOT_FIRMWARE_VERSION}" -a "${LMP_BOOT_FIRMWARE_VERSION}" != "0" ]; then
# Might return "FDT_ERR_EXISTS" error, if "lmp" node already exists
fdtput -c -t s ${uboot_dtb} /firmware/bootloader || true
fdtput -c -p -t s ${uboot_dtb} /firmware/bootloader || true
fdtput -t s ${uboot_dtb} /firmware/bootloader compatible "lmp,bootloader"
fdtput -t s ${uboot_dtb} /firmware/bootloader bootfirmware-version "${LMP_BOOT_FIRMWARE_VERSION}"
fi
Expand Down

0 comments on commit 4c50c84

Please sign in to comment.