Skip to content
This repository was archived by the owner on Jan 7, 2023. It is now read-only.

Commit 181850f

Browse files
committed
It compiles, somehow
1 parent 64fddc3 commit 181850f

File tree

148 files changed

+1454
-17
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+1454
-17
lines changed

Abm.dec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@
66

77
#[Includes]
88
# StdLib/Include
9+
[Includes.common]
10+
Include

Abm.dsc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,16 @@
7575
#lvgl
7676
LVGLLib|AbmPkg/Library/LVGL/lvgl.inf
7777

78+
79+
StrLib|AbmPkg/Library/StrLib/StrLib.inf
80+
MallocLib|AbmPkg/Library/MallocLib/MallocLib.inf
81+
MicroLibC|AbmPkg/Library/MicroLibC/MicroLibC.inf
82+
7883
[LibraryClasses.AARCH64]
7984
CompilerIntrinsicsLib|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
8085

8186
[Components]
8287
AbmPkg/abm.inf
83-
AbmPkg/gptsync.inf
8488
AbmPkg/filesystems/ext2.inf
8589
AbmPkg/filesystems/ext4.inf
8690
AbmPkg/filesystems/btrfs.inf

EfiLib/BdsHelper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
2121
#include "mystrings.h"
2222
#include "../refind/screen.h"
2323
#include "../refind/lib.h"
24-
#include "../include/refit_call_wrapper.h"
24+
#include "refit_call_wrapper.h"
2525

2626
EFI_GUID gEfiLegacyBootProtocolGuid = { 0xdb9a1e3d, 0x45cb, 0x4abb, { 0x85, 0x3b, 0xe5, 0x38, 0x7f, 0xdb, 0x2e, 0x2d }};
2727

EfiLib/BdsHelper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
1717
**/
1818

1919
#ifdef __MAKEWITH_TIANO
20-
#include "../include/tiano_includes.h"
20+
#include "tiano_includes.h"
2121
#else
2222
#include "gnuefi-helper.h"
2323
#include "GenericBdsLib.h"

EfiLib/BdsTianoCore.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
1313
**/
1414

1515
#ifdef __MAKEWITH_TIANO
16-
#include "../include/tiano_includes.h"
16+
#include "tiano_includes.h"
1717
#else
1818
#include "BdsHelper.h"
1919
#include "gnuefi-helper.h"
2020
#endif
21-
#include "../include/refit_call_wrapper.h"
21+
#include "refit_call_wrapper.h"
2222

2323
EFI_GUID EfiDevicePathProtocolGuid = { 0x09576E91, 0x6D3F, 0x11D2, { 0x8E, 0x39, 0x00, 0xA0, 0xC9, 0x69, 0x72, 0x3B }};
2424

EfiLib/BmLib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
1717
#else
1818
#include "gnuefi-helper.h"
1919
#endif
20-
#include "../include/refit_call_wrapper.h"
20+
#include "refit_call_wrapper.h"
2121

2222
/**
2323

EfiLib/legacy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
#define EfiReallocatePool ReallocatePool
2424
#define EfiLibLocateProtocol LibLocateProtocol
2525
#else
26-
#include "../include/tiano_includes.h"
26+
#include "tiano_includes.h"
2727
#endif
2828
#include "legacy.h"
2929
#include "GenericBdsLib.h"
3030
#include "../refind/global.h"
31-
#include "../include/refit_call_wrapper.h"
31+
#include "refit_call_wrapper.h"
3232

3333
BOOT_OPTION_BBS_MAPPING *mBootOptionBbsMapping = NULL;
3434
UINTN mBootOptionBbsMappingCount = 0;

Include/Library/MallocLib.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#ifndef __LIBRARY_MALLOC_H
2+
#define __LIBRARY_MALLOC_H
3+
4+
VOID *malloc(UINTN size);
5+
VOID *malloc_rt(UINTN Size);
6+
VOID *memalign(UINTN boundary, UINTN size);
7+
VOID *memalign2(UINTN boundary, UINTN size, BOOLEAN runtime);
8+
VOID *calloc(UINTN count, UINTN size);
9+
VOID free(VOID *ptr);
10+
11+
#endif

Include/Library/StrLib.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#ifndef __LIBRARY_STR_H__
2+
#define __LIBRARY_STR_H__
3+
4+
CHAR8 *strtok(CHAR8 *s, CONST CHAR8 *delim);
5+
CHAR8 *strtok_r(CHAR8 *s, CONST CHAR8 *delim, CHAR8 **last);
6+
UINTN strlcat(CHAR8 *dst, CONST CHAR8 *src, UINTN siz);
7+
UINTN strspn(CHAR8 CONST *s, CHAR8 CONST *accept);
8+
CHAR8 *strchr(CONST CHAR8 *s, INTN c);
9+
CHAR8 *strpbrk(CONST CHAR8 *s, CONST CHAR8 *accept);
10+
11+
#endif

Include/Library/minstdbool.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#ifndef __MIN_STDBOOL_H__
2+
#define __MIN_STDBOOL_H__
3+
4+
#include <Library/BaseLib.h>
5+
6+
typedef BOOLEAN bool;
7+
8+
#define true TRUE
9+
#define false FALSE
10+
11+
#endif

0 commit comments

Comments
 (0)