Skip to content

Commit

Permalink
fix root path
Browse files Browse the repository at this point in the history
  • Loading branch information
lmpprk committed Jan 7, 2022
1 parent 23b81e1 commit 3aed43f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build/builders/nrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ def generate(self):
raise Exception('ZEPHYR_BASE validation failed')

overlays = []
# The build runs from {root}/out direcotry so need to move level up for project root
# self.root here yields string literal "{root}" so must not be used
project_root = os.getenv("PW_PROJECT_ROOT")
if os.path.exists(os.path.join(
"..", self.app.AppPath(), "nrfconnect/boards", self.board.GnArgName()+".conf")):
project_root, self.app.AppPath(), "nrfconnect/boards", self.board.GnArgName()+".conf")):
overlays.append("-DOVERLAY_CONFIG=boards/" +
self.board.GnArgName()+".conf")
if self.enable_rpcs:
Expand Down

0 comments on commit 3aed43f

Please sign in to comment.