3 if [ ! -d hardware/interfaces ] ; then
4 echo "Where is hardware/interfaces?";
8 packages=$(pushd hardware/interfaces > /dev/null; \
9 find . -type f -name \*.hal -exec dirname {} \; | sort -u | \
12 '{printf("android.hardware"); for(i=1;i<NF;i++){printf(".%s", $i);}; printf("@%s\n", $NF);}'; \
15 for p in $packages; do
17 hidl-gen -Lmakefile -r android.hardware:hardware/interfaces $p;
18 hidl-gen -Landroidbp -r android.hardware:hardware/interfaces $p;
21 bp="hardware/interfaces/Android.bp"
22 androidbps=$(find hardware/interfaces/*/ \
29 echo "// This is an autogenerated file, do not edit." > $bp;
30 echo "subdirs = [" >> $bp;
31 for a in $androidbps; do
32 echo " \"${a#*hardware/interfaces/}\"," >> $bp;