forked from mer-hybris/build-script
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathahal.sh
executable file
·42 lines (34 loc) · 1.04 KB
/
ahal.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
TOOLDIR="$(dirname `which $0`)"
source "$TOOLDIR/utility-functions.inc"
# Build droid-hal and other middleware
# To be executed under the Mer SDK
[ -z "$MERSDK" ] && ${TOOLDIR}/exec-mer.sh $0
[ -z "$MERSDK" ] && exit 0
source ~/.hadk.env
cd $ANDROID_ROOT
mchapter "7.1.1"
minfo "updating mer sdk"
sudo zypper ref -f ; sudo zypper -n dup
if repo_is_set "$EXTRA_REPO"; then
minfo "Add remote extra repo"
sb2 -t $VENDOR-$DEVICE-armv7hl -R -m sdk-install ssu ar extra-$DEVICE $EXTRA_REPO
fi
if repo_is_set "$MW_REPO"; then
minfo "Add remote mw repo"
sb2 -t $VENDOR-$DEVICE-armv7hl -R -m sdk-install ssu ar mw-$DEVICE-hal $MW_REPO
fi
rm -fr hybris/dhd2modular
if [[ -d hybris/dhd2modular ]] ; then
pushd hybris/dhd2modular
git pull
popd
else
pushd hybris
git clone [email protected]:alinelena/dhd2modular.git
popd
fi
hybris/dhd2modular/dhd2modular.sh migrate 2>&1 | tee $ANDROID_ROOT/dhd.migrate.log
#./rpm/dhd/helpers/add_new_device.sh
set -x
hybris/dhd2modular/dhd2modular.sh build 2>&1 | tee $ANDROID_ROOT/dhd.build.log