I’m trying to create a rule to assist remapping  LD_LIBRARY_PATH from the build host to the VxWorks target system.

For example:

/opt/vx7/workspace/VsbSim32/usr/src/BOOST/boost_1_59_0/bin.v2/libs/flyweight/test/gcc-4.8.1/debug/cross-compile-vxworks

..might become ..

bkuhlfedora:/VsbSim32/usr/src/BOOST/boost_1_59_0/bin.v2/libs/flyweight/test/gcc-4.8.1/debug/cross-compile-vxworks

 

But I’m not getting anything from the MATCH rule?

 

rule native-VXWORKS ( path )

{

    local result = $(path) ;

    if [ regex.match "(^/?(.*))" : $(path)  ]   # absolute path.

    {

        result = [ sequence.join [ os.environ LAYER_SRC_PATH ] / [ MATCH "(?=bin\.v2).*" : $(path) ] ] ;

    }

    return $(result) ;

}

 

Brian Kuhl

Wind River