On 7/2/20 5:25 PM, Pai G, Sunil wrote:
>>
>>> +
>>>      if [ "${DPDK_VER##refs/*/}" != "${DPDK_VER}" ]; then
>>>          # Avoid using cache for git tree build.
>>>          rm -rf dpdk-dir
>>> @@ -108,7 +112,8 @@ function install_dpdk()
>>>          if [ -f "${VERSION_FILE}" ]; then
>>>              VER=$(cat ${VERSION_FILE})
>>>              if [ "${VER}" = "${DPDK_VER}" ]; then
>>> -                EXTRA_OPTS="${EXTRA_OPTS} 
>>> --with-dpdk=$(pwd)/dpdk-dir/build"
>>> +                sudo ninja -C $(pwd)/dpdk-dir/build install
>>> +                sudo ldconfig
>>
>> I think that installing right here inside the cached folder and just 
>> adjusting
>> environment variables should be a bit faster than re-installing DPDK every 
>> time.
>>
>> This script also will be a good example for people like me, who really don't 
>> want
>> to install development versions of DPDK globally on a work laptop while 
>> testing
>> OVS builds.
> 
> Yes , Thanks for the suggestion. Although ,using an install to a directory 
> with
> a prefix would require this patch from Bruce: 
> https://patches.dpdk.org/patch/72271/
>  (which is not merged yet as of this writing) .without this , OVS would fail 
> to run 
> searching for few shared DPDK libraries even when built with static libraries.

But, IIUC, we could just add a path to ld.so.conf to avoid that.
Will it work?  You're updating ldconfig here anyway.
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to