Skip to content

Commit

Permalink
Update GRUB and gnu-efi to latest
Browse files Browse the repository at this point in the history
* Also switch MSVC EDK2 automated builds to latest.
  • Loading branch information
pbatard committed Nov 29, 2024
1 parent da4be21 commit e58fe6e
Show file tree
Hide file tree
Showing 46 changed files with 109 additions and 99 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/windows_msvc_edk2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ on:

env:
BUILD_TYPE: RELEASE
COMPILER: VS2019
NASM_URL: https://www.nasm.us/pub/nasm/releasebuilds/2.16/win64/nasm-2.16-win64.zip
COMPILER: VS2022
NASM_URL: https://www.nasm.us/pub/nasm/releasebuilds/2.16.03/win64/nasm-2.16.03-win64.zip

jobs:
build:
Expand Down
16 changes: 8 additions & 8 deletions .vs/zfs.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<AdditionalIncludeDirectories>$(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\x86_64;$(SolutionDir)\grub\include;$(SolutionDir)\grub\grub-core\lib\minilzo;$(SolutionDir)\grub\grub-core\lib\libgcrypt\src;$(SolutionDir)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SolutionDir)\gnu-efi\inc;$(SolutionDir)\grub\include;$(SolutionDir)\grub\grub-core\lib\minilzo;$(SolutionDir)\grub\grub-core\lib\zstd;$(SolutionDir)\grub\grub-core\lib\libgcrypt\src;$(SolutionDir)\gnu-efi\inc\x86_64;$(SolutionDir)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_UNICODE;UNICODE;__MAKEWITH_GNUEFI;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;GRUB_FILE=__FILE__;DRIVERNAME=$(ProjectName);DRIVERNAME_STR="ZFS";EXTRAMODULE=gzio;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ExceptionHandling>false</ExceptionHandling>
<CompileAs>CompileAsC</CompileAs>
Expand Down Expand Up @@ -190,7 +190,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<AdditionalIncludeDirectories>$(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\ia32;$(SolutionDir)\grub\include;$(SolutionDir)\grub\grub-core\lib\minilzo;$(SolutionDir)\grub\grub-core\lib\libgcrypt\src;$(SolutionDir)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SolutionDir)\gnu-efi\inc;$(SolutionDir)\grub\include;$(SolutionDir)\grub\grub-core\lib\minilzo;$(SolutionDir)\grub\grub-core\lib\zstd;$(SolutionDir)\grub\grub-core\lib\libgcrypt\src;$(SolutionDir)\gnu-efi\inc\ia32;$(SolutionDir)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_UNICODE;UNICODE;__MAKEWITH_GNUEFI;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;GRUB_FILE=__FILE__;DRIVERNAME=$(ProjectName);DRIVERNAME_STR="ZFS";EXTRAMODULE=gzio;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ExceptionHandling>false</ExceptionHandling>
<CompileAs>CompileAsC</CompileAs>
Expand Down Expand Up @@ -219,7 +219,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
<ClCompile>
<AdditionalIncludeDirectories>$(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\arm;$(SolutionDir)\grub\include;$(SolutionDir)\grub\grub-core\lib\minilzo;$(SolutionDir)\grub\grub-core\lib\libgcrypt\src;$(SolutionDir)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SolutionDir)\gnu-efi\inc;$(SolutionDir)\grub\include;$(SolutionDir)\grub\grub-core\lib\minilzo;$(SolutionDir)\grub\grub-core\lib\zstd;$(SolutionDir)\grub\grub-core\lib\libgcrypt\src;$(SolutionDir)\gnu-efi\inc\arm;$(SolutionDir)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_UNICODE;UNICODE;__MAKEWITH_GNUEFI;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;GRUB_FILE=__FILE__;DRIVERNAME=$(ProjectName);DRIVERNAME_STR="ZFS";EXTRAMODULE=gzio;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ExceptionHandling>false</ExceptionHandling>
<CompileAs>CompileAsC</CompileAs>
Expand Down Expand Up @@ -247,7 +247,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
<ClCompile>
<AdditionalIncludeDirectories>$(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\aarch64;$(SolutionDir)\grub\include;$(SolutionDir)\grub\grub-core\lib\minilzo;$(SolutionDir)\grub\grub-core\lib\libgcrypt\src;$(SolutionDir)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SolutionDir)\gnu-efi\inc;$(SolutionDir)\grub\include;$(SolutionDir)\grub\grub-core\lib\minilzo;$(SolutionDir)\grub\grub-core\lib\zstd;$(SolutionDir)\grub\grub-core\lib\libgcrypt\src;$(SolutionDir)\gnu-efi\inc\aarch64;$(SolutionDir)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_UNICODE;UNICODE;__MAKEWITH_GNUEFI;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;GRUB_FILE=__FILE__;DRIVERNAME=$(ProjectName);DRIVERNAME_STR="ZFS";EXTRAMODULE=gzio;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ExceptionHandling>false</ExceptionHandling>
<CompileAs>CompileAsC</CompileAs>
Expand Down Expand Up @@ -275,7 +275,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<AdditionalIncludeDirectories>$(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\x86_64;$(SolutionDir)\grub\include;$(SolutionDir)\grub\grub-core\lib\minilzo;$(SolutionDir)\grub\grub-core\lib\libgcrypt\src;$(SolutionDir)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SolutionDir)\gnu-efi\inc;$(SolutionDir)\grub\include;$(SolutionDir)\grub\grub-core\lib\minilzo;$(SolutionDir)\grub\grub-core\lib\zstd;$(SolutionDir)\grub\grub-core\lib\libgcrypt\src;$(SolutionDir)\gnu-efi\inc\x86_64;$(SolutionDir)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_UNICODE;UNICODE;__MAKEWITH_GNUEFI;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;GRUB_FILE=__FILE__;DRIVERNAME=$(ProjectName);DRIVERNAME_STR="ZFS";EXTRAMODULE=gzio;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ExceptionHandling>false</ExceptionHandling>
<CompileAs>CompileAsC</CompileAs>
Expand Down Expand Up @@ -304,7 +304,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<AdditionalIncludeDirectories>$(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\ia32;$(SolutionDir)\grub\include;$(SolutionDir)\grub\grub-core\lib\minilzo;$(SolutionDir)\grub\grub-core\lib\libgcrypt\src;$(SolutionDir)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SolutionDir)\gnu-efi\inc;$(SolutionDir)\grub\include;$(SolutionDir)\grub\grub-core\lib\minilzo;$(SolutionDir)\grub\grub-core\lib\zstd;$(SolutionDir)\grub\grub-core\lib\libgcrypt\src;$(SolutionDir)\gnu-efi\inc\ia32;$(SolutionDir)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_UNICODE;UNICODE;__MAKEWITH_GNUEFI;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;GRUB_FILE=__FILE__;DRIVERNAME=$(ProjectName);DRIVERNAME_STR="ZFS";EXTRAMODULE=gzio;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ExceptionHandling>false</ExceptionHandling>
<CompileAs>CompileAsC</CompileAs>
Expand Down Expand Up @@ -333,7 +333,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
<ClCompile>
<AdditionalIncludeDirectories>$(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\arm;$(SolutionDir)\grub\include;$(SolutionDir)\grub\grub-core\lib\minilzo;$(SolutionDir)\grub\grub-core\lib\libgcrypt\src;$(SolutionDir)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SolutionDir)\gnu-efi\inc;$(SolutionDir)\grub\include;$(SolutionDir)\grub\grub-core\lib\minilzo;$(SolutionDir)\grub\grub-core\lib\zstd;$(SolutionDir)\grub\grub-core\lib\libgcrypt\src;$(SolutionDir)\gnu-efi\inc\arm;$(SolutionDir)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_UNICODE;UNICODE;__MAKEWITH_GNUEFI;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;GRUB_FILE=__FILE__;DRIVERNAME=$(ProjectName);DRIVERNAME_STR="ZFS";EXTRAMODULE=gzio;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ExceptionHandling>false</ExceptionHandling>
<CompileAs>CompileAsC</CompileAs>
Expand Down Expand Up @@ -362,7 +362,7 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
<ClCompile>
<AdditionalIncludeDirectories>$(SolutionDir)\gnu-efi\inc;$(SolutionDir)\gnu-efi\inc\aarch64;$(SolutionDir)\grub\include;$(SolutionDir)\grub\grub-core\lib\minilzo;$(SolutionDir)\grub\grub-core\lib\libgcrypt\src;$(SolutionDir)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(SolutionDir)\gnu-efi\inc;$(SolutionDir)\grub\include;$(SolutionDir)\grub\grub-core\lib\minilzo;$(SolutionDir)\grub\grub-core\lib\zstd;$(SolutionDir)\grub\grub-core\lib\libgcrypt\src;$(SolutionDir)\gnu-efi\inc\aarch64;$(SolutionDir)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_UNICODE;UNICODE;__MAKEWITH_GNUEFI;HAVE_USE_MS_ABI;GNU_EFI_USE_EXTERNAL_STDARG;GRUB_FILE=__FILE__;DRIVERNAME=$(ProjectName);DRIVERNAME_STR="ZFS";EXTRAMODULE=gzio;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ExceptionHandling>false</ExceptionHandling>
<CompileAs>CompileAsC</CompileAs>
Expand Down
44 changes: 23 additions & 21 deletions 0001-GRUB-fixes.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
From c1eb6b7996d16ab05af43726539b22853abeefd9 Mon Sep 17 00:00:00 2001
From 3cee4004cc6d36f2a5587327ea42aa13991db0e8 Mon Sep 17 00:00:00 2001
From: Pete Batard <pete@akeo.ie>
Date: Tue, 4 Jun 2024 16:50:10 +0100
Date: Fri, 29 Nov 2024 16:46:25 +0000
Subject: [PATCH] GRUB fixes

