anchor.diff:  do_compile() {
      # changing the home directory to the working directory, the .npmrc will be created in this directory
      export HOME=${WORKDIR}
  +   export LIBDIR="${libdir}/"
   
      # does not build dev packages
      npm config set dev false
  
positive.code: }
  
  do_install() {
     oe_runmake DESTDIR=${WORKDIR}/image install CFLAGS="--sysroot=${STAGING_DIR_TARGET}" TARGETCC="${CC}" TARGETAR="${AR}"
     unlink ${WORKDIR}/image/usr/lib/libsoletta.so
     mv ${WORKDIR}/image/usr/lib/libsoletta.so.0.0.1 ${WORKDIR}/image/usr/lib/libsoletta.so
     ln -sf libsoletta.so ${WORKDIR}/image/usr/lib/libsoletta.so.0.0.1
     COMMIT_ID=`git --git-dir=${WORKDIR}/git/.git rev-parse --verify HEAD`
     echo "Soletta: $COMMIT_ID" > ${D}/usr/lib/soletta/soletta-image-hash
  
     # Remove nan module as it is not needed.
     rm -rf ${WORKDIR}/image/usr/lib/node_modules/soletta/node_modules/nan
  }
  
  do_install_append() {
  
negative.code: inherit ptest
  
  do_compile_ptest() {
          export LIBDIR="${libdir}/"
          oe_runmake TARGETCC="${CC}" TARGETAR="${AR}" "tests"
  }
  
  