Skip to content

Commit

Permalink
Remove needed arguments for GetFFUFileName
Browse files Browse the repository at this point in the history
  • Loading branch information
gus33000 committed Feb 27, 2024
1 parent 7284792 commit 313a00c
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion FirmwareGen/DeviceProfiles/EpsilonHalfSplit128GB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class EpsilonHalfSplit128GB : IDeviceProfile

public string[] GetPlatformIDs() => ["Microsoft Corporation.Surface.Surface Duo.1930", "OEMB1.*.OEMB1 Product.*", "OEMEP.*.OEMEP Product.*"];

public string GetFFUFileName(string OSVersion, string Language, string Sku) => $"OEMEP_128GB_HalfSplit_{OSVersion}_CLIENT{Sku}_a64fre_{Language}_unsigned.ffu";
public string GetFFUFileName() => $"OEMEP_128GB_HalfSplit.ffu";

public string GetDriverDefinitionPath() => $@"\definitions\Desktop\ARM64\Internal\epsilon.xml";

Expand Down
2 changes: 1 addition & 1 deletion FirmwareGen/DeviceProfiles/EpsilonHalfSplit256GB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ internal class EpsilonHalfSplit256GB : IDeviceProfile

public string[] GetPlatformIDs() => ["Microsoft Corporation.Surface.Surface Duo.1930", "OEMB1.*.OEMB1 Product.*", "OEMEP.*.OEMEP Product.*"];

public string GetFFUFileName(string OSVersion, string Language, string Sku) => $"OEMEP_256GB_HalfSplit_{OSVersion}_CLIENT{Sku}_a64fre_{Language}_unsigned.ffu";
public string GetFFUFileName() => $"OEMEP_256GB_HalfSplit.ffu";

public string GetDriverDefinitionPath() => $@"\definitions\Desktop\ARM64\Internal\epsilon.xml";

Expand Down
2 changes: 1 addition & 1 deletion FirmwareGen/DeviceProfiles/EpsilonMaximizedForWindows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ internal class EpsilonMaximizedForWindows : IDeviceProfile

public string[] GetPlatformIDs() => ["Microsoft Corporation.Surface.Surface Duo.1930", "OEMB1.*.OEMB1 Product.*", "OEMEP.*.OEMEP Product.*"];

public string GetFFUFileName(string OSVersion, string Language, string Sku) => $"OEMEP_128GB_HalfSplit_{OSVersion}_CLIENT{Sku}_a64fre_{Language}_unsigned.ffu";
public string GetFFUFileName() => $"OEMEP_128GB_HalfSplit.ffu";

public string GetDriverDefinitionPath() => $@"\definitions\Desktop\ARM64\Internal\epsilon.xml";

Expand Down
2 changes: 1 addition & 1 deletion FirmwareGen/DeviceProfiles/MTP8150MaximizedForWindows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ internal class MTP8150MaximizedForWindows : IDeviceProfile

public string[] GetPlatformIDs() => ["Microsoft Corporation.Surface.MTP.SM8150"];

public string GetFFUFileName(string OSVersion, string Language, string Sku) => $"QCOM_MTP_8150_MaximizedForWindows_{OSVersion}_CLIENT{Sku}_a64fre_{Language}_unsigned.ffu";
public string GetFFUFileName() => $"QCOM_MTP_8150_MaximizedForWindows.ffu";

public string GetDriverDefinitionPath() => $@"\definitions\Desktop\ARM64\Internal\mtp855.xml";

Expand Down
2 changes: 1 addition & 1 deletion FirmwareGen/DeviceProfiles/ZetaHalfSplit128GB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public string[] GetPlatformIDs() => ["Microsoft Corporation.Surface.Surface Duo
"OEMC1.*.OEMC1 Product.*",
"OEMZE.*.OEMZE Product.*"];

public string GetFFUFileName(string OSVersion, string Language, string Sku) => $"OEMZE_128GB_HalfSplit_{OSVersion}_CLIENT{Sku}_a64fre_{Language}_unsigned.ffu";
public string GetFFUFileName() => $"OEMZE_128GB_HalfSplit.ffu";

