diff --git a/.github/actions/build_ci/README.md b/.github/actions/build_ci/README.md index 098c7bdb..1998d968 100644 --- a/.github/actions/build_ci/README.md +++ b/.github/actions/build_ci/README.md @@ -7,15 +7,20 @@ This action test builds for a specified target. ### `target` **Required** the build target. Default `"linux"`. + The supported targets are: +``` linux generic arm freertos zephyr +``` ## Example usage +``` uses: ./.github/actions/build_ci with: - target: freertos \ No newline at end of file + target: freertos +``` diff --git a/README.md b/README.md index 23313bd6..e4e27765 100644 --- a/README.md +++ b/README.md @@ -33,12 +33,12 @@ in cmake command line to disable the option. ## Build Steps ### Building for Linux Host -``` - $ git clone https://github.com/OpenAMP/libmetal.git - $ mkdir -p libmetal/ - $ cd libmetal/ - $ cmake .. - $ make VERBOSE=1 DESTDIR= install +```shell +git clone https://github.com/OpenAMP/libmetal.git +mkdir -p libmetal/ +cd libmetal/ +cmake .. +make VERBOSE=1 DESTDIR= install ``` ### Cross Compiling for Linux Target @@ -69,11 +69,11 @@ example toolchain file: ``` * Note: other toolchain files can be found in the `cmake/platforms/` directory. * Compile with your toolchain file. -``` - $ mkdir -p build-libmetal - $ cd build-libmetal - $ cmake -DCMAKE_TOOLCHAIN_FILE= - $ make VERBOSE=1 DESTDIR= install +```shell +mkdir -p build-libmetal +cd build-libmetal +cmake -DCMAKE_TOOLCHAIN_FILE= +make VERBOSE=1 DESTDIR= install ``` * Note: When building baremetal for Xilinx 2018.3 or earlier environments, add -DXILINX_PRE_V2019 to your CMake invocation. This will include the @@ -91,17 +91,17 @@ running a Zephyr environment. As Zephyr uses CMake, we build libmetal library and test application as targets of Zephyr CMake project. Here is how to build libmetal for Zephyr: -``` - $ export ZEPHYR_TOOLCHAIN_VARIANT=zephyr - $ export ZEPHYR_SDK_INSTALL_DIR= - $ source /zephyr-env.sh +```shell +export ZEPHYR_TOOLCHAIN_VARIANT=zephyr +export ZEPHYR_SDK_INSTALL_DIR= +source /zephyr-env.sh - $ cmake -DWITH_ZEPHYR=on -DBOARD=qemu_cortex_m3 \ +cmake -DWITH_ZEPHYR=on -DBOARD=qemu_cortex_m3 \ [-DWITH_TESTS=on] - $ make VERBOSE=1 all +make VERBOSE=1 all # If we have turned on tests with "-DWITH_TESTS=on" when we run cmake, # we launch libmetal test on Zephyr QEMU platform as follows: - $ make VERBOSE=1 run +make VERBOSE=1 run ``` ## Interfaces @@ -280,18 +280,18 @@ compatible with version the is the license covering the OpenAMP distribution as a whole. In practice, use the following tag instead of the full license text in the individual files: - ``` - SPDX-License-Identifier: BSD-3-Clause - ``` +``` +SPDX-License-Identifier: BSD-3-Clause +``` ### Signed-off-by Commit messages must contain Signed-off-by: line and your email must match the change authorship information. Make sure your .gitconfig is set up correctly: - ``` - git config --global user.name "first-name Last-Namer" - git config --global user.email "yourmail@company.com" - ``` +```shell +git config --global user.name "first-name Last-Namer" +git config --global user.email "yourmail@company.com" +``` ### Assisted-by When AI tools are used to contribute to the OpenAMP project, proper attribution helps @@ -319,7 +319,9 @@ command. Run gitlint locally in your tree and branch where your patches have been committed: - ```gitlint``` +```shell +gitlint +``` Note, gitlint only checks HEAD (the most recent commit), so you should run it after each commit, or use the --commits option to specify a commit range @@ -336,10 +338,9 @@ conformity. Checkpatch is available in the scripts directory. To check your \ commits in your git branch: - ``` - ./scripts/checkpatch.pl --strict -g HEAD- - - ``` +```shell +./scripts/checkpatch.pl --strict -g HEAD- +``` ### Send a pull request We use standard GitHub mechanism for pull request. Please refer to GitHub