Martijn Coenen | 3079100 | 2016-12-01 15:40:46 +0100 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # TODO(b/33276472) |
Yifan Hong | 2cd440c | 2016-11-23 11:30:36 -0800 | [diff] [blame] | 4 | if [ ! -d system/libhidl/transport ] ; then |
| 5 | echo "Where is system/libhidl/transport?"; |
Martijn Coenen | 3079100 | 2016-12-01 15:40:46 +0100 | [diff] [blame] | 6 | exit 1; |
| 7 | fi |
| 8 | |
Steven Moreland | 2ef31d8 | 2016-12-21 14:38:23 -0800 | [diff] [blame] | 9 | packages=( |
Steven Moreland | 346cf51 | 2017-02-16 19:23:24 -0800 | [diff] [blame] | 10 | android.hidl.allocator@1.0 |
Steven Moreland | 2ef31d8 | 2016-12-21 14:38:23 -0800 | [diff] [blame] | 11 | android.hidl.base@1.0 |
| 12 | android.hidl.manager@1.0 |
| 13 | android.hidl.memory@1.0 |
| 14 | android.hidl.token@1.0 |
| 15 | ) |
Yifan Hong | 2cd440c | 2016-11-23 11:30:36 -0800 | [diff] [blame] | 16 | |
Steven Moreland | 2ef31d8 | 2016-12-21 14:38:23 -0800 | [diff] [blame] | 17 | for package in "${packages[@]}"; do |
| 18 | echo "Updating $package." |
| 19 | hidl-gen -Lmakefile -r android.hidl:system/libhidl/transport $package |
| 20 | hidl-gen -Landroidbp -r android.hidl:system/libhidl/transport $package |
| 21 | done |