Skip to content

Commit

Permalink
Kernel compression
Browse files Browse the repository at this point in the history
  • Loading branch information
Jspa2 committed Aug 8, 2022
1 parent 4c5c5eb commit c6004e5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions source/Cosmos.Build.Common/BuildProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,21 @@ public BinFormat BinFormat
}
}

/// <summary>
/// Gets or sets the compression type for the kernel image.
/// </summary>
public CompressionType CompressionType
{
get
{
return GetProperty(BuildPropertyNames.CompressionTypeString, CompressionType.None);
}
set
{
SetProperty(BuildPropertyNames.CompressionTypeString, value);
}
}

/// <summary>
/// Compile with VBE specified in multiboot structure.
/// </summary>
Expand Down
1 change: 1 addition & 0 deletions source/Cosmos.Build.Common/BuildPropertyNames.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public static class BuildPropertyNames
public const string EnableBochsDebugString = "EnableBochsDebug";
public const string StartBochsDebugGui = "StartBochsDebugGui";
public const string BinFormatString = "BinFormat";
public const string CompressionTypeString = "CompressionType";
public const string IsoFileString = "ISOFile";
public const string CompileVBEMultiboot = "CompileVBEMultiboot";
public const string VBEResolution = "VBEResolution";
Expand Down
6 changes: 6 additions & 0 deletions source/Cosmos.Build.Common/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ public enum StackCorruptionDetectionLevel
MethodFooters
}

public enum CompressionType
{
None,
Gzip
}

public static class EnumHelper
{
public static string GetDescription(this Enum value)
Expand Down

0 comments on commit c6004e5

Please sign in to comment.