sifive / cmsis-svd-generator

Generates CMSIS-SVD xml files from DTS info and Register templates
Apache License 2.0
9 stars 4 forks source link

Use wake 'here' to make install path source location flexible #13

Closed mmjconolly closed 4 years ago

mmjconolly commented 4 years ago

installIn is defined as

export def installIn dir file =
  installAs "{dir}/{file.getPathName}" file

When used with Wit, the getPathName would include only the repository name, for example:

installIn "builddir" pathToSomeFile -> builddir/cmsis-svd-generator/somefile.sh

When the wake rule is used via git submodules a longer path is inserted, for example

installIn "builddir" pathToSomeFile -> builddir/freedom-e-sdk/software/cmsis-svd-generator/somefile.sh

This PR aims to resolve the inconsistency by using here/.. to capture the repository name directly, thus preserving the paths in builddir