Hi Stefano,

On 12/08/2025 00:13, Stefano Stabellini wrote:
On Thu, 7 Aug 2025, Ayan Kumar Halder wrote:
There are systems where device tree binary is passed by the U-Boot as
$fdtcontroladdr. In such cases, no external device tree binary is provided
during uboot script generation.

This is an enhancement on top of the following commit:-
uboot-script-gen: Dynamically compute addr and size when loading bina…

When DEVICE_TREE is not present, $CALC is set as the addresses and sizes should
be computed dynamically from U-Boot.
I would prefer if we did not automatically enable $CALC. If it doesn't
work without $CALC enabled, we could add a check for it and print an
error and exit. I would prefer that then enabling $CALC silently.
Ack

Also I don't think we should use the check ${DEVICE_TREE+x}. I'd prefer
to stick with the existing checks based on test ${DEVICE_TREE}.
Ack

The rest looks OK.

It might be possible to simplify this patch down to this (untested).
The last chunk of the diff is actually an unrelated fix, it looks like
we didn't test BOOT_CMD="none" when the -s option was introduced.

What do you think?

Slightly changed the chunk. With that it works well.

I have sent "[ImageBuilder v2] Make DEVICE_TREE optional parameter" for review.

- Ayan


Reply via email to