Skip to content

Commit

Permalink
Change directory for custom profile
Browse files Browse the repository at this point in the history
  • Loading branch information
szszszsz committed Jul 6, 2023
1 parent 6d7f96e commit 2687a9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runners/embedded/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ SRCS = $(shell find src -name "*.rs" )
OUT_BIN = $(ARTIFACTS)/runner-$(BUILD_ID).bin
OUT_ELF = $(ARTIFACTS)/runner-$(BUILD_ID).elf
OUT_IHEX = $(OUT_BIN).ihex
RAW_OUT = $(CARGO_TARGET_DIR)/$(TARGET)/release/$(SOC)_runner
CUSTOM_PROFILE=$(shell python3 -c "p = 'release-thin-lto' if '$(BOARD)' == 'nk3am' and 'test' in '$(COMMA_FEATURES)'.split(',') else 'release'; print(p); " )
RAW_OUT = $(CARGO_TARGET_DIR)/$(TARGET)/$(CUSTOM_PROFILE)/$(SOC)_runner

# feature definition
BUILD_FEATURES := board-$(BOARD) $(FEATURES)
Expand Down Expand Up @@ -120,7 +121,6 @@ clean-all:
#### actual build, clean, reset, program targets
###############################################################################

CUSTOM_PROFILE=$(shell python3 -c "p = 'release-thin-lto' if '$(BOARD)' == 'nk3am' and 'test' in '$(COMMA_FEATURES)'.split(',') else 'release'; print(p); " )
build: build-banner $(SRCS) check-var-BOARD check-var-BUILD_PROFILE check-var-SOC

cargo --version
Expand Down

0 comments on commit 2687a9d

Please sign in to comment.