aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-04-05 19:41:49 -0400
committerTom Rini <trini@konsulko.com>2023-04-05 19:41:49 -0400
commitcebb6d5e6181922671bf77a085a1adf39fa23e42 (patch)
tree7caaaa043e741aed88131e577a1a20f180bf15e8
parent924c468b4e1312737f1658fe7adc2191e2588b47 (diff)
downloadu-boot-WIP/update-clang-for-arm.zip
u-boot-WIP/update-clang-for-arm.tar.gz
u-boot-WIP/update-clang-for-arm.tar.bz2
doc: clang: Update and correct support notesWIP/update-clang-for-arm
At this point, clang can be used on both 32bit and 64bit targets without issue. Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r--doc/build/clang.rst16
1 files changed, 4 insertions, 12 deletions
diff --git a/doc/build/clang.rst b/doc/build/clang.rst
index 1d35616..2224870 100644
--- a/doc/build/clang.rst
+++ b/doc/build/clang.rst
@@ -11,14 +11,6 @@ The ARM backend can be instructed not to use the r9 and x18 registers using
supported inline assembly is needed to get and set the r9 or x18 value. This
leads to larger code then strictly necessary, but at least works.
-**NOTE:** target compilation only work for _some_ ARM boards at the moment.
-Also AArch64 is not supported currently due to a lack of private libgcc
-support. Boards which reassign gd in c will also fail to compile, but there is
-in no strict reason to do so in the ARM world, since crt0.S takes care of this.
-These assignments can be avoided by changing the init calls but this is not in
-mainline yet.
-
-
Debian based
------------
@@ -28,14 +20,14 @@ Required packages can be installed via apt, e.g.
sudo apt-get install clang
-Note that we still use binutils for some tools so we must continue to set
-CROSS_COMPILE. To compile U-Boot with Clang on Linux without IAS use e.g.
+Note that we make use of the CROSS_COMPILE variable to determine what to tell
+clang to use as the build target.
+To compile U-Boot with Clang on Linux without IAS use e.g.
.. code-block:: bash
make HOSTCC=clang rpi_2_defconfig
- make HOSTCC=clang CROSS_COMPILE=arm-linux-gnueabi- \
- CC="clang -target arm-linux-gnueabi" -j8
+ make HOSTCC=clang CROSS_COMPILE=arm-linux-gnueabi- CC=clang -j8
It can also be used to compile sandbox: