2022-08-22 19:00:00 -05:00
|
|
|
include ../../run-make-fulldeps/tools.mk
|
2018-09-02 15:42:40 -05:00
|
|
|
|
2020-01-13 17:42:19 -06:00
|
|
|
# only-thumb
|
2019-01-06 15:27:57 -06:00
|
|
|
|
2018-09-02 15:42:40 -05:00
|
|
|
# How to run this
|
|
|
|
# $ ./x.py clean
|
2023-01-05 02:45:44 -06:00
|
|
|
# $ ./x.py test --target thumbv7m-none-eabi tests/run-make
|
2018-09-02 15:42:40 -05:00
|
|
|
|
|
|
|
# For cargo setting
|
2018-10-09 20:50:25 -05:00
|
|
|
export RUSTC := $(RUSTC_ORIGINAL)
|
2018-10-16 06:56:02 -05:00
|
|
|
export LD_LIBRARY_PATH := $(HOST_RPATH_DIR)
|
2018-09-02 15:42:40 -05:00
|
|
|
# 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
|
|
|
|
2018-10-16 06:56:02 -05:00
|
|
|
## clean up unused env variables which might cause harm.
|
2018-10-16 07:42:42 -05:00
|
|
|
unexport RUSTC_LINKER
|
|
|
|
unexport RUSTC_BOOTSTRAP
|
|
|
|
unexport RUST_BUILD_STAGE
|
|
|
|
unexport RUST_TEST_THREADS
|
|
|
|
unexport RUST_TEST_TMPDIR
|
|
|
|
unexport AR
|
|
|
|
unexport CC
|
|
|
|
unexport CXX
|
2018-10-16 06:56:02 -05:00
|
|
|
|
2018-09-02 15:42:40 -05:00
|
|
|
all:
|
2018-10-09 20:50:25 -05:00
|
|
|
bash script.sh
|