Files
arm-trusted-firmware/tools/stm32image/Makefile
T
Yann Gautier 0b4722cf26 feat(st): put stm32image tool in build directory
Following the series moving common tools compilation to the build
directory[1], do the same for stm32image tool.

[1]: cbd6cec3c3 feat(build): put fiptool in the build directory

Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: If33556e98c4788350a29c8ad96dc574584b67abd
2025-07-08 14:53:07 +02:00

35 lines
772 B
Makefile

#
# Copyright (c) 2017-2025, Arm Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
MAKE_HELPERS_DIRECTORY := ../../make_helpers/
include ${MAKE_HELPERS_DIRECTORY}build_macros.mk
include ${MAKE_HELPERS_DIRECTORY}build-rules.mk
include ${MAKE_HELPERS_DIRECTORY}common.mk
include ${MAKE_HELPERS_DIRECTORY}toolchain.mk
STM32IMAGE_SOURCES := stm32image.c
STM32IMAGE_CFLAGS := -Wall -Werror -pedantic -std=c99
STM32IMAGE_DEFINES := _GNU_SOURCE
ifeq (${DEBUG},1)
STM32IMAGE_CFLAGS += -g -O0
STM32IMAGE_DEFINES += DEBUG
else
STM32IMAGE_CFLAGS += -O2
endif
.PHONY: all clean distclean
all:
$(eval $(call MAKE_TOOL,$(BUILD_PLAT)/tools,stm32image,STM32IMAGE))
clean:
$(q)rm -rf $(BUILD_PLAT)/tools/stm32image
distclean: clean