mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-10 04:28:31 +00:00
[acrn-configuration tool] make scenario shared file error cp error
Fixed the problem that the "'cp %s %s' % (source, target), cur_dir" command is still executed when there is no ACPI_VM.bin file after build. Tracked-On: projectacrn#7366 Signed-off-by: Ziheng Li <ziheng.li@intel.com>
This commit is contained in:
parent
e748842da0
commit
21d5a2f8ee
@ -116,11 +116,12 @@ def create_acrn_deb(board, scenario, version, build_dir):
|
|||||||
continue
|
continue
|
||||||
source = cur_dir + source
|
source = cur_dir + source
|
||||||
target = deb_dir + target
|
target = deb_dir + target
|
||||||
if os.path.exists(target):
|
if os.path.exists(source):
|
||||||
run_command('cp %s %s' % (source, target), cur_dir)
|
if os.path.exists(target):
|
||||||
else:
|
run_command('cp %s %s' % (source, target), cur_dir)
|
||||||
run_command('mkdir -p %s' % target, cur_dir)
|
else:
|
||||||
run_command('cp %s %s' % (source, target), cur_dir)
|
run_command('mkdir -p %s' % target, cur_dir)
|
||||||
|
run_command('cp %s %s' % (source, target), cur_dir)
|
||||||
|
|
||||||
run_command('cp ./misc/packaging/acrn-hypervisor.postinst ./build/acrn_release_deb/DEBIAN/postinst', cur_dir)
|
run_command('cp ./misc/packaging/acrn-hypervisor.postinst ./build/acrn_release_deb/DEBIAN/postinst', cur_dir)
|
||||||
run_command('chmod +x ./build/acrn_release_deb/etc/grub.d/100_ACRN', cur_dir)
|
run_command('chmod +x ./build/acrn_release_deb/etc/grub.d/100_ACRN', cur_dir)
|
||||||
|
Loading…
Reference in New Issue
Block a user