mirror of https://github.com/0Nera/BMOSP.git
Удалены лишние операции при сборке
This commit is contained in:
parent
1fc22169cd
commit
ddc1a1a931
|
@ -148,7 +148,6 @@ def create_hdd(IMAGE_NAME):
|
||||||
os.system(f"mcopy -i {IMAGE_NAME}.hdd@@1M kernel.elf configs/limine.cfg limine/limine-bios.sys ::/")
|
os.system(f"mcopy -i {IMAGE_NAME}.hdd@@1M kernel.elf configs/limine.cfg limine/limine-bios.sys ::/")
|
||||||
os.system(f"mcopy -i {IMAGE_NAME}.hdd@@1M modules/bin/* ::/mod")
|
os.system(f"mcopy -i {IMAGE_NAME}.hdd@@1M modules/bin/* ::/mod")
|
||||||
os.system(f"mcopy -i {IMAGE_NAME}.hdd@@1M limine/BOOTX64.EFI limine/BOOTIA32.EFI ::/EFI/BOOT")
|
os.system(f"mcopy -i {IMAGE_NAME}.hdd@@1M limine/BOOTX64.EFI limine/BOOTIA32.EFI ::/EFI/BOOT")
|
||||||
os.system(f"mcopy -i {IMAGE_NAME}.hdd@@1M configs/media/boot.tga configs/media/boot.jpg ::/")
|
|
||||||
os.system(f"./limine/limine bios-install {IMAGE_NAME}.hdd")
|
os.system(f"./limine/limine bios-install {IMAGE_NAME}.hdd")
|
||||||
|
|
||||||
|
|
||||||
|
@ -156,7 +155,7 @@ def create_iso(IMAGE_NAME):
|
||||||
os.system(f"rm -f {IMAGE_NAME}.iso")
|
os.system(f"rm -f {IMAGE_NAME}.iso")
|
||||||
os.system(f"rm -rf iso_root")
|
os.system(f"rm -rf iso_root")
|
||||||
os.system(f"mkdir -p iso_root")
|
os.system(f"mkdir -p iso_root")
|
||||||
os.system(f"cp -v kernel.elf configs/media/boot.tga configs/media/boot.jpg configs/limine.cfg limine/limine-bios.sys limine/limine-bios-cd.bin limine/limine-uefi-cd.bin iso_root/")
|
os.system(f"cp -v kernel.elf configs/limine.cfg limine/limine-bios.sys limine/limine-bios-cd.bin limine/limine-uefi-cd.bin iso_root/")
|
||||||
os.system(f"mkdir -p iso_root/EFI/BOOT")
|
os.system(f"mkdir -p iso_root/EFI/BOOT")
|
||||||
shutil.copytree("modules/bin", "iso_root/mod")
|
shutil.copytree("modules/bin", "iso_root/mod")
|
||||||
os.system(f"cp -v limine/BOOTX64.EFI iso_root/EFI/BOOT/")
|
os.system(f"cp -v limine/BOOTX64.EFI iso_root/EFI/BOOT/")
|
||||||
|
|
Loading…
Reference in New Issue