rustl8710/rust.mk

12 lines
298 B
Makefile
Raw Permalink Normal View History

2016-12-30 23:23:32 +00:00
TARGET=application
OBJ_DIR=$(TARGET)/Debug/rust_obj
.PHONY: application
application:
cd src/rust && rustup override set nightly
cd src/rust && xargo build --target thumbv7m-none-eabi
mkdir -p $(OBJ_DIR)
cp src/rust/target/thumbv7m-none-eabi/debug/librustl8710.rlib $(OBJ_DIR)/librustl8710.o