From 0dfc2ea1034863620a8fba5f15f54b9b84df416d Mon Sep 17 00:00:00 2001 From: Glauber Maroto Ferreira Date: Mon, 6 Dec 2021 10:14:25 -0300 Subject: [PATCH] doc: samples: display: update documentation - fixes sample codes' relative paths - updates instructions to build and run for native posix platforms on its 64 flavor. Signed-off-by: Glauber Maroto Ferreira --- samples/subsys/display/cfb/README.rst | 2 +- samples/subsys/display/cfb_custom_font/README.rst | 2 +- samples/subsys/display/cfb_shell/README.rst | 2 +- samples/subsys/display/grove_display/README.rst | 2 +- samples/subsys/display/lvgl/README.rst | 9 ++++++--- samples/subsys/display/lvgl/sample.yaml | 2 +- 6 files changed, 11 insertions(+), 8 deletions(-) diff --git a/samples/subsys/display/cfb/README.rst b/samples/subsys/display/cfb/README.rst index 1fd236bbcb2..8e9a71de3a4 100644 --- a/samples/subsys/display/cfb/README.rst +++ b/samples/subsys/display/cfb/README.rst @@ -21,7 +21,7 @@ Building and Running Build this sample application with the following commands: .. zephyr-app-commands:: - :zephyr-app: samples/display/cfb + :zephyr-app: samples/subsys/display/cfb :board: reel_board :goals: build :compact: diff --git a/samples/subsys/display/cfb_custom_font/README.rst b/samples/subsys/display/cfb_custom_font/README.rst index 8a82b2379a8..b390a8c5518 100644 --- a/samples/subsys/display/cfb_custom_font/README.rst +++ b/samples/subsys/display/cfb_custom_font/README.rst @@ -32,7 +32,7 @@ directory: Example building for the reel_board with SSD16XX display support: .. zephyr-app-commands:: - :zephyr-app: samples/display/cfb_custom_font + :zephyr-app: samples/subsys/display/cfb_custom_font :host-os: unix :board: reel_board :goals: flash diff --git a/samples/subsys/display/cfb_shell/README.rst b/samples/subsys/display/cfb_shell/README.rst index e9265f4cd9d..9f52ec8dcd9 100644 --- a/samples/subsys/display/cfb_shell/README.rst +++ b/samples/subsys/display/cfb_shell/README.rst @@ -14,7 +14,7 @@ Building and Running Build the sample app by choosing the target board, for example: .. zephyr-app-commands:: - :zephyr-app: samples/display/cfb_shell + :zephyr-app: samples/subsys/display/cfb_shell :board: reel_board :goals: build diff --git a/samples/subsys/display/grove_display/README.rst b/samples/subsys/display/grove_display/README.rst index 71299f02695..05dcf5de8cb 100644 --- a/samples/subsys/display/grove_display/README.rst +++ b/samples/subsys/display/grove_display/README.rst @@ -41,7 +41,7 @@ shield interface. For example, it can be run on the FRDM K64F board as described below: .. zephyr-app-commands:: - :zephyr-app: samples/display/grove_display + :zephyr-app: samples/subsys/display/grove_display :board: frdm_k64f :goals: flash :compact: diff --git a/samples/subsys/display/lvgl/README.rst b/samples/subsys/display/lvgl/README.rst index e708ca79492..197cf3a0a6d 100644 --- a/samples/subsys/display/lvgl/README.rst +++ b/samples/subsys/display/lvgl/README.rst @@ -49,7 +49,7 @@ Building and Running Example building for :ref:`nrf52840dk_nrf52840`: .. zephyr-app-commands:: - :zephyr-app: samples/display/lvgl + :zephyr-app: samples/subsys/display/lvgl :board: nrf52840dk_nrf52840 :shield: adafruit_2_8_tft_touch_v2 :goals: build flash @@ -57,9 +57,12 @@ Example building for :ref:`nrf52840dk_nrf52840`: Example building for :ref:`native_posix`: .. zephyr-app-commands:: - :zephyr-app: samples/display/lvgl + :zephyr-app: samples/subsys/display/lvgl :board: native_posix - :goals: build flash + :goals: build run + +Alternatively, if building from a 64-bit host machine, the previous target +board argument may also be replaced by ``native_posix_64``. References ********** diff --git a/samples/subsys/display/lvgl/sample.yaml b/samples/subsys/display/lvgl/sample.yaml index 144aec000f1..6feebb89744 100644 --- a/samples/subsys/display/lvgl/sample.yaml +++ b/samples/subsys/display/lvgl/sample.yaml @@ -39,7 +39,7 @@ tests: tags: shield sample.display.dummy: build_only: true - platform_allow: native_posix + platform_allow: native_posix native_posix_64 extra_args: DTC_OVERLAY_FILE="dummy_dc.overlay" extra_configs: - CONFIG_DUMMY_DISPLAY=y