grpc: fix installed CMake package 58/27558/1
authorScott Murray <scott.murray@konsulko.com>
Wed, 25 May 2022 19:45:40 +0000 (15:45 -0400)
committerScott Murray <scott.murray@konsulko.com>
Thu, 26 May 2022 15:27:50 +0000 (11:27 -0400)
commit9d336d94a35b124e59c83b0ea08f93f1a51bb165
tree83ae6ba0a5bf4acf6829b6246105ab7853c88d91
parentd6b2260cb2114668d025d80068855a615e785d3b
grpc: fix installed CMake package

The CMake package configuration installed by grpc ends up not being
usable in practice.  Add a bbappend that adds the fixes:
- a do_install:append to correct the version number to the actual
  version, as it gets mangled somehow during the grpc build.  This
  is required to avoid triggering version mismatch checks when using
  the package in CMake.
- backport a fix from the kirkstone branch of meta-openembedded that
  splits the host tools (i.e. protoc plugins) out into a separate
  CMake package.  This avoids failures due to CMake not playing well
  with the split native versus target sysroots that OpenEmbedded
  uses.  This may be revisited if grpc upstream comes up with a
  different approach.

Bug-AGL: SPEC-4405

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Ia284901c148c1fcdf1b8ab77947d8be9445be631
recipes-devtools/grpc/files/0001-cmake-add-separate-export-for-plugin-targets.patch [new file with mode: 0644]
recipes-devtools/grpc/files/0001-cmake-add-separate-export-for-plugin-targets.patch.old [new file with mode: 0644]
recipes-devtools/grpc/grpc_1.24.3.bbappend [new file with mode: 0644]
recipes-devtools/grpc/grpc_agldemo.inc [new file with mode: 0644]