Merge pull request #3060 from hollylee/hollylee-patch-gccroot

Hollylee patch gccroot
This commit is contained in:
Bernard Xiong 2019-09-11 12:24:01 +08:00 committed by GitHub
commit c6b7d14bf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -46,6 +46,24 @@ def CheckHeader(rtconfig, filename):
if os.path.isfile(fn):
return True
# Usually the cross compiling gcc toolchain has directory as:
#
# bin
# lib
# share
# arm-none-eabi
# bin
# include
# lib
# share
prefix = rtconfig.PREFIX
if prefix.endswith('-'):
prefix = prefix[:-1]
fn = os.path.join(root, prefix, 'include', filename)
if os.path.isfile(fn):
return True
return False
def GetNewLibVersion(rtconfig):