From adf82645e3fdb521c6230cc14d8203f47a59df28 Mon Sep 17 00:00:00 2001 From: b1ackmai1er Date: Wed, 6 Jan 2021 21:34:23 +0800 Subject: [PATCH] Update Build.ps1 Remove looping construct to create *.upd file --- Source/HBIOS/Build.ps1 | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/Source/HBIOS/Build.ps1 b/Source/HBIOS/Build.ps1 index 2610b25e..f2f5ee3f 100644 --- a/Source/HBIOS/Build.ps1 +++ b/Source/HBIOS/Build.ps1 @@ -234,29 +234,20 @@ cpmchattr -f $RomFmt $RomDiskFile r 0:*.* # Finally, the individual binary components are concatenated together to produce # the final images. # -$SystemFileList = "hbios_rom.bin", "osimg.bin", "osimg1.bin", "osimg.bin" if ($Platform -eq "UNA") { Copy-Item 'osimg.bin' ${OutDir}\UNA_WBW_SYS.bin Copy-Item $RomDiskFile ${OutDir}\UNA_WBW_ROM${ROMSize}.bin Concat '..\UBIOS\UNA-BIOS.BIN','osimg.bin','..\UBIOS\FSFAT.BIN',$RomDiskFile $RomFile - Remove-Item $RomDiskFile } else { Concat 'hbios_rom.bin','osimg.bin','osimg1.bin','osimg.bin',$RomDiskFile $RomFile + Concat 'hbios_rom.bin','osimg.bin','osimg1.bin','osimg.bin' $UpdFile Concat 'hbios_app.bin','osimg_small.bin' $ComFile # Concat 'hbios_img.bin','osimg_small.bin' $ImgFile - Remove-Item $RomDiskFile - Set-Content $UpdFile -Value $null - foreach ($InputFile in $SystemFileList) - { - Copy-Item $InputFile $RomDiskFile - Add-Content $UpdFile -Value ([System.IO.File]::ReadAllBytes($RomDiskFile)) -Encoding byte - Remove-Item $RomDiskFile - } } # Remove the temporary working ROM disk file -#Remove-Item $RomDiskFile +Remove-Item $RomDiskFile