From 4aeebb4071271861442d4a48092aed5791345879 Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Thu, 23 Mar 2023 07:39:33 +0000 Subject: [PATCH] Makefile: use CURDIR instead of PWD https://stackoverflow.com/questions/52437728/bash-what-is-the-difference-between-pwd-and-curdir Signed-off-by: Francesco Gazzetta --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 897c48d..d1bc21a 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -export PYTHONPATH := $(PWD)/tools/nrfutil:$(PWD)/tools/intelhex:$(PYTHONPATH) +export PYTHONPATH := $(CURDIR)/tools/nrfutil:$(CURDIR)/tools/intelhex:$(PYTHONPATH) PYTHON ?= python3 PYTEST ?= pytest-3 @@ -69,8 +69,8 @@ micropython: build-$(BOARD_SAFE) wasp/boards/manifest_user_apps.py wasp/boards/$ $(MAKE) -C micropython/ports/nrf \ BOARD=$(BOARD) SD=s132 \ MICROPY_VFS_LFS2=1 \ - FROZEN_MANIFEST=$(PWD)/wasp/boards/$(BOARD)/manifest.py \ - USER_C_MODULES=$(PWD)/wasp/modules + FROZEN_MANIFEST=$(CURDIR)/wasp/boards/$(BOARD)/manifest.py \ + USER_C_MODULES=$(CURDIR)/wasp/modules $(PYTHON) -m nordicsemi dfu genpkg \ --dev-type 0x0052 \ --application micropython/ports/nrf/build-$(BOARD)-s132/firmware.hex \