Skip to content

Commit

Permalink
Update UpdateCommon scripts to pull specific revisions of common repo…
Browse files Browse the repository at this point in the history
…s for

the RCP 5.2 branch
  • Loading branch information
chesik-amd committed Sep 25, 2017
1 parent 3743ddb commit d209e97
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 28 deletions.
4 changes: 3 additions & 1 deletion Scripts/UpdateCommon.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

for key in GitHubMapping:
# convert targetPath to OS specific format
tmppath = os.path.join(scriptRoot, "..", GitHubMapping[key])
tmppath = os.path.join(scriptRoot, "..", GitHubMapping[key][0])
# clean up path, collapsing any ../ and converting / to \ for Windows
targetPath = os.path.normpath(tmppath)
if os.path.isdir(targetPath):
Expand All @@ -51,6 +51,8 @@
commandArgs = ["git", "clone", gitamdRoot, targetPath]
p = subprocess.Popen( commandArgs )
p.wait()
p = subprocess.Popen(["git","reset","--hard",GitHubMapping[key][1]], cwd=targetPath)
p.wait()

def downloadandunzip(key, value):
# convert targetPath to OS specific format
Expand Down
54 changes: 27 additions & 27 deletions Scripts/UpdateCommonMap.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,33 @@
# GitHub GPUOpen-Tools projects map

