Skip to content

Commit

Permalink
Fixed compilation of all packages tracked by CI after rebasing upon e…
Browse files Browse the repository at this point in the history
…dk2-stable202405 tag.
  • Loading branch information
Mikhail Krichanov committed Jun 28, 2024
1 parent 9ad5ffd commit 3926c38
Show file tree
Hide file tree
Showing 33 changed files with 115 additions and 586 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build_arm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: Linux GCC
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
run: zip GCC_fw_arm_artifacts.zip ./firmware_artifacts/* -r

- name: Upload to Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: GCC Firmware ARM Artifacts
path: GCC_fw_arm_artifacts.zip
Expand All @@ -116,7 +116,7 @@ jobs:
name: Linux CLANGDWARF
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -203,7 +203,7 @@ jobs:
run: zip CLANGDWARF_fw_arm_artifacts.zip ./firmware_artifacts/* -r

- name: Upload to Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: CLANGDWARF Firmware ARM Artifacts
path: CLANGDWARF_fw_arm_artifacts.zip
Expand All @@ -222,7 +222,7 @@ jobs:
]
steps:
- name: Checkout ocbuild repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: acidanthera/ocbuild
ref: master
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build_common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
env:
JOB_TYPE: BUILD
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -253,7 +253,7 @@ jobs:
name: Linux CLANGPDB
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -377,7 +377,7 @@ jobs:
name: Linux CLANGDWARF
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -501,7 +501,7 @@ jobs:
name: Linux GCC
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/build_nolto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: Linux GCC ARM
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
run: zip GCC_no_lto_artifacts.zip ./firmware_artifacts/* -r

- name: Upload to Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: GCC Firmware NO_LTO Artifacts
path: GCC_no_lto_artifacts.zip
Expand All @@ -119,7 +119,7 @@ jobs:
name: Linux GCC AMD
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -219,7 +219,7 @@ jobs:
run: zip GCC_fw_artifacts.zip ./firmware_artifacts/* -r

- name: Upload to Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: GCC Firmware Artifacts
path: GCC_fw_artifacts.zip
Expand All @@ -228,7 +228,7 @@ jobs:
name: Linux GCC Common
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -370,7 +370,7 @@ jobs:
]
steps:
- name: Checkout ocbuild repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: acidanthera/ocbuild
ref: master
Expand Down Expand Up @@ -472,7 +472,7 @@ jobs:
]
steps:
- name: Checkout ocbuild repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: acidanthera/ocbuild
ref: master
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/build_x86.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
env:
JOB_TYPE: BUILD
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
run: zip XCODE5_fw_artifacts.zip ./firmware_artifacts/* -r

- name: Upload to Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: XCODE5 Firmware Artifacts
path: XCODE5_fw_artifacts.zip
Expand All @@ -142,7 +142,7 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -238,7 +238,7 @@ jobs:
run: zip VS2019_fw_artifacts.zip ./firmware_artifacts/* -r

- name: Upload to Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: VS2019 Firmware Artifacts
path: VS2019_fw_artifacts.zip
Expand All @@ -247,7 +247,7 @@ jobs:
name: Linux CLANGPDB
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -343,7 +343,7 @@ jobs:
run: zip CLANGPDB_fw_artifacts.zip ./firmware_artifacts/* -r

- name: Upload to Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: CLANGPDB Firmware Artifacts
path: CLANGPDB_fw_artifacts.zip
Expand All @@ -352,7 +352,7 @@ jobs:
name: Linux CLANGDWARF
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -448,7 +448,7 @@ jobs:
run: zip CLANGDWARF_fw_artifacts.zip ./firmware_artifacts/* -r

- name: Upload to Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: CLANGDWARF Firmware Artifacts
path: CLANGDWARF_fw_artifacts.zip
Expand All @@ -457,7 +457,7 @@ jobs:
name: Linux GCC
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -553,7 +553,7 @@ jobs:
run: zip GCC_fw_artifacts.zip ./firmware_artifacts/* -r

- name: Upload to Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: GCC Firmware Artifacts
path: GCC_fw_artifacts.zip
Expand All @@ -575,7 +575,7 @@ jobs:
]
steps:
- name: Checkout ocbuild repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: acidanthera/ocbuild
ref: master
Expand Down
2 changes: 2 additions & 0 deletions CryptoPkg/Library/IntrinsicLib/CopyMem.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
#include <Base.h>
#include <Library/BaseMemoryLib.h>

#if !defined (__arm__)
#if defined (__clang__) && !defined (__APPLE__)

/* Copies bytes between buffers */
Expand Down Expand Up @@ -53,3 +54,4 @@ __bzero (
ZeroMem (src, count);
}
#endif
#endif
57 changes: 0 additions & 57 deletions EmbeddedPkg/Library/PrePiMemoryAllocationLib/MemoryAllocationLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,60 +156,3 @@ PhaseFreePool (
{
// Not implemented yet
}

/**
Reallocates a buffer of type EfiBootServicesData.
Allocates and zeros the number bytes specified by NewSize from memory of type
EfiBootServicesData. If OldBuffer is not NULL, then the smaller of OldSize and
NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
OldBuffer is freed. A pointer to the newly allocated buffer is returned.
If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
enough memory remaining to satisfy the request, then NULL is returned.
If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
is greater than (MAX_ADDRESS - OldBuffer + 1), then ASSERT().
@param OldSize The size, in bytes, of OldBuffer.
@param NewSize The size, in bytes, of the buffer to reallocate.
@param OldBuffer The buffer to copy to the allocated buffer. This is an optional
parameter that may be NULL.
@return A pointer to the allocated buffer or NULL if allocation fails.
**/
VOID *
EFIAPI
ReallocatePool (
IN UINTN OldSize,
IN UINTN NewSize,
IN VOID *OldBuffer OPTIONAL
)
{
VOID *NewBuffer;

// Validate the OldBuffer is HobAllocated.
DEBUG_CODE_BEGIN ();
EFI_HOB_HANDOFF_INFO_TABLE *HandOffHob;

if (OldBuffer != NULL) {
HandOffHob = GetHobList ();
ASSERT (((EFI_PHYSICAL_ADDRESS)(UINTN)OldBuffer >= HandOffHob->EfiMemoryBottom));
ASSERT (((EFI_PHYSICAL_ADDRESS)((UINTN)OldBuffer + OldSize) <= HandOffHob->EfiFreeMemoryBottom));
}

DEBUG_CODE_END ();

// If new buffer would be smaller just return old buffer as FreePool isn't supported.
if ((OldBuffer != NULL) && (OldSize >= NewSize)) {
return OldBuffer;
}

NewBuffer = AllocateZeroPool (NewSize);
if ((NewBuffer != NULL) && (OldBuffer != NULL)) {
CopyMem (NewBuffer, OldBuffer, MIN (OldSize, NewSize));
FreePool (OldBuffer);
}

return NewBuffer;
}
1 change: 1 addition & 0 deletions MdeModulePkg/Bus/Spi/SpiNorFlashJedecSfdp/SpiNorFlash.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ FillWriteBuffer (
UINT8 SfdpAddressBytes;

SfdpAddressBytes = (UINT8)Instance->SfdpBasicFlash->AddressBytes;
AddressSize = 0;

// Copy Opcode into Write Buffer
Instance->SpiTransactionWriteBuffer[0] = Opcode;
Expand Down
8 changes: 2 additions & 6 deletions MdeModulePkg/Core/Dxe/Misc/MemoryAttributesTable.c
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,7 @@ InsertImageRecord (
DEBUG ((DEBUG_WARN, "!!!!!!!! Image - %a !!!!!!!!\n", PdbPointer));
}

Status = EFI_ABORTED;
goto Finish;
return;
}

ImageRecord = UefiImageLoaderGetImageRecord (ImageContext);
Expand All @@ -686,9 +685,6 @@ InsertImageRecord (
//

InsertSortImageRecord (ImageRecord);

Finish:
return;
}

/**
Expand Down Expand Up @@ -728,7 +724,7 @@ FindImageRecord (
}
}

return;
return NULL;
}

/**
Expand Down
Loading

0 comments on commit 3926c38

Please sign in to comment.