grpc: Split unreferenced ALTS libs to grpc-alts

Package libgrpc++_alts.so.* and libgrpc++_error_details.so.* into a
separate ${PN}-alts subpackage via PACKAGE_BEFORE_PN. No binary or
shared library in gBMC links against these libraries (0 DT_NEEDED
references across the rootfs), avoiding 132 KiB (aarch64) / 26.6 KiB
(armv7a) of unused shared libraries in the target image.

Tested:
Built obmc-phosphor-image for arm32 and arm64. Verified that
libgrpc++_alts.so.* and libgrpc++_error_details.so.* are omitted from
the rootfs and that readelf -d confirms 0 missing DT_NEEDED
dependencies across all rootfs binaries.
- platform5: http://fusion2/f52e85e0-ffd0-3e90-b269-f29c0efed958
- platform15: http://fusion2/13f4d265-fcd4-3c71-9393-96d7eb97061b
- platform18: http://fusion2/27afd1d3-96e1-3b13-8ec6-0df984230234
- platform17: http://fusion2/cc4480a5-ba5e-3937-acea-2416b0fe95ef
- platform11+ext: http://fusion2/f5f759b0-82dd-3708-a13d-a4f4990de224
- platform11: http://fusion2/21ec7f63-ac7d-3a71-b5fd-d1a3f0e37610
- platform25: http://fusion2/b9079702-6179-3eba-afe3-7eb161817d45
Google-Bug-Id: 481049523
Change-Id: I8fb5952ef751f22203c005f849e3713767ad09ac
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/recipes-devtools/grpc/grpc_%.bbappend b/recipes-devtools/grpc/grpc_%.bbappend
index ec5aa85..5ed54d8 100644
--- a/recipes-devtools/grpc/grpc_%.bbappend
+++ b/recipes-devtools/grpc/grpc_%.bbappend
@@ -19,7 +19,7 @@
     -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
 "
 
-PACKAGE_BEFORE_PN:append = " ${PN}-unsecure ${PN}-channelz"
+PACKAGE_BEFORE_PN:append = " ${PN}-unsecure ${PN}-channelz ${PN}-alts"
 
 FILES:${PN}-unsecure = " \
   ${libdir}/libgrpc*_unsecure${SOLIBS} \
@@ -28,3 +28,9 @@
 FILES:${PN}-channelz = " \
   ${libdir}/libgrpcpp_channelz${SOLIBS} \
 "
+
+FILES:${PN}-alts = " \
+  ${libdir}/libgrpc++_alts${SOLIBS} \
+  ${libdir}/libgrpc++_error_details${SOLIBS} \
+"
+