doc: ti: update bash code-block directives to prompt
PATCH 1/2 doc: ti: update bash code-block directives to prompt
The code-block directive requires addition of the prompt symbol for each line, using the prompt directive instead allows for auto insertion of the symbol per line[1].
For the readers, the character added by the prompt directive is un-selectable i.e the entire line can be more easily selected for copy pasting etc. Whereas with code-block, the prompt symbol like "$" is also selectable which is usually not the intent.
This is mostly a QoL addition + making the docs consistent since k3.rst makes use of prompt directives which these board docs include from.
[1]: https://pypi.org/project/sphinx-prompt/
--- doc/board/ti/am62ax_sk.rst | 20 ++++++++++---------- doc/board/ti/am62px_sk.rst | 18 +++++++++--------- doc/board/ti/j722s_evm.rst | 14 +++++++------- doc/board/ti/j784s4_evm.rst | 16 ++++++++-------- 4 files changed, 34 insertions(+), 34 deletions(-)
doc/board/ti/am62ax_sk.rst +10 -10
@@ -81,16 +81,16 @@ Set the variables corresponding to this platform: .. include:: ../ti/k3.rst :start-after: .. k3_rst_include_start_common_env_vars_defn :end-before: .. k3_rst_include_end_common_env_vars_defn -.. code-block:: bash +.. prompt:: bash - $ export UBOOT_CFG_CORTEXR=am62ax_evm_r5_defconfig - $ export UBOOT_CFG_CORTEXA=am62ax_evm_a53_defconfig - $ export TFA_BOARD=lite - $ # we dont use any extra TFA parameters - $ unset TFA_EXTRA_ARGS - $ export OPTEE_PLATFORM=k3-am62ax - $ # we dont use any extra OPTEE parameters - $ unset OPTEE_EXTRA_ARGS + export UBOOT_CFG_CORTEXR=am62ax_evm_r5_defconfig + export UBOOT_CFG_CORTEXA=am62ax_evm_a53_defconfig + export TFA_BOARD=lite + # we dont use any extra TFA parameters + unset TFA_EXTRA_ARGS + export OPTEE_PLATFORM=k3-am62ax + # we dont use any extra OPTEE parameters + unset OPTEE_EXTRA_ARGS 1. Trusted Firmware-A:
@@ -212,6 +212,6 @@ detailed setup information. To start OpenOCD and connect to the board -.. code-block:: bash +.. prompt:: bash openocd -f board/ti_am62a7evm.cfg
doc/board/ti/am62px_sk.rst +9 -9
@@ -91,15 +91,15 @@ Set the variables corresponding to this platform: :start-after: .. k3_rst_include_start_common_env_vars_defn :end-before: .. k3_rst_include_end_common_env_vars_defn -.. code-block:: bash +.. prompt:: bash - $ export UBOOT_CFG_CORTEXR=am62px_evm_r5_defconfig - $ export UBOOT_CFG_CORTEXA=am62px_evm_a53_defconfig - $ export TFA_BOARD=lite - $ # we dont use any extra TFA parameters - $ unset TFA_EXTRA_ARGS - $ export OPTEE_PLATFORM=k3-am62x - $ export OPTEE_EXTRA_ARGS="CFG_WITH_SOFTWARE_PRNG=y" + export UBOOT_CFG_CORTEXR=am62px_evm_r5_defconfig + export UBOOT_CFG_CORTEXA=am62px_evm_a53_defconfig + export TFA_BOARD=lite + # we dont use any extra TFA parameters + unset TFA_EXTRA_ARGS + export OPTEE_PLATFORM=k3-am62x + export OPTEE_EXTRA_ARGS="CFG_WITH_SOFTWARE_PRNG=y" .. am62px_evm_rst_include_start_build_steps
@@ -312,6 +312,6 @@ detailed setup information. To start OpenOCD and connect to the board -.. code-block:: bash +.. prompt:: bash openocd -f board/ti_am62pevm.cfg
doc/board/ti/j722s_evm.rst +7 -7
@@ -68,13 +68,13 @@ Set the variables corresponding to this platform: :start-after: .. k3_rst_include_start_common_env_vars_defn :end-before: .. k3_rst_include_end_common_env_vars_defn -.. code-block:: bash +.. prompt:: bash - $ export UBOOT_CFG_CORTEXR=j722s_evm_r5_defconfig - $ export UBOOT_CFG_CORTEXA=j722s_evm_a53_defconfig - $ export TFA_BOARD=lite - $ export OPTEE_PLATFORM=k3-am62x - $ export OPTEE_EXTRA_ARGS="CFG_WITH_SOFTWARE_PRNG=y" + export UBOOT_CFG_CORTEXR=j722s_evm_r5_defconfig + export UBOOT_CFG_CORTEXA=j722s_evm_a53_defconfig + export TFA_BOARD=lite + export OPTEE_PLATFORM=k3-am62x + export OPTEE_EXTRA_ARGS="CFG_WITH_SOFTWARE_PRNG=y" .. j722s_evm_rst_include_start_build_steps
@@ -259,6 +259,6 @@ detailed setup information. To start OpenOCD and connect to the board -.. code-block:: bash +.. prompt:: bash openocd -f board/ti_j722sevm.cfg
doc/board/ti/j784s4_evm.rst +8 -8
@@ -81,14 +81,14 @@ Set the variables corresponding to this platform: .. include:: k3.rst :start-after: .. k3_rst_include_start_common_env_vars_defn :end-before: .. k3_rst_include_end_common_env_vars_defn -.. code-block:: bash +.. prompt:: bash - $ export UBOOT_CFG_CORTEXR=j784s4_evm_r5_defconfig - $ export UBOOT_CFG_CORTEXA=j784s4_evm_a72_defconfig - $ export TFA_BOARD=j784s4 - $ export TFA_EXTRA_ARGS="K3_USART=0x8" - $ export OPTEE_PLATFORM=k3-j784s4 - $ export OPTEE_EXTRA_ARGS="CFG_CONSOLE_UART=0x8" + export UBOOT_CFG_CORTEXR=j784s4_evm_r5_defconfig + export UBOOT_CFG_CORTEXA=j784s4_evm_a72_defconfig + export TFA_BOARD=j784s4 + export TFA_EXTRA_ARGS="K3_USART=0x8" + export OPTEE_PLATFORM=k3-j784s4 + export OPTEE_EXTRA_ARGS="CFG_CONSOLE_UART=0x8" .. j784s4_evm_rst_include_start_build_steps
@@ -326,6 +326,6 @@ Debugging U-Boot on J784S4-EVM and AM69-SK To start OpenOCD and connect to J784S4-EVM or AM69-SK board, use the following. -.. code-block:: bash +.. prompt:: bash openocd -f board/ti_j784s4evm.cfg
Signature · 1 line
2.49.0
PATCH 2/2 doc: ti: k3: add language for code-block directive
The code-block directive supports the optional language property which enables syntax highlighting for the block[1].
This patch adds the relevant language property for code-blocks in k3 docs.
[1]:
https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-code-block
--- doc/board/ti/k3.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
doc/board/ti/k3.rst +5 -5
@@ -460,7 +460,7 @@ The Kernel FIT Image that we have has Kernel Image, DTB and the DTBOs. It supports packing multiple images and configurations that allow you to choose any configuration at runtime to boot from. -.. code-block:: +.. code-block:: dts /dts-v1/;
@@ -484,7 +484,7 @@ choose any configuration at runtime to boot from. * Sample Images -.. code-block:: +.. code-block:: dts kernel-1 { description = "Linux kernel";
@@ -533,7 +533,7 @@ corresponding configuration node as follows. * Sample Configurations -.. code-block:: +.. code-block:: dts conf-ti_k3-j721e-common-proc-board.dtb { description = "Linux kernel, FDT blob";
@@ -585,7 +585,7 @@ Generating the fitImage For e.g - .. code-block:: + .. code-block:: diff diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_defconfig index a5c1df7e0054..6d0126d955ef 100644
@@ -605,7 +605,7 @@ Generating the fitImage For e.g - .. code-block:: + .. code-block:: diff diff --git a/arch/arm/dts/k3-j721e-binman.dtsi b/arch/arm/dts/k3-j721e-binman.dtsi index 673be646b1e3..752fa805fe8d 100644
Signature · 1 line
2.49.0