Hi Amit,

 

armasm is the legacy Arm Compiler 5 assembler, which was deprecated with Arm Compiler 6 and exists to support projects using the legacy Arm-syntax assembly. Arm Compiler 6’s assembler is integrated directly into armclang, and shares its syntax with the AArch32/AArch64 ports of the GNU Assembler (GAS). This is the syntax that TF-A uses, so by design all assembly goes through armclang and not armasm.

 

Of the Arm Compiler 6 toolchain, TF-A’s build system currently only supports armclang, and armlink only on specific platforms. We do not currently support armar, fromelf, etc.

 

Hope that helps!

 

Chris

 

From: Nagal, Amit via TF-A <tf-a@lists.trustedfirmware.org>
Date: Monday, 27 May 2024 at 08:43
To: tf-a@lists.trustedfirmware.org <tf-a@lists.trustedfirmware.org>
Subject: [TF-A] regarding AS and AR values with clang compiler

Hi ,

We are trying to build  the TF-A code using clang compiler .
Instructions are followed as per the conf page https://trustedfirmware-a.readthedocs.io/en/latest/getting_started/initial-build.html#performing-an-initial-build
1. export CROSS_COMPILE=<path-to-aarch64-gcc>/bin/aarch64-none-elf-
2. make CC=<path-to-armclang>/bin/armclang PLAT=<platform> all
in our side , make CC=/tools/installs/arm/safety/armcc/6.6.2/bin/armclang PLAT=zynqmp distclean

3.
with steps 1) and 2) , we observe the value of AS and AR getting set as below:
AS = /tools/installs/arm/safety/armcc/6.6.2/bin/armclang -c -x assembler-with-cpp -target aarch64-arm-none-eabi -march=armv8-a
AR = <path-to-aarch64-gcc>/bin/aarch64-linux-gnu-ar

4.
However in /tools/installs/arm/safety/armcc/6.6.2/bin , clang tool specific AS points to armasm and AR points to armar utility.

5.
From above output in point 4 , we can see that AS and AR does not refer to clang toolchain utilities  armasm and armar.
From point 3) , AS still points to armclang utility only instead of armasm , while AR still points to aarch64-linux-gnu-ar instead of armar .

6.
Can we be guided if the above outputs are correct to use wrt TF-A code build using clang compiler  ?
And whether any modifications can be done to point AS and AR to clang toolchain specific utilities as mentioned in step 4.

Regards
Amit

--
TF-A mailing list -- tf-a@lists.trustedfirmware.org
To unsubscribe send an email to tf-a-leave@lists.trustedfirmware.org