Add grpc to build

Also:
* fix typo in rpm post install script
* for RPM, tell CPack to exclude intermediate directories
  in rpm file

Change-Id: I9dbb4901298d3699e092b53b339f5cb1d77b4edb
(cherry picked from commit e894cfa757aae8343afb373ce4ae60a1aa950a91)


[ROCm/rdc commit: 9051b752c4]
This commit is contained in:
Chris Freehill
2020-09-11 08:47:33 -05:00
parent a88fc1829c
commit 13cfa9cb31
4 changed files with 28 additions and 5 deletions
+3 -1
View File
@@ -1,6 +1,7 @@
#/bin/bash
RDC_LIB_DIR=@RDC_CLIENT_ROOT_PATH@/rdc/lib
GRPC_LIB_DIR=/usr/grpc/lib
# This will return 0 if an id is created and non-zero if
# it already exists
@@ -10,7 +11,8 @@ do_create_rdc_user() {
# librdc_client.so
do_ldconfig() {
echo $RDC_LIB_DIR > /etc/ld.so.conf.d/x86_64-librdc_client.conf && ldconfig
echo "$RDC_LIB_DIR" > /etc/ld.so.conf.d/x86_64-librdc_client.conf
echo "$GRPC_LIB_DIR" >> /etc/ld.so.conf.d/x86_64-librdc_client.conf && ldconfig
do_create_rdc_user
+8 -2
View File
@@ -1,10 +1,16 @@
#!/bin/bash
RDC_LIB_DIR=@RDC_CLIENT_ROOT_PATH@/rdc/lib
GRPC_LIB_DIR=/usr/grpc/lib
do_create_rdc_user() {
useradd -r -s /bin/nologin rdc
}
do_create_rpc_user
echo -e "${RDC_LIB_DIR}\n${RDC_LIB_DIR}64" > /etc/ld.so.conf.d/x86_64-librdc_client.conf && ldconfig
do_create_rdc_user
echo "$GRPC_LIB_DIR" > /etc/ld.so.conf.d/x86_64-librdc_client.conf
echo "$GRPC_LIB_DIR"64 >> /etc/ld.so.conf.d/x86_64-librdc_client.conf
echo "$RDC_LIB_DIR" >> /etc/ld.so.conf.d/x86_64-librdc_client.conf
echo "$RDC_LIB_DIR"64 >> /etc/ld.so.conf.d/x86_64-librdc_client.conf
ldconfig