diff options
author | Enrico Granata | 2016-12-22 13:42:13 -0600 |
---|---|---|
committer | Iliyan Malchev | 2016-12-22 15:59:26 -0600 |
commit | 51f94235b942db6afbb3674990628bb4bfa07063 (patch) | |
tree | 34292f1f1d331f297bce58f14a7e15581f8a2926 /update-makefiles.sh | |
parent | ac7f1d21e8fec7f50efb2d21facf01521ccd9df2 (diff) | |
download | platform-hardware-interfaces-51f94235b942db6afbb3674990628bb4bfa07063.tar.gz platform-hardware-interfaces-51f94235b942db6afbb3674990628bb4bfa07063.tar.xz platform-hardware-interfaces-51f94235b942db6afbb3674990628bb4bfa07063.zip |
Make update-makefiles.sh exit if any of the hidl invocations fail
This makes it easier for the user to discover that one (or more) of
their source files contain errors
Test: ran the script
Change-Id: Ibdb1f363d934605f47ca7df0d56bb387a47f7482
Diffstat (limited to 'update-makefiles.sh')
-rwxr-xr-x | update-makefiles.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/update-makefiles.sh b/update-makefiles.sh index f153a841..d0cb91c3 100755 --- a/update-makefiles.sh +++ b/update-makefiles.sh | |||
@@ -20,7 +20,9 @@ packages=$(pushd hardware/interfaces > /dev/null; \ | |||
20 | for p in $packages; do | 20 | for p in $packages; do |
21 | echo "Updating $p"; | 21 | echo "Updating $p"; |
22 | hidl-gen -Lmakefile -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport $p; | 22 | hidl-gen -Lmakefile -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport $p; |
23 | rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi | ||
23 | hidl-gen -Landroidbp -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport $p; | 24 | hidl-gen -Landroidbp -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport $p; |
25 | rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi | ||
24 | done | 26 | done |
25 | 27 | ||
26 | # subdirectories of hardware/interfaces which contain an Android.bp file | 28 | # subdirectories of hardware/interfaces which contain an Android.bp file |