Skip to content

Commit

Permalink
Add EROFS support
Browse files Browse the repository at this point in the history
* Also update GRUB and gnu-efi to latest
  • Loading branch information
pbatard committed Jun 4, 2024
1 parent 669aed3 commit 78a7df9
Show file tree
Hide file tree
Showing 74 changed files with 929 additions and 182 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/linux_gcc_edk2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ jobs:

steps:
- name: Install toolchain
run: sudo apt install ${{ matrix.pkgs }}
run: |
sudo apt-get update
sudo apt-get install ${{ matrix.pkgs }}
- name: Install nasm ${{ env.NASM_VERSION }}
# https://edk2.groups.io/g/devel/topic/89637409#87359
if: matrix.arch == 'X64' || matrix.arch == 'IA32'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/linux_gcc_gnu-efi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ jobs:
fetch-depth: 0
submodules: recursive
- name: Install gcc toolchain
run: sudo apt install ${{ matrix.pkg }}
run: |
sudo apt-get update
sudo apt-get install ${{ matrix.pkg }}
- name: Patch GRUB
run: |
cd grub
Expand Down
12 changes: 8 additions & 4 deletions .vs/affs.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Lib>
<SubSystem>EFI Application</SubSystem>
Expand Down Expand Up @@ -198,6 +199,7 @@
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Lib>
<SubSystem>EFI Application</SubSystem>
Expand Down Expand Up @@ -226,6 +228,7 @@
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Lib>
<SubSystem>EFI Application</SubSystem>
Expand Down Expand Up @@ -253,6 +256,7 @@
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Lib>
<SubSystem>EFI Application</SubSystem>
Expand All @@ -278,7 +282,7 @@
<WarningLevel>Level3</WarningLevel>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>/Oi- %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
<Optimization>MinSpace</Optimization>
</ClCompile>
<Lib>
Expand Down Expand Up @@ -307,7 +311,7 @@
<WarningLevel>Level3</WarningLevel>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>/Oi- %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
<Optimization>MinSpace</Optimization>
</ClCompile>
<Lib>
Expand Down Expand Up @@ -336,7 +340,7 @@
<WarningLevel>Level3</WarningLevel>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>/Oi- %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
<Optimization>MinSpace</Optimization>
</ClCompile>
<Lib>
Expand Down Expand Up @@ -365,7 +369,7 @@
<WarningLevel>Level3</WarningLevel>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>/Oi- %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
<Optimization>MinSpace</Optimization>
</ClCompile>
<Lib>
Expand Down
12 changes: 8 additions & 4 deletions .vs/bfs.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Lib>
<SubSystem>EFI Application</SubSystem>
Expand Down Expand Up @@ -198,6 +199,7 @@
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Lib>
<SubSystem>EFI Application</SubSystem>
Expand Down Expand Up @@ -226,6 +228,7 @@
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Lib>
<SubSystem>EFI Application</SubSystem>
Expand Down Expand Up @@ -253,6 +256,7 @@
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Lib>
<SubSystem>EFI Application</SubSystem>
Expand All @@ -278,7 +282,7 @@
<WarningLevel>Level3</WarningLevel>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>/Oi- %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
<Optimization>MinSpace</Optimization>
</ClCompile>
<Lib>
Expand Down Expand Up @@ -307,7 +311,7 @@
<WarningLevel>Level3</WarningLevel>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>/Oi- %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
<Optimization>MinSpace</Optimization>
</ClCompile>
<Lib>
Expand Down Expand Up @@ -336,7 +340,7 @@
<WarningLevel>Level3</WarningLevel>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>/Oi- %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
<Optimization>MinSpace</Optimization>
</ClCompile>
<Lib>
Expand Down Expand Up @@ -365,7 +369,7 @@
<WarningLevel>Level3</WarningLevel>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>/Oi- %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
<Optimization>MinSpace</Optimization>
</ClCompile>
<Lib>
Expand Down
12 changes: 8 additions & 4 deletions .vs/btrfs.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Lib>
<SubSystem>EFI Application</SubSystem>
Expand Down Expand Up @@ -198,6 +199,7 @@
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Lib>
<SubSystem>EFI Application</SubSystem>
Expand Down Expand Up @@ -226,6 +228,7 @@
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Lib>
<SubSystem>EFI Application</SubSystem>
Expand Down Expand Up @@ -253,6 +256,7 @@
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Lib>
<SubSystem>EFI Application</SubSystem>
Expand All @@ -278,7 +282,7 @@
<WarningLevel>Level3</WarningLevel>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>/Oi- %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
<Optimization>MinSpace</Optimization>
</ClCompile>
<Lib>
Expand Down Expand Up @@ -307,7 +311,7 @@
<WarningLevel>Level3</WarningLevel>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>/Oi- %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
<Optimization>MinSpace</Optimization>
</ClCompile>
<Lib>
Expand Down Expand Up @@ -336,7 +340,7 @@
<WarningLevel>Level3</WarningLevel>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>/Oi- %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
<Optimization>MinSpace</Optimization>
</ClCompile>
<Lib>
Expand Down Expand Up @@ -365,7 +369,7 @@
<WarningLevel>Level3</WarningLevel>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalOptions>/Oi- %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
<Optimization>MinSpace</Optimization>
</ClCompile>
<Lib>
Expand Down
16 changes: 8 additions & 8 deletions .vs/efifs.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<BufferSecurityCheck>false</BufferSecurityCheck>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<AdditionalOptions>/Oi- %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
Expand All @@ -172,7 +172,7 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<BufferSecurityCheck>false</BufferSecurityCheck>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<AdditionalOptions>/Oi- %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
Expand All @@ -193,7 +193,7 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<BufferSecurityCheck>false</BufferSecurityCheck>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<AdditionalOptions>/Oi- %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
Expand All @@ -214,7 +214,7 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<BufferSecurityCheck>false</BufferSecurityCheck>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<AdditionalOptions>/Oi- %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
Expand All @@ -233,7 +233,7 @@
<CompileAs>CompileAsC</CompileAs>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<BufferSecurityCheck>false</BufferSecurityCheck>
<AdditionalOptions>/Oi- %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
<Optimization>MinSpace</Optimization>
</ClCompile>
<Link>
Expand All @@ -256,7 +256,7 @@
<CompileAs>CompileAsC</CompileAs>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<BufferSecurityCheck>false</BufferSecurityCheck>
<AdditionalOptions>/Oi- %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
<Optimization>MinSpace</Optimization>
</ClCompile>
<Link>
Expand All @@ -279,7 +279,7 @@
<CompileAs>CompileAsC</CompileAs>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<BufferSecurityCheck>false</BufferSecurityCheck>
<AdditionalOptions>/Oi- %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
<Optimization>MinSpace</Optimization>
</ClCompile>
<Link>
Expand All @@ -302,7 +302,7 @@
<CompileAs>CompileAsC</CompileAs>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<BufferSecurityCheck>false</BufferSecurityCheck>
<AdditionalOptions>/Oi- %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/Oi- /std:clatest %(AdditionalOptions)</AdditionalOptions>
<Optimization>MinSpace</Optimization>
</ClCompile>
<Link>
Expand Down
Loading

0 comments on commit 78a7df9

Please sign in to comment.