1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/cryptoauthlib: don't modify package source when building tests

This commit is contained in:
Alexandre Abadie 2020-06-11 17:28:44 +02:00
parent 499ffd6339
commit e1972999a3
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
2 changed files with 10 additions and 9 deletions

View File

@ -40,15 +40,10 @@ $(TOOLCHAIN_FILE): git-download
$(RIOTTOOLS)/cmake/generate-xcompile-toolchain.sh > $(TOOLCHAIN_FILE)
build_tests:
cp $(PKG_TESTINCLDIR)/*.c $(PKG_BUILDDIR)
cp $(PKG_TESTINCLDIR)/jwt/*.c $(PKG_BUILDDIR)
cp $(PKG_TESTINCLDIR)/tng/*.c $(PKG_BUILDDIR)
cp $(PKG_TESTINCLDIR)/atcacert/*.c $(PKG_BUILDDIR)
echo "MODULE = $(PKG_TEST_NAME)" > $(PKG_BUILDDIR)/Makefile
echo "include \$$(RIOTBASE)/Makefile.base" >> $(PKG_BUILDDIR)/Makefile
"$(MAKE)" -C $(PKG_BUILDDIR)
"$(MAKE)" MODULE=$(PKG_TEST_NAME) -C $(PKG_BUILDDIR)/test -f $(RIOTBASE)/Makefile.base
"$(MAKE)" MODULE=$(PKG_TEST_NAME)_jwt -C $(PKG_BUILDDIR)/test/jwt -f $(RIOTBASE)/Makefile.base
"$(MAKE)" MODULE=$(PKG_TEST_NAME)_tng -C $(PKG_BUILDDIR)/test/tng -f $(RIOTBASE)/Makefile.base
"$(MAKE)" MODULE=$(PKG_TEST_NAME)_atcacert -C $(PKG_BUILDDIR)/test/atcacert -f $(RIOTBASE)/Makefile.base
git-download: | ..cmake_version_supported

View File

@ -3,3 +3,9 @@ FEATURES_REQUIRED += periph_i2c
FEATURES_OPTIONAL += periph_i2c_reconfigure
DEFAULT_MODULE += auto_init_security
USEMODULE += cryptoauthlib_contrib
ifneq (,$(filter cryptoauthlib_test,$(USEMODULE)))
USEMODULE += cryptoauthlib_test_jwt
USEMODULE += cryptoauthlib_test_tng
USEMODULE += cryptoauthlib_test_atcacert
endif