File tree Expand file tree Collapse file tree 3 files changed +17
-12
lines changed Expand file tree Collapse file tree 3 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ endforeach
9292efi_conf.set_quoted(' PROJECT_VERSION' , project_major_version)
9393efi_conf.set_quoted(' VERSION_TAG' , version_tag)
9494efi_conf.set(' PROJECT_URL' , conf.get(' PROJECT_URL' ))
95+ efi_conf.set_quoted(' RELATIVE_SOURCE_PATH' , relative_source_path)
9596
9697if meson .is_cross_build() and get_option (' sbat-distro' ) == ' auto'
9798 warning (' Auto detection of SBAT information not supported when cross-building, disabling SBAT.' )
Original file line number Diff line number Diff line change 1313/* Never try to read more than 16G into memory (and on 32bit 1G) */
1414#define FILE_READ_MAX MIN(SIZE_MAX/4, UINT64_C(16)*1024U*1024U*1024U)
1515
16+ void free (void * p ) {
17+ if (!p )
18+ return ;
19+
20+ /* Debugging an invalid free requires trace logging to find the call site or a debugger attached. For
21+ * release builds it is not worth the bother to even warn when we cannot even print a call stack. */
22+ #ifdef EFI_DEBUG
23+ assert_se (BS -> FreePool (p ) == EFI_SUCCESS );
24+ #else
25+ (void ) BS -> FreePool (p );
26+ #endif
27+ }
28+
1629void convert_efi_path (char16_t * path ) {
1730 assert (path );
1831
Original file line number Diff line number Diff line change 1414/* This is provided by the linker. */
1515extern uint8_t __executable_start [];
1616
17- static inline void free (void * p ) {
18- if (!p )
19- return ;
20-
21- /* Debugging an invalid free requires trace logging to find the call site or a debugger attached. For
22- * release builds it is not worth the bother to even warn when we cannot even print a call stack. */
23- #ifdef EFI_DEBUG
24- assert_se (BS -> FreePool (p ) == EFI_SUCCESS );
25- #else
26- (void ) BS -> FreePool (p );
27- #endif
28- }
17+ DISABLE_WARNING_REDUNDANT_DECLS ;
18+ void free (void * p );
19+ REENABLE_WARNING ;
2920
3021static inline void freep (void * p ) {
3122 free (* (void * * ) p );
You can’t perform that action at this time.
0 commit comments