docs: refactor build section
Under "Getting Started", created dedicated subsections for:
- Prerequisites
- Get Source
- Building
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I46f7b924f812aea6f3bd3a9216fe2ccbec0287e8
diff --git a/docs/getting_started/get-source.rst b/docs/getting_started/get-source.rst
new file mode 100644
index 0000000..a71a670
--- /dev/null
+++ b/docs/getting_started/get-source.rst
@@ -0,0 +1,20 @@
+Getting the source code
+=======================
+
+Hafnium source code is maintained in a Git repository hosted on trustedfirmware.org.
+To clone this repository from the server, run the following in your shell:
+
+.. code:: shell
+
+ git clone --recurse-submodules https://git.trustedfirmware.org/hafnium/hafnium.git
+
+In order to import gerrit hooks useful to add a Change-Id footer in commit messages,
+it is recommended to use:
+
+.. code:: shell
+
+ git clone --recurse-submodules https://git.trustedfirmware.org/hafnium/hafnium.git && { cd hafnium && f="$(git rev-parse --git-dir)"; curl -Lo "$f/hooks/commit-msg" https://review.trustedfirmware.org/tools/hooks/commit-msg && { chmod +x "$f/hooks/commit-msg"; git submodule --quiet foreach "cp \"\$toplevel/$f/hooks/commit-msg\" \"\$toplevel/$f/modules/\$path/hooks/commit-msg\""; }; }
+
+--------------
+
+*Copyright (c) 2023, Arm Limited. All rights reserved.*