From 7e4d6e2f61c97da680591b77fb89a69f69a3af7f Mon Sep 17 00:00:00 2001 From: Mark Farrugia Date: Wed, 3 Oct 2018 08:44:49 +1000 Subject: Fix scripts, move all to scripts folder Signed-off-by: Mark Farrugia --- make-agl.sh | 12 ------------ scripts/load.sh | 10 ++++++++++ scripts/make-agl.sh | 12 ++++++++++++ scripts/unload.sh | 10 ++++++++++ unload.sh | 10 ---------- 5 files changed, 32 insertions(+), 22 deletions(-) delete mode 100755 make-agl.sh create mode 100755 scripts/load.sh create mode 100755 scripts/make-agl.sh create mode 100755 scripts/unload.sh delete mode 100755 unload.sh diff --git a/make-agl.sh b/make-agl.sh deleted file mode 100755 index 4421af8..0000000 --- a/make-agl.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/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) $@ diff --git a/scripts/load.sh b/scripts/load.sh new file mode 100755 index 0000000..2cd472d --- /dev/null +++ b/scripts/load.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +# Load the core +insmod avirt_core.ko + +# Load the additional Audio Paths +#insmod dummy/avirt_dummyap.ko +insmod loopback/avirt_loopbackap.ko + +echo "Drivers Loaded!" 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) $@ diff --git a/scripts/unload.sh b/scripts/unload.sh new file mode 100755 index 0000000..a011a2b --- /dev/null +++ b/scripts/unload.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +rm_module() { + lsmod |grep "^$1\>" && rmmod $1 || true +} + +rm_module avirt_loopbackap +rm_module avirt_dummyap +rm_module avirt_core +echo "Drivers Removed!" diff --git a/unload.sh b/unload.sh deleted file mode 100755 index a011a2b..0000000 --- a/unload.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -rm_module() { - lsmod |grep "^$1\>" && rmmod $1 || true -} - -rm_module avirt_loopbackap -rm_module avirt_dummyap -rm_module avirt_core -echo "Drivers Removed!" -- cgit 1.2.3-korg