diff options
author | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-12-13 17:11:20 +1100 |
---|---|---|
committer | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-12-13 17:14:48 +1100 |
commit | 72e39550f316404a764dd2fa11b00a110ae38c61 (patch) | |
tree | 3af6051537527c49152ce510947f9f8362e452fd /scripts/make-agl-xds.sh | |
parent | 6b9718b2ccd5d1ae50f33047a323acd72531fd13 (diff) |
Add build script for AGL without XDS
This adds the function to build with or without AGL XDS build
system. Functionality is updated to work with vscode.
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'scripts/make-agl-xds.sh')
-rwxr-xr-x | scripts/make-agl-xds.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/make-agl-xds.sh b/scripts/make-agl-xds.sh new file mode 100755 index 0000000..5cb8048 --- /dev/null +++ b/scripts/make-agl-xds.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# Get SDK path +sdk_id=$1 # first arg must be XDS_SDK_ID +shift 1 +long_sdkpath=$(xds-cli sdks get $sdk_id | grep Path) +sdkpath=${long_sdkpath:4} + +# Build +/opt/AGL/bin/xds-cli exec --config xds-project.conf -- \ + CONFIG_AVIRT=m CONFIG_AVIRT_BUILDLOCAL=y \ + CONFIG_AVIRT_AP_DUMMY=m \ + CONFIG_AVIRT_AP_LOOPBACK=m \ + make -C $sdkpath/sysroots/aarch64-agl-linux/usr/src/kernel M=$(pwd) $@ |