summaryrefslogtreecommitdiffstats
path: root/scripts/make-agl.sh
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-03 08:44:49 +1000
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-26 17:27:36 +1100
commit7e4d6e2f61c97da680591b77fb89a69f69a3af7f (patch)
tree50dffaf47449c074c55c665792cbe76f4f3510df /scripts/make-agl.sh
parente82e7c61dde6ff9bd799cc4b40e8d718cff6951f (diff)
Fix scripts, move all to scripts folder
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'scripts/make-agl.sh')
-rwxr-xr-xscripts/make-agl.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/make-agl.sh b/scripts/make-agl.sh
new file mode 100755
index 0000000..4421af8
--- /dev/null
+++ b/scripts/make-agl.sh
@@ -0,0 +1,12 @@
+#!/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 -- \
+ LDFLAGS= CONFIG_AVIRT=m CONFIG_AVIRT_BUILDLOCAL=y CONFIG_AVIRT_DUMMYAP=m \
+ make -C $sdkpath/sysroots/aarch64-agl-linux/usr/src/kernel M=$(pwd) $@