tee/libteec: Remove downloaded zip file on distclean

Initially, leaving the .zip around seemed like a good idea to
avoid re-downloading often. But it turns out deleting downloaded
packages during distclean is standard practice and some CI
scripts depend on the git local copy being clean, including
ignored files.

Change also CMakeLists.txt to download the zip instead of the
tarball.

Signed-off-by: George Poulios <gpoulios@census-labs.com>
This commit is contained in:
George Poulios 2025-08-02 07:52:00 +03:00 committed by Alan C. Assis
parent 7506c026fa
commit 3ee6fdaf99
2 changed files with 5 additions and 2 deletions

View file

@ -24,9 +24,11 @@ if(CONFIG_LIBTEEC)
set(OPTEE_CLIENT_DIR ${CMAKE_CURRENT_LIST_DIR}/optee_client)
if(NOT EXISTS ${OPTEE_CLIENT_DIR})
set(OPTEE_CLIENT_URL https://github.com/OP-TEE/optee_client/archive/refs/tags)
set(OPTEE_CLIENT_VER ${CONFIG_LIBTEEC_VERSION})
FetchContent_Declare(
optee_client_fetch
URL https://github.com/OP-TEE/optee_client/archive/refs/tags/${CONFIG_LIBTEEC_VERSION}.tar.gz
URL ${OPTEE_CLIENT_URL}/${OPTEE_CLIENT_VER}.zip
SOURCE_DIR
${OPTEE_CLIENT_DIR}
BINARY_DIR

View file

@ -46,7 +46,8 @@ ifeq ($(wildcard $(LIBTEEC_UNPACKNAME)/.git),)
context:: $(LIBTEEC_UNPACKNAME)
distclean::
$(Q) rm -rf $(LIBTEEC_UNPACKNAME)
$(call DELDIR, $(LIBTEEC_UNPACKNAME))
$(call DELFILE, $(LIBTEEC_ZIP))
endif
include $(APPDIR)/Application.mk