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:
parent
499ffd6339
commit
e1972999a3
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user