blob: 7f43031e412289c5a16f1ff82c22c52669a19ef2 [file] [log] [blame]
Martijn Coenen30791002016-12-01 15:40:46 +01001#!/bin/bash
2
3# TODO(b/33276472)
Yifan Hong2cd440c2016-11-23 11:30:36 -08004if [ ! -d system/libhidl/transport ] ; then
5 echo "Where is system/libhidl/transport?";
Martijn Coenen30791002016-12-01 15:40:46 +01006 exit 1;
7fi
8
Steven Moreland2ef31d82016-12-21 14:38:23 -08009packages=(
Steven Moreland346cf512017-02-16 19:23:24 -080010 android.hidl.allocator@1.0
Steven Moreland2ef31d82016-12-21 14:38:23 -080011 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 Hong2cd440c2016-11-23 11:30:36 -080016
Steven Moreland2ef31d82016-12-21 14:38:23 -080017for 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
21done