diff options
author | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-10-29 17:43:12 +1100 |
---|---|---|
committer | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-10-29 17:45:19 +1100 |
commit | f55fa7657dd217a71af9198e0bc5754c0cd335ce (patch) | |
tree | a89858857e3e0ec7672866d086e12b3c58cf84e3 /docs/2.Building.md | |
parent | 96aa81e1426e64875850616e12c3415231ed14f8 (diff) | |
parent | 188712f58b309d94d26d7468a792326c464a7eda (diff) |
Merge remote-tracking branch 'agl/master' into flounder
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'docs/2.Building.md')
-rw-r--r-- | docs/2.Building.md | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/docs/2.Building.md b/docs/2.Building.md new file mode 100644 index 0000000..5fd9d23 --- /dev/null +++ b/docs/2.Building.md @@ -0,0 +1,62 @@ +Building AVIRT +=================================== + +## Table of Contents + +1. [Introduction](#intro) +2. [Out of Tree](#out-of-tree) +3. [In Tree](#in-tree) + +<a name="intro"/> + +## Introduction + +The AVIRT module and submodules can be built using a variety of methods. There are Visual Code build tasks for in and out of tree builds, make file support for CLI building (both in and out of tree), and xds build support. + +<a name="out-of-tree"/> + +## Out Of Tree + +### Building with CLI + +To build both AVIRT and the additional Audio Paths out-of-tree, use the following command: + +```sh +$ make +``` + +or + +```sh +$ CONFIG_AVIRT=m CONFIG_AVIRT_BUILDLOCAL=y CONFIG_AVIRT_AP_DUMMY=m CONFIG_AVIRT_AP_LOOPBACK=m make -C /lib/modules/$(uname -r)/build/ M=$(pwd) +``` + +The latter is executed internally with the make file. + +### Building with XDS SDK + +To build both AVIRT and the dummy Audio Path out-of-tree for [AGL](http://docs.automotivelinux.org/) (`aarch64` currently supported), use the [XDS](http://docs.automotivelinux.org/docs/devguides/en/dev/reference/xds/part-1/0_Abstract.html) build system together with the `make_agl.sh` script: + +```sh +$ ./make_agl.sh ${XDS_SDK_ID} +``` + +<a name="in-tree"/> + +## In tree + +The kernal modules can be built in tree, dependent on the avirt repository being located in drivers/staging - If using your own fork of the linux kernel, you will need to update the staging Makefiles and Kconfigs accordingly. + +To build in tree, use the [Fiberdyne Linux fork](https://github.com/fiberdyne/linux), which will automatically clone the AVIRT Driver and required AudioPath modules to the `drivers/staging` directory. You can then turn AVIRT Support on by setting to `<M>`. The drivers can be found here: + +``` +$ make menuconfig + +# Navigate to: Device Drivers--->Staging Drivers--->AVIRT Support +``` + +Finally build the kernel with the configuration selected by making. + +``` +$ make +``` |