summaryrefslogtreecommitdiffstats
path: root/update-makefiles.sh
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2016-10-03 13:53:07 -0700
committerSteven Moreland <smoreland@google.com>2016-10-03 13:55:42 -0700
commit7b66dd9b2344764334e5072b0a19ff3bb9c4a5fd (patch)
tree6088f945c41c9718f8fa2c16358da53e8f9b6ccc /update-makefiles.sh
parent242b34edd546e63495466083c80f794cd9180ab2 (diff)
downloadandroid_hardware_interfaces-7b66dd9b2344764334e5072b0a19ff3bb9c4a5fd.tar.gz
android_hardware_interfaces-7b66dd9b2344764334e5072b0a19ff3bb9c4a5fd.tar.bz2
android_hardware_interfaces-7b66dd9b2344764334e5072b0a19ff3bb9c4a5fd.zip
Auto hardware/interfaces/Android.bp
Bug: 31909444 Test: make various interfaces, mma -j Change-Id: Ie2de39572e482415b5279110586a0cb7e5220c8e
Diffstat (limited to 'update-makefiles.sh')
-rwxr-xr-xupdate-makefiles.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/update-makefiles.sh b/update-makefiles.sh
index 567877e09..939a9c712 100755
--- a/update-makefiles.sh
+++ b/update-makefiles.sh
@@ -17,3 +17,18 @@ for p in $packages; do
hidl-gen -Lmakefile -r android.hardware:hardware/interfaces $p;
hidl-gen -Landroidbp -r android.hardware:hardware/interfaces $p;
done
+
+bp="hardware/interfaces/Android.bp"
+androidbps=$(find hardware/interfaces/*/ \
+ -name "Android.bp" \
+ -exec dirname {} \; \
+ | sort)
+
+echo "Updating $bp"
+
+echo "// This is an autogenerated file, do not edit." > $bp;
+echo "subdirs = [" >> $bp;
+for a in $androidbps; do
+ echo " \"${a#*hardware/interfaces/}\"," >> $bp;
+done
+echo "]" >> $bp; \ No newline at end of file