mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 09:25:38 +00:00
Set OS specific python executable name
This commit is contained in:
parent
b522929666
commit
7eb55687c4
|
@ -50,6 +50,15 @@ ifdef ZLIB
|
||||||
LOCAL_LDFLAGS += -lz
|
LOCAL_LDFLAGS += -lz
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Python executable
|
||||||
|
ifndef PYTHON
|
||||||
|
ifdef WINDOWS
|
||||||
|
PYTHON=python
|
||||||
|
else
|
||||||
|
PYTHON=python2
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
APPS = test_suite_aes.ecb test_suite_aes.cbc \
|
APPS = test_suite_aes.ecb test_suite_aes.cbc \
|
||||||
test_suite_aes.cfb test_suite_aes.ofb \
|
test_suite_aes.cfb test_suite_aes.ofb \
|
||||||
test_suite_aes.xts \
|
test_suite_aes.xts \
|
||||||
|
@ -188,7 +197,7 @@ C_FILES := $(addsuffix .c,$(APPS))
|
||||||
.SECONDEXPANSION:
|
.SECONDEXPANSION:
|
||||||
$(C_FILES): %.c: suites/$$(func.$$*).function suites/%.data scripts/generate_code.py suites/helpers.function suites/main_test.function suites/host_test.function
|
$(C_FILES): %.c: suites/$$(func.$$*).function suites/%.data scripts/generate_code.py suites/helpers.function suites/main_test.function suites/host_test.function
|
||||||
echo " Gen $@"
|
echo " Gen $@"
|
||||||
python scripts/generate_code.py -f suites/$(func.$*).function \
|
$(PYTHON) scripts/generate_code.py -f suites/$(func.$*).function \
|
||||||
-d suites/$*.data \
|
-d suites/$*.data \
|
||||||
-t suites/main_test.function \
|
-t suites/main_test.function \
|
||||||
-p suites/host_test.function \
|
-p suites/host_test.function \
|
||||||
|
@ -223,7 +232,7 @@ EMBEDDED_TESTS := $(addprefix embedded_,$(APPS))
|
||||||
.SECONDEXPANSION:
|
.SECONDEXPANSION:
|
||||||
$(EMBEDDED_TESTS): embedded_%: suites/$$(func.$$*).function suites/%.data scripts/generate_code.py suites/helpers.function suites/main_test.function suites/target_test.function
|
$(EMBEDDED_TESTS): embedded_%: suites/$$(func.$$*).function suites/%.data scripts/generate_code.py suites/helpers.function suites/main_test.function suites/target_test.function
|
||||||
echo " Gen ./TESTS/mbedtls/$*/$*.c"
|
echo " Gen ./TESTS/mbedtls/$*/$*.c"
|
||||||
python scripts/generate_code.py -f suites/$(func.$*).function \
|
$(PYTHON) scripts/generate_code.py -f suites/$(func.$*).function \
|
||||||
-d suites/$*.data \
|
-d suites/$*.data \
|
||||||
-t suites/main_test.function \
|
-t suites/main_test.function \
|
||||||
-p suites/target_test.function \
|
-p suites/target_test.function \
|
||||||
|
|
Loading…
Reference in a new issue