4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-24 16:17:22 +08:00
rt-thread-official/bsp/phytium/libraries/phytium_standalone_sdk_install.py
zhangyan de32f35016
[bsp/phytium]部分设备驱动修改 (#8794)
* update

* 修改 SDIF 驱动,支持同时使用 TF 卡和 eMMC,更换飞腾派自启动镜像

* drivers debug

* update

* update

* update config

* update

* modify format

---------

Co-authored-by: 朱耿宇 <zhugengyu@phytium.com.cn>
2024-04-19 08:52:09 +08:00

24 lines
742 B
Python

import os
import subprocess
def clone_repository(branch, commit_hash):
repository_url = "https://gitee.com/phytium_embedded/phytium-standalone-sdk.git"
target_folder = "../libraries/phytium_standalone_sdk"
# Clone the repository
subprocess.call(["git", "clone", "-b", branch, repository_url, target_folder])
# Change to the cloned repository folder
os.chdir(target_folder)
# Checkout the specific commit
subprocess.call(["git", "checkout", commit_hash])
print("Repository cloned successfully to {}".format(os.getcwd()))
if __name__ == "__main__":
branch_to_clone = "master"
commit_to_clone = "cd15b23000d0c52968dc322b6d99025195bbf446"
clone_repository(branch_to_clone, commit_to_clone)