fix(build): 修复路径的问题

This commit is contained in:
SimonLi
2021-06-06 04:35:25 +08:00
parent 22e9192744
commit e217f542e1
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -5,6 +5,6 @@ import("//build/lite/config/subsystem/lite_subsystem.gni")
exec_script("patches/patch.py", [rebase_path("//", root_build_dir)])
group("display_qemu") {
group("display_qemu_liteos_a") {
deps = [ "init_configs" ]
}
+1 -1
View File
@@ -30,7 +30,7 @@
],
"vendor_adapter_dir": "//device/qemu/hardware",
"third_party_dir": "//third_party",
"product_adapter_dir": "//vendor/huawei/display_qemu/hals",
"product_adapter_dir": "//vendor/ohos/display_qemu_liteos_a/hals",
"ohos_product_type":"",
"ohos_manufacture":"",
"ohos_brand":"",
+5 -5
View File
@@ -6,14 +6,14 @@ if __name__ == '__main__':
if len(sys.argv) > 1:
root_dir = sys.argv[1]
root_dir = os.path.join(os.getcwd(), root_dir)
shutil.copy(os.path.join(root_dir, "vendor/huawei/display_qemu/patches/kernel_BUILD.gn"),
shutil.copy(os.path.join(root_dir, "vendor/ohos/display_qemu_liteos_a/patches/kernel_BUILD.gn"),
os.path.join(root_dir, "kernel/liteos_a/BUILD.gn"))
shutil.copy(os.path.join(root_dir, "vendor/huawei/display_qemu/patches/build.sh"),
shutil.copy(os.path.join(root_dir, "vendor/ohos/display_qemu_liteos_a/patches/build.sh"),
os.path.join(root_dir, "device/qemu/arm_virt/build/build.sh"))
shutil.copy(os.path.join(root_dir, "vendor/huawei/display_qemu/patches/BUILD.gn"),
shutil.copy(os.path.join(root_dir, "vendor/ohos/display_qemu_liteos_a/patches/BUILD.gn"),
os.path.join(root_dir, "device/qemu/arm_virt/BUILD.gn"))
shutil.copy(os.path.join(root_dir, "device/hisilicon/drivers/libs/ohos/llvm/hi3518ev300/libmtd_common.a"),
os.path.join(root_dir, "device/qemu/drivers/libs/virt/"))
shutil.copy(os.path.join(root_dir, "vendor/huawei/display_qemu/patches/qemu-init"), root_dir)
shutil.copy(os.path.join(root_dir, "vendor/huawei/display_qemu/patches/qemu-run"), root_dir)
shutil.copy(os.path.join(root_dir, "vendor/ohos/display_qemu_liteos_a/patches/qemu-init"), root_dir)
shutil.copy(os.path.join(root_dir, "vendor/ohos/display_qemu_liteos_a/patches/qemu-run"), root_dir)