summaryrefslogtreecommitdiffstats
path: root/scripts/make-agl.sh
blob: f4a62354be41545342f9b3e64ed644bdefc084ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

SDK_ROOT=/opt/agl-sdk
SDK_VERSION=7.0.0
SDK_VAR=aarch64

# Source environment
unset LD_LIBRARY_PATH
source $SDK_ROOT/$SDK_VERSION-$SDK_VAR/environment-setup-aarch64-agl-linux

# Build
LDFLAGS= \
CONFIG_AVIRT=m CONFIG_AVIRT_BUILDLOCAL=y			\
CONFIG_AVIRT_AP_DUMMY=m						\
CONFIG_AVIRT_AP_LOOPBACK=m					\
make -C $SDK_ROOT/$SDK_VERSION-$SDK_VAR/sysroots/$SDK_VAR-agl-linux/usr/src/kernel M=$(pwd) $@