## @file\r
# This file is used to create a database used by build tool\r
#\r
-# Copyright (c) 2008 - 2019, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2008 - 2020, Intel Corporation. All rights reserved.<BR>\r
# (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
for pkg in PcdDependDEC:\r
if pkg in PlatformInc:\r
for inc in PlatformInc[pkg]:\r
+ #\r
+ # Get list of files in potential -I include path\r
+ #\r
+ FileList = os.listdir (str(inc))\r
+ #\r
+ # Skip -I include path if one of the include files required\r
+ # by PcdValueInit.c are present in the include paths from\r
+ # the DEC file. PcdValueInit.c must use the standard include\r
+ # files from the host compiler.\r
+ #\r
+ if 'stdio.h' in FileList:\r
+ continue\r
+ if 'stdlib.h' in FileList:\r
+ continue\r
+ if 'string.h' in FileList:\r
+ continue\r
MakeApp += '-I' + str(inc) + ' '\r
IncSearchList.append(inc)\r
MakeApp = MakeApp + '\n'\r