---
Expand All @@ -16,12 +16,12 @@ Subject: [PATCH] GRUB fixes
grub-core/fs/hfsplus.c | 2 ++
grub-core/fs/hfspluscomp.c | 4 +++
grub-core/fs/iso9660.c | 38 +++++++++++++-------
grub-core/fs/jfs.c | 5 +--
grub-core/fs/jfs.c | 6 ++--
grub-core/fs/nilfs2.c | 4 ++-
grub-core/fs/ntfs.c | 2 ++
grub-core/fs/proc.c | 2 +-
grub-core/fs/reiserfs.c | 16 ++++++++-
grub-core/fs/sfs.c | 3 +-
grub-core/fs/sfs.c | 4 ++-
grub-core/fs/squash4.c | 10 ++++--
grub-core/fs/tar.c | 2 +-
grub-core/fs/udf.c | 2 ++
Expand Down Expand Up @@ -56,7 +56,7 @@ Subject: [PATCH] GRUB fixes
include/grub/x86_64/types.h | 2 +-
include/grub/zfs/zap_leaf.h | 2 ++
include/grub/zfs/zio.h | 2 ++
52 files changed, 275 insertions(+), 87 deletions(-)
52 files changed, 277 insertions(+), 87 deletions(-)

diff --git a/grub-core/fs/affs.c b/grub-core/fs/affs.c
index ed606b3f1..3f298a696 100644
Expand All @@ -79,7 +79,7 @@ index ed606b3f1..3f298a696 100644
/* The location of `struct grub_affs_file' relative to the end of a
file header block. */
diff --git a/grub-core/fs/bfs.c b/grub-core/fs/bfs.c
index 07cb3e3ac..5d6ef2664 100644
index 9bc478ce8..2b415387a 100644
--- a/grub-core/fs/bfs.c
+++ b/grub-core/fs/bfs.c
@@ -69,6 +69,7 @@ GRUB_MOD_LICENSE ("GPLv3+");
Expand Down Expand Up @@ -305,7 +305,7 @@ index 5d41b6fdb..042870715 100644
struct head hd;
grub_size_t namesize;
diff --git a/grub-core/fs/erofs.c b/grub-core/fs/erofs.c
index 46cfc2e5c..dde762d02 100644
index f2a82e988..c56918e71 100644
--- a/grub-core/fs/erofs.c
+++ b/grub-core/fs/erofs.c
@@ -37,6 +37,7 @@ GRUB_MOD_LICENSE ("GPLv3+");
Expand Down Expand Up @@ -652,7 +652,7 @@ index 8c348b59a..0425ea2bf 100644

