diff --git a/build/builder/common/prebuild.py b/build/builder/common/prebuild.py index c392c166d9beeacc4c387b46ab079520abda72fc..9f5989dfc4eba9b33a20f7c093d1113274019f35 100755 --- a/build/builder/common/prebuild.py +++ b/build/builder/common/prebuild.py @@ -26,24 +26,33 @@ def build_deps(output_dir): shutil.rmtree(output_dir) if not os.path.exists(abs_copy_path): os.makedirs(abs_copy_path) - # build gn - gn_dir = os.path.join(output_dir, "gn-build") - cmd = ['git', 'clone', 'https://gitee.com/src-openeuler/gn.git', '-b', 'openEuler-22.03-LTS-SP1', gn_dir] - is_success, _output = exec_sys_command(cmd) - if is_success: - cur_work_dir = os.getcwd() - exec_sys_command(['tar', 'xf', os.path.join(gn_dir, 'gn-e1ac69b17da0c6d4f5e34e686690ff70c6a43e6f.tar.gz'), '-C', gn_dir]) - os.chdir(gn_dir) - #exec_sys_command(['patch', '-p1