[edk2] [PATCH edk2-platforms 10/41] Readme : Add Readme.md file.

Leif Lindholm leif.lindholm at linaro.org
Tue Dec 18 10:41:19 PST 2018


On Wed, Nov 28, 2018 at 08:31:24PM +0530, Meenakshi Aggarwal wrote:
> Readme.md to explain how to build NXP board packages.
> 

Could you add a link to this file from top-level Readme.md (towards
the very end)?

> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal at nxp.com>
> ---
>  Platform/NXP/Readme.md | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
>  create mode 100644 Platform/NXP/Readme.md
> 
> diff --git a/Platform/NXP/Readme.md b/Platform/NXP/Readme.md
> new file mode 100644
> index 0000000..902bafe
> --- /dev/null
> +++ b/Platform/NXP/Readme.md
> @@ -0,0 +1,24 @@
> +Support for all NXP boards is available in this directory.
> +
> +# How to build
> +
> +1. Set toolchain path.
> +
> +   export PATH=<TOOLCHAIN_PATH>/gcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu/bin/:$PATH
> +
> +2. Export following variables needed for compilation.
> +
> +   export CROSS_COMPILE=aarch64-linux-gnu-
> +   export GCC_ARCH_PREFIX=GCC49_AARCH64_PREFIX
> +   export GCC49_AARCH64_PREFIX=aarch64-linux-gnu-
> +   export PACKAGES_PATH=<EDK2_PATH>/edk2/edk2-platforms
> +

Can you check whether you are happy with the generic build
instructions in the top-level Readme.md and improve those if not?
Then you could reference those rather than repeating.

/
    Leif

> +3. Build desired board package
> +
> +   source edksetup.sh
> +   build -p "path to package's description (.dsc) file" -a AARCH64 -t GCC49 -b DEBUG/RELEASE clean
> +
> +   e.g.
> +   build -p "$PACKAGES_PATH/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc" -a AARCH64 -t GCC49 -b DEBUG clean
> +   build -p "$PACKAGES_PATH/Platform/NXP/LS1043aRdbPkg/LS1043aRdbPkg.dsc" -a AARCH64 -t GCC49 -b DEBUG
> +
> -- 
> 1.9.1
> 


More information about the edk2-devel mailing list