Skip to content

Commit

Permalink
Remove needed argument for GetDriverDefinitionPath
Browse files Browse the repository at this point in the history
  • Loading branch information
gus33000 committed Feb 27, 2024
1 parent f87eb09 commit 7284792
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 @@ -11,7 +11,7 @@ public class EpsilonHalfSplit128GB : IDeviceProfile

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

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

public ulong GetDiskTotalSize() =>
//return 239_683_502_080; // 256GB (Bigger variant);
Expand Down
2 changes: 1 addition & 1 deletion FirmwareGen/DeviceProfiles/EpsilonHalfSplit256GB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal class EpsilonHalfSplit256GB : IDeviceProfile

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

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

public ulong GetDiskTotalSize() =>
//return 239_683_502_080; // 256GB (Bigger variant);
Expand Down
2 changes: 1 addition & 1 deletion FirmwareGen/DeviceProfiles/EpsilonMaximizedForWindows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal class EpsilonMaximizedForWindows : IDeviceProfile

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

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

public ulong GetDiskTotalSize() =>
//return 239_683_502_080; // 256GB (Bigger variant);
Expand Down
2 changes: 1 addition & 1 deletion FirmwareGen/DeviceProfiles/MTP8150MaximizedForWindows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal class MTP8150MaximizedForWindows : IDeviceProfile

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

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

public ulong GetDiskTotalSize() => 123_371_257_856; // 128GB;

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

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

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

public ulong GetDiskTotalSize() => 110_394_081_280; // 128GB;

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

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

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

public ulong GetDiskTotalSize() => 238_353_907_712; // 256GB;

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

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

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

public ulong GetDiskTotalSize() => throw new NotImplementedException();

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

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

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

public ulong GetDiskTotalSize() => 110_394_081_280; // 128GB;

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

Logging.Log("Adding drivers");
VolumeUtils.RunProgram(DriverUpdater, $@"-d ""{deviceProfile.GetDriverDefinitionPath(options.DriverPack)}"" -r ""{options.DriverPack}"" -p ""{VHDLetter}""");
VolumeUtils.RunProgram(DriverUpdater, $@"-d ""{options.DriverPack}{deviceProfile.GetDriverDefinitionPath()}"" -r ""{options.DriverPack}"" -p ""{VHDLetter}""");
VolumeUtils.DismountVirtualHardDisk(TmpVHD);
Expand Down

0 comments on commit 7284792

Please sign in to comment.