Set OS specific python executable name
This commit is contained in:
parent
b522929666
commit
7eb55687c4
1 changed files with 11 additions and 2 deletions
|
@ -50,6 +50,15 @@ ifdef ZLIB
|
|||
LOCAL_LDFLAGS += -lz
|
||||
endif
|
||||
|
||||
# Python executable
|
||||
ifndef PYTHON
|
||||
ifdef WINDOWS
|
||||
PYTHON=python
|
||||
else
|
||||
PYTHON=python2
|
||||
endif
|
||||
endif
|
||||
|
||||
APPS = test_suite_aes.ecb test_suite_aes.cbc \
|
||||
test_suite_aes.cfb test_suite_aes.ofb \
|
||||
test_suite_aes.xts \
|
||||
|
@ -188,7 +197,7 @@ C_FILES := $(addsuffix .c,$(APPS))
|
|||
.SECONDEXPANSION:
|
||||
$(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 $@"
|
||||
python scripts/generate_code.py -f suites/$(func.$*).function \
|
||||
$(PYTHON) scripts/generate_code.py -f suites/$(func.$*).function \
|
||||
-d suites/$*.data \
|
||||
-t suites/main_test.function \
|
||||
-p suites/host_test.function \
|
||||
|
@ -223,7 +232,7 @@ EMBEDDED_TESTS := $(addprefix embedded_,$(APPS))
|
|||
.SECONDEXPANSION:
|
||||
$(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"
|
||||
python scripts/generate_code.py -f suites/$(func.$*).function \
|
||||
$(PYTHON) scripts/generate_code.py -f suites/$(func.$*).function \
|
||||
-d suites/$*.data \
|
||||
-t suites/main_test.function \
|
||||
-p suites/target_test.function \
|
||||
|
|
Loading…
Reference in a new issue