Skip to content

Commit

Permalink
software: make it more convenient to use other cargo actions.
Browse files Browse the repository at this point in the history
whitequark committed Feb 4, 2017
1 parent 40e9940 commit 4cb4cf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misoc/software/common.mak
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ endif
AR_normal := $(TARGET_PREFIX)ar
LD_normal := $(TARGET_PREFIX)ld
OBJCOPY_normal := $(TARGET_PREFIX)objcopy
CARGO_normal := env CARGO_TARGET_DIR=$(realpath .)/cargo cargo build --target $(CARGO_TRIPLE)
CARGO_normal := env CARGO_TARGET_DIR=$(realpath .)/cargo cargo

CC_quiet = @echo " CC " $@ && $(CC_normal)
CX_quiet = @echo " CX " $@ && $(CX_normal)
@@ -64,5 +64,5 @@ $(CC) -c $(CFLAGS) -o $@ $<
endef

define cargo
$(CARGO)
$(CARGO) build --target $(CARGO_TRIPLE)
endef

0 comments on commit 4cb4cf2

Please sign in to comment.