From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id BEDDA94148B for ; Tue, 6 Feb 2024 07:02:49 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=D3i1ECQ1ik+AAuQA+prPoB/huiNoEoyMXblD9eeCK8E=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1707202968; v=1; b=j77YY4xnPlcPmD6rQKA6u/wZfUebhFGpX6K5FYDQ+M818tNFrfoYWmWGbSZxFXBO4eLe+0ME UAbD+4RHVWP7XdRsPHmRQNwk6+urAfOvS8aohrRAkd5qzYNhw9GJYkubo7TAArVHGk9JY/9+Dl5 CPn/jbSf/Udlz7NSH2d5UQqQ= X-Received: by 127.0.0.2 with SMTP id 5GLeYY7687511xHQKS3AozPj; Mon, 05 Feb 2024 23:02:48 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mx.groups.io with SMTP id smtpd.web11.16541.1707202963121068654 for ; Mon, 05 Feb 2024 23:02:48 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10975"; a="18108329" X-IronPort-AV: E=Sophos;i="6.05,246,1701158400"; d="scan'208";a="18108329" X-Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 23:02:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,246,1701158400"; d="scan'208";a="920571" X-Received: from njayapra-mobl.gar.corp.intel.com ([10.66.106.253]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 23:02:45 -0800 From: "Jayaprakash, N" To: devel@edk2.groups.io Cc: Jayaprakash N , Rebecca Cran , Michael D Kinney , Laszlo Ersek , Liming Gao , Bob Feng , Yuwei Chen Subject: [edk2-devel] [edk2 Patch 1/1] BaseTools: Syntax warning invalid escape sequence \C Date: Tue, 6 Feb 2024 12:32:34 +0530 Message-Id: <20240206070234.31-2-n.jayaprakash@intel.com> In-Reply-To: <20240206070234.31-1-n.jayaprakash@intel.com> References: <20240206070234.31-1-n.jayaprakash@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,n.jayaprakash@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: jizrNN5JulhkhiiNRDC03lh4x7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=j77YY4xn; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4666 This commit fixes the issue reported through BZ4666. The Syntax warning related to invalid escape sequence for \C is seen on Windows OS based builds of edk2 sources. On Windows the path seperator needs to prefixed with \ so essentially we need to use \\ as path seperator. Cc: Rebecca Cran Cc: Michael D Kinney Cc: Laszlo Ersek Cc: Liming Gao Cc: Bob Feng Cc: Yuwei Chen Cc: Jayaprakash N Signed-off-by: Jayaprakash N --- BaseTools/Source/Python/Workspace/DscBuildData.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/Python/Workspace/DscBuildData.py b/BaseTools/Source/Python/Workspace/DscBuildData.py index 4768099343..b69d406249 100644 --- a/BaseTools/Source/Python/Workspace/DscBuildData.py +++ b/BaseTools/Source/Python/Workspace/DscBuildData.py @@ -2949,7 +2949,7 @@ class DscBuildData(PlatformBuildClassObject): for include_file in IncFileList: MakeApp += "$(OBJECTS) : %s\n" % include_file if sys.platform == "win32": - PcdValueCommonPath = os.path.normpath(mws.join(GlobalData.gGlobalDefines["EDK_TOOLS_PATH"], "Source\C\Common\PcdValueCommon.c")) + PcdValueCommonPath = os.path.normpath(mws.join(GlobalData.gGlobalDefines["EDK_TOOLS_PATH"], "Source\\C\\Common\\PcdValueCommon.c")) MakeApp = MakeApp + '%s\\PcdValueCommon.c : %s\n' % (self.OutputPath, PcdValueCommonPath) MakeApp = MakeApp + '\tcopy /y %s $@\n' % (PcdValueCommonPath) else: -- 2.40.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115148): https://edk2.groups.io/g/devel/message/115148 Mute This Topic: https://groups.io/mt/104193926/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-