aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/make-agl.sh
blob: 2f88757ee4bffa0a8ebace2fa568985b9470e9f1 (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=6.99.1+snapshot
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) $@