Skip to content

Commit

Permalink
Merge pull request #538 from tock/make-tab-stable
Browse files Browse the repository at this point in the history
make: enable make tab on stable
  • Loading branch information
alevy authored Jun 7, 2024
2 parents a41c0d2 + 2c13520 commit 4472109
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ endif

ifndef DEBUG
release=--release
artifact_dir=release
else
artifact_dir=debug
endif

# Rustup currently lacks the locking needed for concurrent use:
Expand Down Expand Up @@ -187,9 +190,11 @@ $(call fixed-target, F=0x10020000 R=0x20004000 T=thumbv6m-none-eabi A=cortex-m0)
$(call fixed-target, F=0x10028000 R=0x2000c000 T=thumbv6m-none-eabi A=cortex-m0)

$(ELF_TARGETS): toolchain
LIBTOCK_LINKER_FLASH=$(F) LIBTOCK_LINKER_RAM=$(R) cargo build --example $(EXAMPLE) $(features) --target=$(T) $(release) --out-dir target/$(A).$(F).$(R) -Z unstable-options
LIBTOCK_LINKER_FLASH=$(F) LIBTOCK_LINKER_RAM=$(R) cargo build --example $(EXAMPLE) $(features) --target=$(T) $(release)
@mkdir -p target/$(A).$(F).$(R)/
@cp target/$(T)/$(artifact_dir)/examples/$(EXAMPLE) target/$(A).$(F).$(R)/
$(eval ELF_LIST += target/$(A).$(F).$(R)/$(EXAMPLE),$(A).$(F).$(R))

# This target (`make tab`) is not parallel-safe
.PHONY: tab
tab: $(ELF_TARGETS)
mkdir -p target/tab
Expand Down

0 comments on commit 4472109

Please sign in to comment.