diff options
author | Steven Moreland | 2017-09-25 20:43:27 -0500 |
---|---|---|
committer | Steven Moreland | 2017-09-25 20:43:27 -0500 |
commit | 34af50a7a513c725711d3e2e5b9eecabf1b5a460 (patch) | |
tree | 06f79675d15f941ef8bbd43016262ada49d58ee1 /update-base-files.sh | |
parent | 26a0bb27627c43b599a7807ecf5ec594a525660a (diff) | |
download | platform-hardware-interfaces-34af50a7a513c725711d3e2e5b9eecabf1b5a460.tar.gz platform-hardware-interfaces-34af50a7a513c725711d3e2e5b9eecabf1b5a460.tar.xz platform-hardware-interfaces-34af50a7a513c725711d3e2e5b9eecabf1b5a460.zip |
Update base files script works anywhere.
Test: update-base-files.sh
Change-Id: I8a7e935cc685c8d389a46b28e33ea20c61bcc1ac
Diffstat (limited to 'update-base-files.sh')
-rwxr-xr-x | update-base-files.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/update-base-files.sh b/update-base-files.sh index 1eb6b51c..bb99d229 100755 --- a/update-base-files.sh +++ b/update-base-files.sh | |||
@@ -1,11 +1,11 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | if [ ! -d hardware/interfaces ] ; then | 3 | if [ ! -d $ANDROID_BUILD_TOP/hardware/interfaces ] ; then |
4 | echo "Where is hardware/interfaces?"; | 4 | echo "Where is hardware/interfaces?"; |
5 | exit 1; | 5 | exit 1; |
6 | fi | 6 | fi |
7 | 7 | ||
8 | if [ ! -d system/libhidl/transport ] ; then | 8 | if [ ! -d $ANDROID_BUILD_TOP/system/libhidl/transport ] ; then |
9 | echo "Where is system/libhidl/transport?"; | 9 | echo "Where is system/libhidl/transport?"; |
10 | exit 1; | 10 | exit 1; |
11 | fi | 11 | fi |
@@ -20,24 +20,24 @@ options="-Lexport-header \ | |||
20 | 20 | ||
21 | # hardware/libhardware | 21 | # hardware/libhardware |
22 | hidl-gen $options \ | 22 | hidl-gen $options \ |
23 | -o hardware/libhardware/include/hardware/sensors-base.h \ | 23 | -o $ANDROID_BUILD_TOP/hardware/libhardware/include/hardware/sensors-base.h \ |
24 | android.hardware.sensors@1.0 | 24 | android.hardware.sensors@1.0 |
25 | hidl-gen $options \ | 25 | hidl-gen $options \ |
26 | -o hardware/libhardware/include/hardware/nfc-base.h \ | 26 | -o $ANDROID_BUILD_TOP/hardware/libhardware/include/hardware/nfc-base.h \ |
27 | android.hardware.nfc@1.0 | 27 | android.hardware.nfc@1.0 |
28 | hidl-gen $options \ | 28 | hidl-gen $options \ |
29 | -o hardware/libhardware/include/hardware/gnss-base.h \ | 29 | -o $ANDROID_BUILD_TOP/hardware/libhardware/include/hardware/gnss-base.h \ |
30 | android.hardware.gnss@1.0 | 30 | android.hardware.gnss@1.0 |
31 | 31 | ||
32 | # system/core | 32 | # system/core |
33 | hidl-gen $options \ | 33 | hidl-gen $options \ |
34 | -o system/core/include/system/graphics-base.h \ | 34 | -o $ANDROID_BUILD_TOP/system/core/include/system/graphics-base.h \ |
35 | android.hardware.graphics.common@1.0 | 35 | android.hardware.graphics.common@1.0 |
36 | 36 | ||
37 | # system/media | 37 | # system/media |
38 | hidl-gen $options \ | 38 | hidl-gen $options \ |
39 | -o system/media/audio/include/system/audio-base.h \ | 39 | -o $ANDROID_BUILD_TOP/system/media/audio/include/system/audio-base.h \ |
40 | android.hardware.audio.common@2.0 | 40 | android.hardware.audio.common@2.0 |
41 | hidl-gen $options \ | 41 | hidl-gen $options \ |
42 | -o system/media/audio/include/system/audio_effect-base.h \ | 42 | -o $ANDROID_BUILD_TOP/system/media/audio/include/system/audio_effect-base.h \ |
43 | android.hardware.audio.effect@2.0 | 43 | android.hardware.audio.effect@2.0 |