-
Notifications
You must be signed in to change notification settings - Fork 1
tooling: Replace cd && make with make -C in firmware targets #364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -7,3 +7,4 @@ MICROPYTHON_BRANCH ?= stm32-steami-rev1d-final | |||||
| BOARD ?= STEAM32_WB55RG | ||||||
| BUILD_DIR ?= .build | ||||||
| MPY_DIR ?= $(BUILD_DIR)/micropython-steami | ||||||
| STM32_DIR = $(MPY_DIR)/ports/stm32 | ||||||
|
||||||
| STM32_DIR = $(MPY_DIR)/ports/stm32 | |
| STM32_DIR ?= $(MPY_DIR)/ports/stm32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 6ffe093: changed to STM32_DIR ?= for consistency with the other overridable variables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In
firmware-update, the precedingcd $(CURDIR)/$(MPY_DIR) && ...runs in the same.ONESHELLscript, so the working directory remains$(MPY_DIR)for subsequent commands. WithSTM32_DIRdefined as a relative path ($(MPY_DIR)/ports/stm32),$(MAKE) -C $(STM32_DIR)will resolve to$(MPY_DIR)/$(MPY_DIR)/ports/stm32and likely fail. Consider avoiding a persistentcd(e.g., usegit -C $(CURDIR)/$(MPY_DIR) ...or wrap the git command in a subshell) and/or defineSTM32_DIRas an absolute path (e.g.,$(abspath ...)).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 6ffe093: replaced
cd ... && git ...withgit -Cfor each git command. No morecdin the entire Makefile.