Commit Graph

2 Commits

Author SHA1 Message Date
jaywcjlove ac04ffd50b doc: update modetest.md (#518) 2023-07-10 15:58:18 +08:00
Qliangw cd7efff1a5
add(drm): modetest.md (#518)
* add(drm): modetest.md

* feat(drm): add compilation and installation example for modetest tool  ## Description  This commit adds an example for compiling and installing the modetest tool, which is used for testing and validating DRM (Direct Rendering Manager) driver functionality.  ## Compilation and Installation Example  Here is an example of how to compile and install the modetest tool:  1. Clone the modetest repository from the source:     ```shell    git clone https://github.com/dvdhrm/drm-tests.git    ```  2. Change into the modetest directory:     ```shell    cd drm-tests/modetest    ```  3. Install the necessary dependencies for compilation. This may vary depending on your distribution. For example, on Ubuntu, you can install the required packages using the following command:     ```shell    sudo apt-get install build-essential libdrm-dev    ```  4. Build the modetest tool:     ```shell    make    ```  5. Optionally, you can run the modetest tool directly from the build directory:     ```shell    ./modetest    ```  6. If you want to install the modetest tool system-wide, use the following command:     ```shell    sudo make install    ```     This will install the modetest binary into the appropriate system directories.  7. You can now run the modetest tool from anywhere on your system:     ```shell    modetest    ```  Please note that the compilation and installation process may vary depending on your system configuration and distribution. Make sure to follow the specific instructions provided by the modetest repository or consult the documentation for your distribution for more accurate and detailed instructions.
2023-07-10 15:42:11 +08:00