4437 Commits

Author SHA1 Message Date
Mike Beaton
f6bf1f2d86 EnableGop: Provide standalone GOP driver for EFI-era Macs 2023-01-29 09:21:49 +00:00
Mike Beaton
b07843fe1d OcConsoleLib: Prevent failure to properly start console in graphics mode
when previous console control protocol is non-existent or limited
2023-01-29 08:15:40 +00:00
Mike Beaton
09a86531d3 Uncrustify 2023-01-26 22:45:13 +00:00
Mike Beaton
e7b1edee09 AppleFeatures: Update FirmwareFeatures BIT12 info 2023-01-26 22:40:58 +00:00
Andrey1970AppleLife
fe7ce129a9 Updated builtin firmware versions 2023-01-24 02:51:28 +03:00
Mike Beaton
5032385ba4 OpenVariableRuntimeDxe: Revert 47e800f75056c4e26ee9fa69a91ba1f162249176 and add comment explaining why 2023-01-22 13:36:43 +00:00
MikhailKrichanov
218db2a0dd
Debug: Changed ImageBase field to load address for debug info search. (#417) 2023-01-13 10:26:46 +03:00
Savva Mitrofanov
40dfc3a438
Utilities: Correct SetPosition call in TestExt4Dxe 2023-01-12 13:46:19 +03:00
Savva Mitrofanov
b15983a9dc
Utilities: Call Ext4OpenPartition in TestExt4Dxe
Implements override for gBS->InstallMultipleProtocolInterfaces function,
to call Ext4OpenPartition routine from Ext4Dxe driver which should open
SuperBlock and allocates EXT4_PARTITION structure instead of doing it
manual in fuzzer itself. Also adds Ext4SuperblockCheckMagic call which
used in Ext4IsBindingSupported procedure
2023-01-12 13:46:18 +03:00
Savva Mitrofanov
bec86b4ace
Utilities: Extend TestExt4Dxe functionality
Trying to open file with different modes in loop (read, write, create).
Adds memory allocation mutations based on given allocation mask
to imitate allocation errors. This change should increase code coverage
by reaching branches with memory allocation error
2023-01-12 13:46:17 +03:00
Savva Mitrofanov
6d20d2d56f User: Corrects ASSERT behavior in UserPcd
The CpuBreakPoint in UserMisc normally shouldn't enter dead-loop
condition, instead it should break the program using abort signal. Also
sets DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED bit by default in
PcdDebugPropertyMask. As a background was a problem with fuzzing when
program process falls into dead-loop condition instead of just to exit
with crash
2023-01-12 13:41:53 +03:00
vit9696
a74e12d8ac Docs: Address submodule issues 2023-01-08 15:20:26 +03:00
vit9696
42649a9e39 Docs: Add note about ReBarUEFI and update errata with duet bug 2023-01-07 21:33:10 +03:00
Mike Beaton
01b457fe81 Docs/Comments: Consistent use of Note: instead of NB 2023-01-07 09:46:19 +00:00
Savva Mitrofanov
573c2d590a
Docs: Sync changelog 2023-01-06 17:11:17 +06:00
Savva Mitrofanov
0e2e729e5f
Utilities: Adds Linux support into LegacyBoot boot install script 2023-01-06 12:50:21 +06:00
vit9696
092af5d99c Build: Make PE loader strip X bit in WX sections
This is required to support Apple-made images that have .data with RWX
permissions. Found in EfiBoot, APFS, HFS, ExFat, etc.

closes acidanthera/bugtracker#2190
2023-01-04 21:43:10 +03:00
vit9696
76b59df43c OcAcpiLib: Improve debug logging when applying ACPI patches
closes acidanthera/bugtracker#2140
2023-01-02 21:00:44 +03:00
vit9696
eb1347c77c User: Please macOS compiler 2023-01-02 20:49:40 +03:00
vit9696
9e81ed82f3 User: Please analysers 2023-01-02 20:17:32 +03:00
vit9696
6055ec7b43 User: Fix compilation 2023-01-02 20:13:14 +03:00
Andrey1970AppleLife
0a4e73c0ca Bump version 2023-01-02 19:57:55 +03:00
Mike Beaton
a753334642 Docs: Fix typo 0.8.8 2023-01-02 12:36:17 +00:00
Vitaly Cheptsov
5c019338ac
Docs: Sync changelog 2023-01-02 03:09:52 +03:00
John Davis
ca1edadd23
OcDevicePathLib: Add support for Apple SD card startup disk EFI device paths (#413) 2023-01-02 03:09:12 +03:00
Savva Mitrofanov
81afba4426
Utilities: Correct QemuBuild.command formatting 2022-12-31 00:18:13 +06:00
Savva Mitrofanov
1cdc54582d
Docs: Sync changelog 2022-12-30 18:25:16 +06:00
Savva Mitrofanov
14f2c56ff3
Build: Adds DISCARD_PACKAGES variable in build scripts
Updates build script according recent changes in efibuild. We need to
specify OpenCorePkg to be removed while build because currently this 
package is present as submodule in audk and conflicts
2022-12-30 18:25:15 +06:00
Savva Mitrofanov
13fa5f97ea
Build: Compiles BaseTools instead of using prebuilt ones in build_duet
This should fix a problem with Linux platform which uses ELF binaries
which doesn't support multiarchitecture format like FAT. First of
all it fixes DUET build on Apple Silicon platforms
2022-12-30 18:25:08 +06:00
Mikhail Krichanov
ca9a501490
Build: Replaced GenFw with ImageTool. 2022-12-28 21:24:19 +06:00
Mikhail Krichanov
676f04b51b
Build: Increased firmware size. 2022-12-28 21:24:18 +06:00
Mikhail Krichanov
6163813929
Build: Fixed compilation. 2022-12-28 21:24:17 +06:00
Savva Mitrofanov
68c05b5c40 Utilities: Corrects QemuBuild.command for Linux
Add missing packages check and assumes to run this script as root.
Also we need to create partition table on raw image image before
invoking disk mount using qemu-nbd tool.
2022-12-28 16:53:43 +03:00
Marvin Häuser
f29ef4ed91 Build: Use Docker in rootless mode 2022-12-28 13:48:19 +01:00
Mike Beaton
3335029002 Build: Only set Duet in-tree specific build vars when used 2022-12-28 09:45:58 +00:00
Mike Beaton
7a288f3c15 Build: Allow overriding default targets for Duet standard build 2022-12-28 09:45:48 +00:00
Mikhail Krichanov
c4c6939db7 User: Refactored UserWriteFile(). 2022-12-28 12:11:55 +03:00
Mikhail Krichanov
1a8f88bbd2 User: Windows compilation fixes. 2022-12-28 12:11:36 +03:00
Mikhail Krichanov
b139e3a07d User: Added IsZeroGuid(). 2022-12-28 12:11:23 +03:00
Mikhail Krichanov
84c6bc980d Utilities: Added QemuBuild.commands for Linux. 2022-12-28 12:08:46 +03:00
Andrey1970AppleLife
02b938f1a3 2023 2022-12-28 01:17:50 +03:00
vit9696
7b7d6ea756 OcBootManagementLib: Add .contentVisibility file
This replaces OpenCore signature checking with .contentVisibility file
containing either `Disabled` or `Auxiliary` to hide entries from the
boot picker.
2022-12-25 20:04:40 +03:00
vit9696
6570a87706 OcAppleSecureBootLib: Fix memory leak 2022-12-25 20:04:40 +03:00
John Davis
15a8d7fd70 OcXmlLib: Fix buffer overflow when removing an XML node 2022-12-24 11:55:02 -06:00
Marvin Häuser
778f767709 Build: Update edk2 Dockerfile to LLVM 15 2022-12-24 18:12:00 +01:00
Marvin Häuser
23ddbba0d7 OcCompressionLib: Fix zlib build with LLVM 15
REF: https://github.com/madler/zlib/issues/633
2022-12-24 18:12:00 +01:00
John Davis
7b2af06339 OcMainLib: Fix kext blocker not processing entries if one was skipped due to arch 2022-12-24 08:41:54 -06:00
Vitaly Cheptsov
3e01f7faa1
Build: Silence shellcheck 2022-12-22 13:54:41 +03:00
vit9696
d60b94d567 Utilities: Fix shellcheck warnings 2022-12-22 13:44:21 +03:00
Marvin Häuser
ee0f2a53bc
Build: Introduce Docker setup for Dev Containers and CI (#410)
Docker allows to set up a portable development environment in a container. This
can be useful to test Linux toolchains on macOS. Introduce such environments
for EDK II and documentation development.

The current implementation supports both Dev Environments by Docker Desktop and
Dev Containers by Visual Studio Code. To reduce the maintenance burden, use
these environments for the Linux-based GitHub Actions as well. Non-x86 hosts,
including Apple Silicon, are supported via GCC cross-compilation.
2022-12-19 22:10:12 +01:00