2018-09-02 15:42:40 -05:00
|
|
|
-include ../../run-make-fulldeps/tools.mk
|
|
|
|
|
|
|
|
# How to run this
|
|
|
|
# $ ./x.py clean
|
|
|
|
# $ ./x.py test --target thumbv7m-none-eabi src/test/run-make
|
|
|
|
|
2018-09-29 20:55:49 -05:00
|
|
|
ifneq (,$(filter $(TARGET),thumbv6m-none-eabi thumbv7m-none-eabi))
|
2018-09-02 15:42:40 -05:00
|
|
|
|
|
|
|
# For cargo setting
|
2018-10-09 20:50:25 -05:00
|
|
|
export RUSTC := $(RUSTC_ORIGINAL)
|
2018-09-02 15:42:40 -05:00
|
|
|
LD_LIBRARY_PATH := $(HOST_RPATH_DIR)
|
|
|
|
# We need to be outside of 'src' dir in order to run cargo
|
2018-10-09 20:50:25 -05:00
|
|
|
export WORK_DIR := $(TMPDIR)
|
|
|
|
export HERE := $(shell pwd)
|
2018-09-02 15:42:40 -05:00
|
|
|
|
|
|
|
all:
|
2018-10-09 20:50:25 -05:00
|
|
|
bash script.sh
|
2018-09-02 15:42:40 -05:00
|
|
|
else
|
|
|
|
all:
|
|
|
|
endif
|