muvarov replied on github web page:

.travis.yml
line 19
@@ -198,7 +199,14 @@ install:
           esac
         - |
           if [ -n "$TARGET" ] ; then
-           if [ ! -f "dpdk/${TARGET}/lib/libdpdk.a" ] ; then
+           # force DPDK rebuild if it does not match shared/non-shared 
requirement
+           if [ -n "$DPDK_SHARED" -a ! -f "dpdk/${TARGET}/lib/libdpdk.so" ] ; 
then
+            rm -rf dpdk/"$TARGET"
+           fi
+           if [ -z "$DPDK_SHARED" -a ! -f "dpdk/${TARGET}/lib/libdpdk.a" ] ; 
then
+            rm -rf dpdk/"$TARGET"
+           fi


Comment:
In general that is not right solution. I think we need to cache 2 dpdk builds. 
Shared and non shared and force dpdk recompilation only on version change.

> muvarov wrote
> maybe simple  
> `if [  -a ! -f "dpdk/${TARGET}/lib/libdpdk.a" ] ; then`
> instead of 2 checks?


https://github.com/Linaro/odp/pull/416#discussion_r163156509
updated_at 2018-01-23 06:51:36

Reply via email to