/* Check if `grub_realloc' failed. */
diff --git a/grub-core/fs/jfs.c b/grub-core/fs/jfs.c
index 62e20ef6f..5b8909c58 100644
index 62e20ef6f..e1a3b8b1a 100644
--- a/grub-core/fs/jfs.c
+++ b/grub-core/fs/jfs.c
@@ -61,6 +61,7 @@ struct grub_jfs_sblock
Expand All @@ -663,7 +663,7 @@ index 62e20ef6f..5b8909c58 100644
struct grub_jfs_extent
{
/* The length of the extent in filesystem blocks. */
@@ -252,10 +253,10 @@ struct grub_jfs_diropen
@@ -252,10 +253,11 @@ struct grub_jfs_diropen
char name[256 * GRUB_MAX_UTF8_PER_UTF16 + 1];
grub_uint32_t ino;
} GRUB_PACKED;
Expand All @@ -672,6 +672,7 @@ index 62e20ef6f..5b8909c58 100644

static grub_dl_t my_mod;
-
+
+
static grub_err_t grub_jfs_lookup_symlink (struct grub_jfs_data *data, grub_uint32_t ino);

Expand Down Expand Up @@ -788,7 +789,7 @@ index 36b26ac98..3c001897e 100644
struct grub_fshelp_node
{
diff --git a/grub-core/fs/sfs.c b/grub-core/fs/sfs.c
index 983e88008..a09c0a2b2 100644
index 983e88008..337700914 100644
--- a/grub-core/fs/sfs.c
+++ b/grub-core/fs/sfs.c
@@ -31,6 +31,7 @@
Expand All @@ -799,11 +800,12 @@ index 983e88008..a09c0a2b2 100644
struct grub_sfs_bheader
{
grub_uint8_t magic[4];
@@ -122,8 +123,8 @@ struct grub_sfs_btree
@@ -122,8 +123,9 @@ struct grub_sfs_btree
supported. */
struct grub_sfs_btree_node node[1];
} GRUB_PACKED;
+PRAGMA_END_PACKED
+

-

Expand Down Expand Up @@ -942,10 +944,10 @@ index 8e02ab4a3..48c6c8613 100644
struct grub_fshelp_node
{
diff --git a/grub-core/fs/zfs/zfs.c b/grub-core/fs/zfs/zfs.c
index b5453e006..9dcdc9f70 100644
index 3fdf9bda8..753703f54 100644
--- a/grub-core/fs/zfs/zfs.c
+++ b/grub-core/fs/zfs/zfs.c
@@ -252,8 +252,8 @@ struct grub_zfs_data
@@ -254,8 +254,8 @@ struct grub_zfs_data
struct subvolume subvol;

struct grub_zfs_device_desc *devices_attached;
Expand All @@ -956,7 +958,7 @@ index b5453e006..9dcdc9f70 100644
struct grub_zfs_device_desc *device_original;

uberblock_t current_uberblock;
@@ -2727,7 +2727,9 @@ dnode_get (dnode_end_t * mdn, grub_uint64_t objnum, grub_uint8_t type,
@@ -2767,7 +2767,9 @@ dnode_get (dnode_end_t * mdn, grub_uint64_t objnum, grub_uint8_t type,
return GRUB_ERR_NONE;
}

Expand Down Expand Up @@ -1045,7 +1047,7 @@ index 7cee5d75c..30ff90432 100644

while (len < format2 && p[len])
diff --git a/grub-core/lib/posix_wrap/limits.h b/grub-core/lib/posix_wrap/limits.h
index 26918c8a0..55384b326 100644
index 4be7b4080..9f89a0f9d 100644
--- a/grub-core/lib/posix_wrap/limits.h
+++ b/grub-core/lib/posix_wrap/limits.h
@@ -23,8 +23,12 @@
Expand Down Expand Up @@ -1079,7 +1081,7 @@ index 26918c8a0..55384b326 100644
+#endif

#define CHAR_BIT 8

#define WORD_BIT 32
diff --git a/grub-core/lib/xzembed/xz_dec_lzma2.c b/grub-core/lib/xzembed/xz_dec_lzma2.c
index af7b77079..d39f8afc0 100644
--- a/grub-core/lib/xzembed/xz_dec_lzma2.c
Expand Down Expand Up @@ -1430,7 +1432,7 @@ index 2d8336aff..8627dc47e 100644
/* Return the offset of the record with the index INDEX, in the node
NODE which is part of the B+ tree BTREE. */
diff --git a/include/grub/misc.h b/include/grub/misc.h
index 1b35a167f..8ef1e4d6c 100644
index 1578f36c3..e2705282e 100644
--- a/include/grub/misc.h
+++ b/include/grub/misc.h
@@ -32,7 +32,9 @@
Expand Down Expand Up @@ -1528,7 +1530,7 @@ index 7f1a14c84..6daa584a1 100644

static inline struct grub_term_coordinate
diff --git a/include/grub/types.h b/include/grub/types.h
index 064066e2e..4c518ea73 100644
index 45079bf65..5f661f999 100644
--- a/include/grub/types.h
+++ b/include/grub/types.h
@@ -27,10 +27,20 @@
Expand All @@ -1553,8 +1555,8 @@ index 064066e2e..4c518ea73 100644
# define GRUB_CPU_SIZEOF_VOID_P BUILD_SIZEOF_VOID_P
# define GRUB_CPU_SIZEOF_LONG BUILD_SIZEOF_LONG
@@ -199,19 +209,17 @@ static inline grub_uint16_t grub_swap_bytes16(grub_uint16_t _x)
#define grub_swap_bytes16_compile_time(x) ((((x) & 0xff) << 8) | (((x) & 0xff00) >> 8))
#define grub_swap_bytes32_compile_time(x) ((((x) & 0xff) << 24) | (((x) & 0xff00) << 8) | (((x) & 0xff0000) >> 8) | (((x) & 0xff000000UL) >> 24))
#define grub_swap_bytes16_compile_time(x) ((grub_uint16_t)((((x) & 0xff) << 8) | (((x) & 0xff00) >> 8)))
#define grub_swap_bytes32_compile_time(x) ((grub_uint32_t)((((x) & 0xff) << 24) | (((x) & 0xff00) << 8) | (((x) & 0xff0000) >> 8) | (((x) & 0xff000000UL) >> 24)))
#define grub_swap_bytes64_compile_time(x) \
-({ \
- grub_uint64_t _x = (x); \
Expand Down Expand Up @@ -1673,7 +1675,7 @@ index 11447c166..0479d383f 100644
} l_array;
struct zap_leaf_free {
diff --git a/include/grub/zfs/zio.h b/include/grub/zfs/zio.h
index 19ce136bb..11ee51b61 100644
index 997b0c4d4..88dcce269 100644
--- a/include/grub/zfs/zio.h
+++ b/include/grub/zfs/zio.h
@@ -27,10 +27,12 @@
Expand Down
4 changes: 3 additions & 1 deletion EfiFsPkg.dec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## @file
# EfiFs Package
#
# Copyright (c) 2017-2018, Pete Batard <pete@akeo.ie>
# Copyright (c) 2017-2024, Pete Batard <pete@akeo.ie>
#
##

Expand All @@ -19,3 +19,5 @@
grub/include
grub
grub/grub-core/lib/minilzo
grub/grub-core/lib/zstd

5 changes: 3 additions & 2 deletions EfiFsPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
MSFT:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
RVCT:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
*_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
MSFT:*_*_ARM_CC_FLAGS = /GS-
MSFT:*_*_AARCH64_CC_FLAGS = /GS-

!include MdePkg/MdeLibs.dsc.inc
Expand All @@ -45,11 +46,11 @@
DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf

[LibraryClasses.ARM, LibraryClasses.AARCH64, LibraryClasses.RISCV64, LibraryClasses.LOONGARCH64,]
[LibraryClasses.ARM, LibraryClasses.AARCH64, LibraryClasses.RISCV64, LibraryClasses.LOONGARCH64]
NULL|MdePkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf

[LibraryClasses.IA32, LibraryClasses.X64]
!if $(TOOLCHAIN) == "VS2019"
!if $(TOOLCHAIN) == "VS2022"
NULL|EfiFsPkg/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
!endif

Expand Down
2 changes: 1 addition & 1 deletion EfiFsPkg/Affs.inf
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@
[BuildOptions]
*_*_IA32_CC_FLAGS = -DFORMAT=efi-app-ia32
*_*_X64_CC_FLAGS = -DFORMAT=efi-app-x64
*_*_*_CC_FLAGS = -Os -DCPU_$(ARCH) -DGRUB_FILE=__FILE__ -DDRIVERNAME=$(BASE_NAME) -DDRIVERNAME_STR="\"Amiga FFS\""
*_*_*_CC_FLAGS = -Os -DCPU_$(ARCH) -DGRUB -DGRUB_FILE=__FILE__ -DDRIVERNAME=$(BASE_NAME) -DDRIVERNAME_STR="\"Amiga FFS\""
MSFT:*_*_*_CC_FLAGS = /Oi- /std:clatest /wd4028 /wd4068 /wd4133 /wd4146 /wd4201 /wd4204 /wd4244 /wd4245 /wd4267 /wd4311 /wd4312 /wd4334 /wd4706
GCC:*_*_*_CC_FLAGS = -Wno-overflow
2 changes: 1 addition & 1 deletion EfiFsPkg/Afs.inf
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,5 @@
[BuildOptions]
*_*_IA32_CC_FLAGS = -DFORMAT=efi-app-ia32
*_*_X64_CC_FLAGS = -DFORMAT=efi-app-x64
*_*_*_CC_FLAGS = -Os -DCPU_$(ARCH) -DGRUB_FILE=__FILE__ -DDRIVERNAME=$(BASE_NAME) -DDRIVERNAME_STR=\"AFS\"
*_*_*_CC_FLAGS = -Os -DCPU_$(ARCH) -DGRUB -DGRUB_FILE=__FILE__ -DDRIVERNAME=$(BASE_NAME) -DDRIVERNAME_STR=\"AFS\"
MSFT:*_*_*_CC_FLAGS = /Oi- /std:clatest /wd4028 /wd4068 /wd4133 /wd4146 /wd4201 /wd4204 /wd4244 /wd4245 /wd4267 /wd4311 /wd4312 /wd4334 /wd4706
2 changes: 1 addition & 1 deletion EfiFsPkg/Bfs.inf
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,5 @@
[BuildOptions]
*_*_IA32_CC_FLAGS = -DFORMAT=efi-app-ia32
*_*_X64_CC_FLAGS = -DFORMAT=efi-app-x64
*_*_*_CC_FLAGS = -Os -DCPU_$(ARCH) -DGRUB_FILE=__FILE__ -DDRIVERNAME=$(BASE_NAME) -DDRIVERNAME_STR=\"BFS\"
*_*_*_CC_FLAGS = -Os -DCPU_$(ARCH) -DGRUB -DGRUB_FILE=__FILE__ -DDRIVERNAME=$(BASE_NAME) -DDRIVERNAME_STR=\"BFS\"
MSFT:*_*_*_CC_FLAGS = /Oi- /std:clatest /wd4028 /wd4068 /wd4133 /wd4146 /wd4201 /wd4204 /wd4244 /wd4245 /wd4267 /wd4311 /wd4312 /wd4334 /wd4706
22 changes: 10 additions & 12 deletions EfiFsPkg/Btrfs.inf
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,23 @@
../src/this.c
../src/path.c
../src/utf8.c
../grub/grub-core/fs/btrfs.c
../grub/grub-core/fs/fshelp.c
../grub/grub-core/io/gzio.c
../grub/grub-core/io/lzopio.c
../grub/grub-core/kern/err.c
../grub/grub-core/kern/list.c
../grub/grub-core/kern/misc.c
../grub/grub-core/lib/crc.c
../grub/grub-core/lib/crypto.c
../grub/grub-core/lib/minilzo/minilzo.c
../grub/grub-core/lib/zstd/entropy_common.c
../grub/grub-core/lib/zstd/error_private.c
../grub/grub-core/lib/zstd/fse_decompress.c
../grub/grub-core/lib/zstd/huf.h
../grub/grub-core/lib/zstd/huf_decompress.c
../grub/grub-core/lib/zstd/xxhash.c
../grub/grub-core/lib/zstd/zstd_common.c
../grub/grub-core/lib/zstd/zstd_decompress.c
../grub/grub-core/lib/zstd/zstd.h
../grub/grub-core/io/lzopio.c
../grub/grub-core/io/gzio.c
../grub/grub-core/kern/err.c
../grub/grub-core/kern/list.c
../grub/grub-core/kern/misc.c
../grub/grub-core/fs/fshelp.c
../grub/grub-core/fs/btrfs.c

[Packages]
EfiFsPkg/EfiFsPkg.dec
Expand Down Expand Up @@ -81,7 +79,7 @@
[BuildOptions]
*_*_IA32_CC_FLAGS = -DFORMAT=efi-app-ia32
*_*_X64_CC_FLAGS = -DFORMAT=efi-app-x64
*_*_*_CC_FLAGS = -Os -DCPU_$(ARCH) -DGRUB_FILE=__FILE__ -DDRIVERNAME=$(BASE_NAME) -DDRIVERNAME_STR=\"Btrfs\"
*_*_*_CC_FLAGS = -DEXTRAMODULE=gzio -DZSTD_NO_TRACE -DGRUB -DNO_RAID6_RECOVERY
*_*_*_CC_FLAGS = -Os -DCPU_$(ARCH) -DGRUB -DGRUB_FILE=__FILE__ -DDRIVERNAME=$(BASE_NAME) -DDRIVERNAME_STR=\"Btrfs\"
*_*_*_CC_FLAGS = -DEXTRAMODULE=gzio -DZSTD_NO_TRACE -DNO_RAID6_RECOVERY
GCC:*_*_*_CC_FLAGS = -Wno-unused-function
MSFT:*_*_*_CC_FLAGS = /Oi- /std:clatest /wd4028 /wd4068 /wd4133 /wd4146 /wd4201 /wd4204 /wd4244 /wd4245 /wd4267 /wd4311 /wd4312 /wd4334 /wd4706
MSFT:*_*_*_CC_FLAGS = /Oi- /std:clatest /wd4028 /wd4068 /wd4133 /wd4146 /wd4201 /wd4211 /wd4204 /wd4244 /wd4245 /wd4267 /wd4311 /wd4312 /wd4334 /wd4706
Loading

0 comments on commit e58fe6e

Please sign in to comment.