## @file\r
# Create makefile for MS nmake and GNU make\r
#\r
-# Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2019 - 2021, Intel Corporation. All rights reserved.<BR>\r
# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
from __future__ import absolute_import\r
if ToolDef[Tool].get(TAB_TOD_DEFINES_BUILDRULEFAMILY, "") != "":\r
if Family != ToolDef[Tool][TAB_TOD_DEFINES_BUILDRULEFAMILY]:\r
continue\r
- elif Family != ToolDef[Tool][TAB_TOD_DEFINES_FAMILY]:\r
- continue\r
+ else:\r
+ if ToolDef[Tool].get(TAB_TOD_DEFINES_FAMILY, "") == "":\r
+ continue\r
+ if Family != ToolDef[Tool][TAB_TOD_DEFINES_FAMILY]:\r
+ continue\r
FamilyMatch = True\r
# expand any wildcard\r
if Target == TAB_STAR or Target == self.BuildTarget:\r
if Tool not in ToolDef or Family == "":\r
continue\r
# option has been added before\r
+ if TAB_TOD_DEFINES_FAMILY not in ToolDef[Tool]:\r
+ continue\r
if Family != ToolDef[Tool][TAB_TOD_DEFINES_FAMILY]:\r
continue\r
\r
if ToolDef[Tool].get(TAB_TOD_DEFINES_BUILDRULEFAMILY, "") != "":\r
if Family != ToolDef[Tool][TAB_TOD_DEFINES_BUILDRULEFAMILY]:\r
continue\r
- elif Family != ToolDef[Tool][TAB_TOD_DEFINES_FAMILY]:\r
- continue\r
+ else:\r
+ if ToolDef[Tool].get(TAB_TOD_DEFINES_FAMILY, "") == "":\r
+ continue\r
+ if Family != ToolDef[Tool][TAB_TOD_DEFINES_FAMILY]:\r
+ continue\r
FamilyMatch = True\r
# expand any wildcard\r
if Target == TAB_STAR or Target == self.BuildTarget:\r
if Tool not in ToolDef or Family == "":\r
continue\r
# option has been added before\r
+ if TAB_TOD_DEFINES_FAMILY not in ToolDef[Tool]:\r
+ continue\r
if Family != ToolDef[Tool][TAB_TOD_DEFINES_FAMILY]:\r
continue\r
\r