forked from LineageOS/android_hardware_interfaces
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update-base-files.sh
executable file
·52 lines (44 loc) · 1.81 KB
/
update-base-files.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
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
if [ ! -d $ANDROID_BUILD_TOP/hardware/interfaces ] ; then
echo "Where is hardware/interfaces?";
exit 1;
fi
if [ ! -d $ANDROID_BUILD_TOP/system/libhidl/transport ] ; then
echo "Where is system/libhidl/transport?";
exit 1;
fi
echo "WARNING: This script changes files in many places."
# These files only exist to facilitate the easy transition to hidl.
options="-Lexport-header \
-randroid.hardware:hardware/interfaces \
-randroid.hidl:system/libhidl/transport"
# hardware/libhardware
hidl-gen $options \
-o $ANDROID_BUILD_TOP/hardware/libhardware/include/hardware/sensors-base.h \
hidl-gen $options \
-o $ANDROID_BUILD_TOP/hardware/libhardware/include/hardware/nfc-base.h \
hidl-gen $options \
-o $ANDROID_BUILD_TOP/hardware/libhardware/include/hardware/gnss-base.h \
# system/core
hidl-gen $options \
-o $ANDROID_BUILD_TOP/system/core/include/system/graphics-base-v1.0.h \
hidl-gen $options \
-o $ANDROID_BUILD_TOP/system/core/include/system/graphics-base-v1.1.h \
hidl-gen $options \
-o $ANDROID_BUILD_TOP/system/core/include/system/graphics-base-v1.2.h \
# system/media
hidl-gen $options \
-o $ANDROID_BUILD_TOP/system/media/audio/include/system/audio_common-base.h \
hidl-gen $options \
-o $ANDROID_BUILD_TOP/system/media/audio/include/system/audio-base.h \
hidl-gen $options \
-o $ANDROID_BUILD_TOP/system/media/audio/include/system/audio_effect-base.h \