summaryrefslogtreecommitdiffstats
path: root/update-makefiles.sh
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2016-12-12 09:24:10 -0800
committerSteven Moreland <smoreland@google.com>2016-12-12 09:24:10 -0800
commit13b5d8034e5ca4700cee9bfabab50a68748cfd28 (patch)
treea88af4e2518512432d9d93e7b52041b5b3d40ff7 /update-makefiles.sh
parent7a41d9d59f23e3c897f499118c9dba69a6baf2d4 (diff)
downloadandroid_hardware_interfaces-13b5d8034e5ca4700cee9bfabab50a68748cfd28.tar.gz
android_hardware_interfaces-13b5d8034e5ca4700cee9bfabab50a68748cfd28.tar.bz2
android_hardware_interfaces-13b5d8034e5ca4700cee9bfabab50a68748cfd28.zip
Add check to update-makefiles.sh.
Now that we also have packages like android.hidl.base which reside in system/libhidl/transport which are read in by hidl-gen (see -randroid.hidl:system/libhidl/transport in the same file), we can display a pretty warning message if they are missing. We'll have to remember to update this after b/33276472. Test: ran update-makefiles.sh Change-Id: Ia3e3183dd5139cf3a8d1bf7bd25c201d1b098c79
Diffstat (limited to 'update-makefiles.sh')
-rwxr-xr-xupdate-makefiles.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/update-makefiles.sh b/update-makefiles.sh
index 0f89dfc5d..f153a8413 100755
--- a/update-makefiles.sh
+++ b/update-makefiles.sh
@@ -5,6 +5,11 @@ if [ ! -d hardware/interfaces ] ; then
exit 1;
fi
+if [ ! -d system/libhidl/transport ] ; then
+ echo "Where is system/libhidl/transport?";
+ exit 1;
+fi
+
packages=$(pushd hardware/interfaces > /dev/null; \
find . -type f -name \*.hal -exec dirname {} \; | sort -u | \
cut -c3- | \