public string GetDriverDefinitionPath() => $@"\definitions\Desktop\ARM64\Internal\zeta.xml";

Expand Down
2 changes: 1 addition & 1 deletion FirmwareGen/DeviceProfiles/ZetaHalfSplit256GB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public string[] GetPlatformIDs() => ["Microsoft Corporation.Surface.Surface Duo
"OEMC1.*.OEMC1 Product.*",
"OEMZE.*.OEMZE Product.*"];

public string GetFFUFileName(string OSVersion, string Language, string Sku) => $"OEMZE_256GB_HalfSplit_{OSVersion}_CLIENT{Sku}_a64fre_{Language}_unsigned.ffu";
public string GetFFUFileName() => $"OEMZE_256GB_HalfSplit.ffu";

public string GetDriverDefinitionPath() => $@"\definitions\Desktop\ARM64\Internal\zeta.xml";

Expand Down
2 changes: 1 addition & 1 deletion FirmwareGen/DeviceProfiles/ZetaHalfSplit512GB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public string[] GetPlatformIDs() => ["Microsoft Corporation.Surface.Surface Duo
"OEMC1.*.OEMC1 Product.*",
"OEMZE.*.OEMZE Product.*"];

public string GetFFUFileName(string OSVersion, string Language, string Sku) => $"OEMZE_512GB_HalfSplit_{OSVersion}_CLIENT{Sku}_a64fre_{Language}_unsigned.ffu";
public string GetFFUFileName() => $"OEMZE_512GB_HalfSplit.ffu";

public string GetDriverDefinitionPath() => $@"\definitions\Desktop\ARM64\Internal\zeta.xml";

Expand Down
2 changes: 1 addition & 1 deletion FirmwareGen/DeviceProfiles/ZetaMaximizedForWindows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public string[] GetPlatformIDs() => ["Microsoft Corporation.Surface.Surface Duo
"OEMC1.*.OEMC1 Product.*",
"OEMZE.*.OEMZE Product.*"];

public string GetFFUFileName(string OSVersion, string Language, string Sku) => $"OEMZE_MaximizedForWindows_{OSVersion}_CLIENT{Sku}_a64fre_{Language}_unsigned.ffu";
public string GetFFUFileName() => $"OEMZE_MaximizedForWindows.ffu";

public string GetDriverDefinitionPath() => $@"\definitions\Desktop\ARM64\Internal\zeta.xml";

Expand Down
2 changes: 1 addition & 1 deletion FirmwareGen/IDeviceProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public interface IDeviceProfile
{
string[] GetSupplementaryBCDCommands();
string[] GetPlatformIDs();
string GetFFUFileName(string OSVersion, string Language, string Sku);
string GetFFUFileName();
string GetDriverDefinitionPath();
ulong GetDiskTotalSize();
uint GetDiskSectorSize();
Expand Down
2 changes: 1 addition & 1 deletion FirmwareGen/MainLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static void GenerateWindowsFFU(GenerateWindowsFFUOptions options)
version = string.Join(".", version.Split(".").Skip(2));
}

VolumeUtils.RunProgram(Img2Ffu, $@"-i {TmpVHD} -f ""{options.Output}\{deviceProfile.GetFFUFileName(version, "en-us", "PROFESSIONAL")}"" -c {deviceProfile.GetDiskSectorSize() * 4} -s {deviceProfile.GetDiskSectorSize()} -p ""{string.Join(";", deviceProfile.GetPlatformIDs())}"" -o {options.WindowsVer} -b 4000");
VolumeUtils.RunProgram(Img2Ffu, $@"-i {TmpVHD} -f ""{options.Output}\{deviceProfile.GetFFUFileName()}"" -c {deviceProfile.GetDiskSectorSize() * 4} -s {deviceProfile.GetDiskSectorSize()} -p ""{string.Join(";", deviceProfile.GetPlatformIDs())}"" -o {options.WindowsVer} -b 4000");

Logging.Log("Deleting Temp VHD");
File.Delete(TmpVHD);
Expand Down

0 comments on commit 313a00c

Please sign in to comment.