mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-08 05:43:53 +00:00

Although support for building fiptool on a Windows host was present, the binary was not built when the top level makefile was invoked. This patch makes the necessary changes to the to support building of fiptool on a Windows host PC from the main makefile. Change-Id: I0c01ba237fa3010a027a1b324201131210cf4d7c Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
37 lines
797 B
Text
37 lines
797 B
Text
#
|
|
# Copyright (c) 2019-2020, Arm Limited. All rights reserved.
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
|
|
CC = cl.exe
|
|
LD = link.exe
|
|
|
|
# FIPTOOLPATH and FIPTOOL are passed from the main makefile.
|
|
|
|
OBJECTS = $(FIPTOOLPATH)\fiptool.obj \
|
|
$(FIPTOOLPATH)\tbbr_config.obj \
|
|
$(FIPTOOLPATH)\win_posix.obj
|
|
|
|
INC = -I$(FIPTOOLPATH) -Iinclude\tools_share
|
|
|
|
CFLAGS = $(CFLAGS) /nologo /Za /Zi /c /O2 /MT
|
|
|
|
all: $(FIPTOOL)
|
|
|
|
$(FIPTOOL): $(OBJECTS)
|
|
$(LD) /nologo /INCREMENTAL:NO /debug /nodefaultlib:libc.lib /out:$@ $(LIBS) $**
|
|
|
|
.PHONY: clean realclean
|
|
|
|
clean:
|
|
-@del /f /q $(OBJECTS) > nul
|
|
-@del /f /q $(FIPTOOLPATH)\*.pdb > nul
|
|
|
|
realclean:
|
|
-@del /f /q $(OBJECTS) > nul
|
|
-@del /f /q $(FIPTOOLPATH)\*.pdb > nul
|
|
-@del /f /q $(FIPTOOL) > nul
|
|
|
|
.c.obj:
|
|
$(CC) -c $(CFLAGS) $(INC) $< -Fo$@
|