From 0fea88d3a9b7e5167b731a9180b4d5d964560ffb Mon Sep 17 00:00:00 2001 From: Sandesh Jain Date: Wed, 30 Oct 2024 13:32:37 -0700 Subject: [PATCH] Silicon/Intel/FitGen: Fix path seperator error for GNU build on Windows. GNUmake build currently sets path seperators to '/'. GNUmake on Windows require path seperators to be '\'. The path seperators for 'MAKEROOT' is now determined by the host OS. Signed-off-by: Sandesh Jain --- Silicon/Intel/Tools/FitGen/GNUmakefile | 5 +++++ Silicon/Intel/Tools/GNUmakefile | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Silicon/Intel/Tools/FitGen/GNUmakefile b/Silicon/Intel/Tools/FitGen/GNUmakefile index 00a99bb0c73..1e962239562 100644 --- a/Silicon/Intel/Tools/FitGen/GNUmakefile +++ b/Silicon/Intel/Tools/FitGen/GNUmakefile @@ -4,7 +4,12 @@ # Copyright (c) 2010-2019, Intel Corporation. All rights reserved.
# SPDX-License-Identifier: BSD-2-Clause-Patent # +ifeq (Windows, $(findstring Windows,$(MAKE_HOST))) +SEP:=$(shell echo \) +MAKEROOT ?= $(EDK_TOOLS_PATH)$(SEP)Source$(SEP)C +else MAKEROOT ?= $(EDK_TOOLS_PATH)/Source/C +endif APPNAME = FitGen diff --git a/Silicon/Intel/Tools/GNUmakefile b/Silicon/Intel/Tools/GNUmakefile index 6910b6ad0f6..90a078b75a9 100644 --- a/Silicon/Intel/Tools/GNUmakefile +++ b/Silicon/Intel/Tools/GNUmakefile @@ -6,7 +6,12 @@ # ## -MAKEROOT = $(EDK_TOOLS_PATH)/Source/C +ifeq (Windows, $(findstring Windows,$(MAKE_HOST))) +SEP:=$(shell echo \) +MAKEROOT ?= $(EDK_TOOLS_PATH)$(SEP)Source$(SEP)C +else +MAKEROOT ?= $(EDK_TOOLS_PATH)/Source/C +endif APPLICATIONS = \ FitGen \