Put codes to correct place.

This commit is contained in:
hollylee 2019-09-11 09:53:38 +08:00 committed by GitHub
parent 723ca994e7
commit dde0596b55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 9 deletions

View File

@ -37,6 +37,15 @@ def GetGCCRoot(rtconfig):
else:
root_path = os.path.join(exec_path, '..', prefix)
return root_path
def CheckHeader(rtconfig, filename):
root = GetGCCRoot(rtconfig)
fn = os.path.join(root, 'include', filename)
if os.path.isfile(fn):
return True
# Usually the cross compiling gcc toolchain has directory as:
#
# bin
@ -55,15 +64,6 @@ def GetGCCRoot(rtconfig):
if os.path.isfile(fn):
return True
return root_path
def CheckHeader(rtconfig, filename):
root = GetGCCRoot(rtconfig)
fn = os.path.join(root, 'include', filename)
if os.path.isfile(fn):
return True
return False
def GetNewLibVersion(rtconfig):