mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-01-06 06:28:56 +01:00
Update code as old template and generator is replaced with new one
This commit is contained in:
parent
191e904bb2
commit
1de892b85f
3 changed files with 23 additions and 25 deletions
|
|
@ -176,6 +176,8 @@ func.test_suite_version := test_suite_version
|
|||
|
||||
.PHONY: all check test clean
|
||||
|
||||
all: $(BINARIES)
|
||||
|
||||
$(DEP):
|
||||
$(MAKE) -C ../library
|
||||
|
||||
|
|
@ -184,12 +186,11 @@ $(DEP):
|
|||
C_FILES := $(addsuffix .c,$(APPS))
|
||||
|
||||
.SECONDEXPANSION:
|
||||
$(C_FILES): %.c: suites/$$(func.$$*).function suites/%.data scripts/gen_mbed_code.py suites/helpers.function suites/mbed_test.function suites/desktop_test.function
|
||||
$(C_FILES): %.c: suites/$$(func.$$*).function suites/%.data scripts/generate_code.py suites/helpers.function suites/main_test.function suites/desktop_test.function
|
||||
echo " Gen $@"
|
||||
# perl scripts/generate_code.pl suites $(func.$*) $*
|
||||
python scripts/gen_mbed_code.py -f suites/$(func.$*).function \
|
||||
python scripts/generate_code.py -f suites/$(func.$*).function \
|
||||
-d suites/$*.data \
|
||||
-t suites/mbed_test.function \
|
||||
-t suites/main_test.function \
|
||||
-p suites/desktop_test.function \
|
||||
-s suites \
|
||||
--help-file suites/helpers.function \
|
||||
|
|
@ -201,9 +202,6 @@ $(BINARIES): %$(EXEXT): %.c $(DEP)
|
|||
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) $< $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
||||
|
||||
|
||||
all: $(BINARIES)
|
||||
|
||||
|
||||
clean:
|
||||
ifndef WINDOWS
|
||||
rm -rf $(APPS) *.c *.data TESTS
|
||||
|
|
@ -217,8 +215,8 @@ check: $(BINARIES)
|
|||
|
||||
test: check
|
||||
|
||||
# Create separate targets for generating mbed-os tests.
|
||||
MBED_APPS := $(addprefix mbed_,$(APPS))
|
||||
# Create separate targets for generating embedded tests.
|
||||
EMBEDDED_TESTS := $(addprefix embedded_,$(APPS))
|
||||
|
||||
# FIXME: description needs change
|
||||
# Each test suite name is stripped off of prefix test_suite_. mbed-os test dir
|
||||
|
|
@ -228,15 +226,15 @@ MBED_APPS := $(addprefix mbed_,$(APPS))
|
|||
# name is used as the test group dir.
|
||||
|
||||
.SECONDEXPANSION:
|
||||
$(MBED_APPS): mbed_%: suites/$$(func.$$*).function suites/%.data scripts/gen_mbed_code.py suites/helpers.function suites/mbed_test.function suites/embedded_test.function
|
||||
$(EMBEDDED_TESTS): embedded_%: suites/$$(func.$$*).function suites/%.data scripts/generate_code.py suites/helpers.function suites/main_test.function suites/embedded_test.function
|
||||
echo " Gen ./TESTS/mbedtls/$*/$*.c"
|
||||
python scripts/gen_mbed_code.py -f suites/$(func.$*).function \
|
||||
python scripts/generate_code.py -f suites/$(func.$*).function \
|
||||
-d suites/$*.data \
|
||||
-t suites/mbed_test.function \
|
||||
-t suites/main_test.function \
|
||||
-p suites/embedded_test.function \
|
||||
-s suites \
|
||||
--help-file suites/helpers.function \
|
||||
-o ./TESTS/mbedtls/$*
|
||||
|
||||
gen-mbed-test: $(MBED_APPS)
|
||||
gen-embedded-test: $(EMBEDDED_TESTS)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue