author | Treehugger Robot <treehugger-gerrit@google.com> | |
Mon, 22 Oct 2018 19:30:41 +0000 (19:30 +0000) | ||
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | |
Mon, 22 Oct 2018 19:30:41 +0000 (19:30 +0000) |
update-makefiles.sh | patch | blob | history |
diff --git a/update-makefiles.sh b/update-makefiles.sh
index b7e42355e613ecf599bb2045b3ab35c559cab5f4..14c5b01cacc2f3d1b769f1124993f072d343cf4c 100755 (executable)
--- a/update-makefiles.sh
+++ b/update-makefiles.sh
#!/bin/bash
+# Script to update Android make-files for HAL and VTS modules.
+
+set -e
+
+if [ -z "$ANDROID_BUILD_TOP" ]; then
+ echo "Missing ANDROID_BUILD_TOP env variable. Run 'lunch' first."
+ exit 1
+fi
source $ANDROID_BUILD_TOP/system/tools/hidl/update-makefiles-helper.sh
"android.hardware:hardware/interfaces" \
"android.hidl:system/libhidl/transport"
+echo "Updating files at $ANDROID_BUILD_TOP/test/vts-testcase/hal"
+pushd $ANDROID_BUILD_TOP/test/vts-testcase/hal
+./script/update_makefiles.py
+popd
+