Skip to content

Commit

Permalink
Merge pull request #308 from Nitrokey/nk3-webcrypt-firmware
Browse files Browse the repository at this point in the history
CI: fix artifact copying for the custom profile
  • Loading branch information
szszszsz committed Jul 6, 2023
2 parents 6d7f96e + 2687a9d commit f1ef5e5
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 f1ef5e5

Please sign in to comment.