nuttx-apps/tee/optee_client/Make.defs
George Poulios f3dc21755f tee/optee_client: Consolidate libteec and optee_supplicant
Merges build file structure so that both libteec and optee_supplicant
are under the same nuttx-app directory. This better reflects external
source repo structrure (optee_client containing both libteec and
tee-supplicant) and avoids a case where build of supplicant
was attempted before libteec, leading to a missing .zip file
(zip file was only downloaded by libteec, but order of builds was
not enforced).

Signed-off-by: George Poulios <gpoulios@census-labs.com>
2025-10-30 21:46:56 +08:00

41 lines
1.3 KiB
Text

############################################################################
# apps/tee/optee_client/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
############################################################################
ifneq ($(CONFIG_LIBTEEC),)
CONFIGURED_APPS += $(APPDIR)/tee/optee_client
FLAGS += ${INCDIR_PREFIX}$(APPDIR)/tee/optee_client/optee_client/libteec/include
FLAGS += ${DEFINE_PREFIX}BINARY_PREFIX="\"TEEC\""
ifneq ($(CONFIG_DEBUG_INFO),)
FLAGS += ${DEFINE_PREFIX}DEBUGLEVEL=3
else ifneq ($(CONFIG_DEBUG_WARN),)
FLAGS += ${DEFINE_PREFIX}DEBUGLEVEL=2
else ifneq ($(CONFIG_DEBUG_ERROR),)
FLAGS += ${DEFINE_PREFIX}DEBUGLEVEL=1
else
# the default DEBUGLEVEL is 1 (with error level)
FLAGS += ${DEFINE_PREFIX}DEBUGLEVEL=1
endif
AFLAGS += $(FLAGS)
CFLAGS += $(FLAGS)
CXXFLAGS += $(FLAGS)
endif