BaseTools: add error check for Macro usage in the INF file
Use of MACRO statements in the EDK II INF files is limited to local usage only; global or external macros are not permitted. This patch add the check for not defined macros. Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# This file is used to create a database used by build tool
|
||||
#
|
||||
# Copyright (c) 2008 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2008 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
# (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
@ -1830,6 +1830,8 @@ class InfBuildData(ModuleBuildClassObject):
|
||||
if self.AutoGenVersion < 0x00010005:
|
||||
self.__Macros.update(GlobalData.gEdkGlobal)
|
||||
self.__Macros.update(GlobalData.gGlobalDefines)
|
||||
else:
|
||||
self.__Macros.update(self.Defines)
|
||||
return self.__Macros
|
||||
|
||||
## Get architecture
|
||||
|
Reference in New Issue
Block a user