mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-20 22:42:40 +08:00
Put codes to correct place.
This commit is contained in:
18
tools/gcc.py
18
tools/gcc.py
@@ -37,6 +37,15 @@ def GetGCCRoot(rtconfig):
|
|||||||
else:
|
else:
|
||||||
root_path = os.path.join(exec_path, '..', prefix)
|
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:
|
# Usually the cross compiling gcc toolchain has directory as:
|
||||||
#
|
#
|
||||||
# bin
|
# bin
|
||||||
@@ -55,15 +64,6 @@ def GetGCCRoot(rtconfig):
|
|||||||
if os.path.isfile(fn):
|
if os.path.isfile(fn):
|
||||||
return True
|
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
|
return False
|
||||||
|
|
||||||
def GetNewLibVersion(rtconfig):
|
def GetNewLibVersion(rtconfig):
|
||||||
|
Reference in New Issue
Block a user