Fix hidl-gen -Lmakefile-impl incorrect import pkgs
Bug: 32256068
Test: mma
Test: examined the output for
hidl-gen -o ~/temp -Lmakefile-impl -r
android.hardware:hardware/interfaces android.hardware.tests.bar@1.0
Change-Id: Ic2b6386c713c831eb432afa6cdc62ffa0329ecf1
diff --git a/main.cpp b/main.cpp
index 9286de5..7a06404 100644
--- a/main.cpp
+++ b/main.cpp
@@ -735,6 +735,11 @@
<< "libhwbinder \\\n"
<< "libutils \\\n"
<< makeLibraryName(packageFQName) << " \\\n";
+
+ for (const auto &importedPackage : importedPackages) {
+ out << makeLibraryName(importedPackage)
+ << " \\\n";
+ }
out.unindent();
out << "\n";