Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51f94235 authored by Enrico Granata's avatar Enrico Granata Committed by Iliyan Malchev
Browse files

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
parent ac7f1d21
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -20,7 +20,9 @@ packages=$(pushd hardware/interfaces > /dev/null; \
for p in $packages; do
  echo "Updating $p";
  hidl-gen -Lmakefile -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport $p;
  rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
  hidl-gen -Landroidbp -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport $p;
  rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
done

# subdirectories of hardware/interfaces which contain an Android.bp file