7ab75a7325
Change-Id: I178faf37dddb5149c1bdc217fa1395b2566194d7 Bug: 31221188
18 lines
530 B
Bash
Executable file
18 lines
530 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ ! -d hardware/interfaces ] ; then
|
|
echo "Where is hardware/interfaces?";
|
|
exit 1;
|
|
fi
|
|
|
|
packages=$(pushd hardware/interfaces > /dev/null; \
|
|
find . -type f -name Android.mk -exec dirname {} \; | \
|
|
cut -c3- | \
|
|
awk -F'/' \
|
|
'{printf("android.hardware"); for(i=1;i<NF;i++){printf(".%s", $i);}; printf("@%s\n", $NF);}'; \
|
|
popd > /dev/null)
|
|
|
|
for p in $packages; do
|
|
echo "Updating $p";
|
|
hidl-gen -Lmakefile -r android.hardware:hardware/interfaces $p;
|
|
done
|