Hello,
I need to change to DDR size from the default 4G to 2G for a custom ECU using S32g3. For BSP 46.00 I know this is part of the BL2 (TFA) and there a is chapter in the BSP user manual, BUT...
the steps described there are "manual", meaning the TFA should be build as an independent binary.
I am using Yocto with BSP46.00 and took as a start reference s32g399aevb3. I have created my own custom MACHINE and meta layer and can successfully do the bitbake and run the image on the EVB (still 4G as original MACHINE).
Now I want to integrate the DDR size change (4G -> 2G) in my Yocto flow. For now I am thinking to add the new ddr files as a patch in a bbapend for TFA recipe, but the issue is that Yocto build will fail if NXP_FIRMWARE_LOCAL_DIR is not provided.
My questions are:
1. Is the "manual" option the only one (I hope not)?
2. Is my intended approach correct?
3. If using a patch for TFA (or even pointing to a local repo) in the bbapend, how can I avoid the build fail caused by removing NXP_FIRMWARE_LOCAL_DIR? I expect that I can't create my own binaries and also makes no sense to have my changes for ddr and also the ddr_firmware intended for the EVB (that is why I need to remove NXP_FIRMWARE_LOCAL_DIR).