GitHubMapping = {
"common-lib-amd-ADL" : "../Common/Lib/AMD/ADL",
"common-lib-AMD-ACL" : "../Common/Lib/AMD/ACL",
"common-lib-amd-APPSDK-3.0" : "../Common/Lib/AMD/APPSDK",
"common-lib-AMD-CAL-8.95" : "../Common/Lib/AMD/CAL",
"common-lib-ext-Boost-1.59" : "../Common/Lib/Ext/Boost",
"common-lib-ext-mhook" : "../Common/Lib/Ext/mhook",
"common-lib-ext-tinyxml-2.6.2" : "../Common/Lib/Ext/tinyxml",
"common-lib-ext-utf8cpp" : "../Common/Lib/Ext/utf8cpp",
"common-lib-ext-zlib-1.2.8" : "../Common/Lib/Ext/zlib",
"common-src-ACLModuleManager" : "../Common/Src/ACLModuleManager",
"common-src-ADLUtil" : "../Common/Src/ADLUtil",
"common-src-AMDTActivityLogger" : "../Common/Src/AMDTActivityLogger",
"common-src-AMDTApplication" : "../Common/Src/AMDTApplication",
"common-src-AMDTBaseTools" : "../Common/Src/AMDTBaseTools",
"common-src-AMDTInterceptor" : "../Common/Src/AMDTInterceptor",
"common-src-AMDTOSWrappers" : "../Common/Src/AMDTOSWrappers",
"common-src-AMDTMutex" : "../Common/Src/AMDTMutex",
"common-src-CElf" : "../Common/Src/CElf",
"common-src-DeviceInfo" : "../Common/Src/DeviceInfo",
"common-src-DynamicLibraryModule" : "../Common/Src/DynamicLibraryModule",
"common-src-GPUPerfAPIUtils" : "../Common/Src/GPUPerfAPIUtils",
"common-src-HSAUtils" : "../Common/Src/HSAUtils",
"common-src-Miniz" : "../Common/Src/Miniz",
"common-src-SCons" : "../Common/Src/SCons",
"common-src-TSingleton" : "../Common/Src/TSingleton",
"common-src-Vsprops" : "../Common/Src/Vsprops",
"common-src-VersionInfo" : "../Common/Src/VersionInfo",
"common-lib-amd-ADL" : ["../Common/Lib/AMD/ADL", "99cb60efe22718c1e12415b6b381facfdc7c7979"],
"common-lib-AMD-ACL" : ["../Common/Lib/AMD/ACL", "db0c78be0d38e856ba2219da124b271975c7b5ea"],
"common-lib-amd-APPSDK-3.0" : ["../Common/Lib/AMD/APPSDK", "acb9bb08f23e5653bbe8b6021a2cf89f1c7fd26f"],
"common-lib-AMD-CAL-8.95" : ["../Common/Lib/AMD/CAL", "d31406a20330deeefa3acb8191e2b865b0af45eb"],
"common-lib-ext-Boost-1.59" : ["../Common/Lib/Ext/Boost", "d50f858fdff41c549595bb1c84d236206d117772"],
"common-lib-ext-mhook" : ["../Common/Lib/Ext/mhook", "9a595f45dfc39dcaede3b44a5af30e85e77b770e"],
"common-lib-ext-tinyxml-2.6.2" : ["../Common/Lib/Ext/tinyxml", "0ed29c3884888228dc923a4a176098eedf0a6277"],
"common-lib-ext-utf8cpp" : ["../Common/Lib/Ext/utf8cpp", "53048f8f7eb69f315a957637d0422845c6652fe5"],
"common-lib-ext-zlib-1.2.8" : ["../Common/Lib/Ext/zlib", "59eddd52fe972df9e09c903bfe99ece3262f9f99"],
"common-src-ACLModuleManager" : ["../Common/Src/ACLModuleManager", "b1d5a9353e20e35ea316761cdd59ba0092ef780b"],
"common-src-ADLUtil" : ["../Common/Src/ADLUtil", "5a4b92e717b1be82dcffec13bea94924d5b4ff5c"],
"common-src-AMDTActivityLogger" : ["../Common/Src/AMDTActivityLogger", "a2400368226b680bbd20629bde19c50798b7b4b0"],
"common-src-AMDTApplication" : ["../Common/Src/AMDTApplication", "c7fec873a2f804980f38f44fed909afd8600c832"],
"common-src-AMDTBaseTools" : ["../Common/Src/AMDTBaseTools", "853f0450c4f1b8367baae81fdb603c0f2cc84a19"],
"common-src-AMDTInterceptor" : ["../Common/Src/AMDTInterceptor", "789ab6ccfa4b603d1da25ab0a77be5361813cba9"],
"common-src-AMDTOSWrappers" : ["../Common/Src/AMDTOSWrappers", "0464b6e024540d0f802521f1e55c5b6feaf3c069"],
"common-src-AMDTMutex" : ["../Common/Src/AMDTMutex", "fb68811ed3a475cc9ab1c5d5e0482658ec679716"],
"common-src-CElf" : ["../Common/Src/CElf", "24477296cdc5ecddc4c62ebe1b0af6346ec4b19a"],
"common-src-DeviceInfo" : ["../Common/Src/DeviceInfo", "1d750f29ebf52ff1a70f521b31c16ad6df65e8b9"],
"common-src-DynamicLibraryModule" : ["../Common/Src/DynamicLibraryModule", "4b1587a50119c0a59ce3472facbaa2af7c243fdf"],
"common-src-GPUPerfAPIUtils" : ["../Common/Src/GPUPerfAPIUtils", "d10457ebd4846a84820f83a7dd3e2e11ec1be081"],
"common-src-HSAUtils" : ["../Common/Src/HSAUtils", "370768ab279768efc51520da98ea71148a90b27a"],
"common-src-Miniz" : ["../Common/Src/Miniz", "a958cde31565769681aa3d7934c3d38c52940f4e"],
"common-src-SCons" : ["../Common/Src/SCons", "a4c10c4cbf69b186badafc88adb97af83b260c8d"],
"common-src-TSingleton" : ["../Common/Src/TSingleton", "2a338d5b7e649ffba0225772c521726c18b13fff"],
"common-src-Vsprops" : ["../Common/Src/Vsprops", "5a434b269727ed1f36c3c31aa56a0ca06502b198"],
"common-src-VersionInfo" : ["../Common/Src/VersionInfo", "d5690aefe5107252d287d73fc6008b8ceaf3cdf0"],
}

downloadMappingWin = {
Expand Down

0 comments on commit d209e97

Please sign in to comment.