On 7/25/23 5:45 PM, Tom Rini wrote:
On Tue, Jul 25, 2023 at 05:00:15PM -0500, Nishanth Menon wrote:
On 17:35-20230725, Tom Rini wrote:
On Tue, Jul 25, 2023 at 01:52:53PM -0500, Nishanth Menon wrote:
[...]
+
+Build procedure:
+----------------
+1. Trusted Firmware-A:
+
+.. code-block:: bash
+
+ $ make CROSS_COMPILE=aarch64-none-linux-gnu- ARCH=aarch64 PLAT=k3 \
+ TARGET_BOARD=lite SPD=opteed
+
+2. OP-TEE:
+
+.. code-block:: bash
+
+ $ make PLATFORM=k3 CFG_ARM64_core=y CROSS_COMPILE=arm-none-linux-gnueabihf- \
+ CROSS_COMPILE64=aarch64-none-linux-gnu-
So, we have some generic wording on how to build TF-A and OP-TEE up in
doc/board/ti/k3.rst. It should be made clearer if needed that unless
otherwise indicated, top of tree is expected to be used for TF-A/OP-TEE
and ti-linux-firmware for the ti-linux-firmware repo. Then just state
that TF-A should be which of {lite|generic|j784s4} as it is a $family
device. And we then drop much of the duplication here.
Also, Robert pointed out I missed K3_PM_SYSTEM_SUSPEND=1 :(
Ugh, how many platforms is that variable valid for?
None soon :)
I'm getting rid of that flag in TF-A. There is a bug blocking me right now,
but after that it will be automatic. Not sure if it is worth documenting a
flag that is going away..
Andrew