Skip to content

Commit a764f15

Browse files
committed
Version 0.16.0
- image reconstruction code refactored - implemented patching of VTF in case of PEI core entry point change
1 parent 9665d0b commit a764f15

20 files changed

+1075
-727
lines changed

LZMA/LzmaCompress.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* LZMA Compress Header
22
3-
Copyright (c) 2012, Nikolaj Schlej. All rights reserved.
3+
Copyright (c) 2014, Nikolaj Schlej. All rights reserved.
44
This program and the accompanying materials
55
are licensed and made available under the terms and conditions of the BSD License
66
which accompanies this distribution. The full text of the license may be found at

basetypes.h

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* basetypes.h
22
3-
Copyright (c) 2013, Nikolaj Schlej. All rights reserved.
3+
Copyright (c) 2014, Nikolaj Schlej. All rights reserved.
44
This program and the accompanying materials
55
are licensed and made available under the terms and conditions of the BSD License
66
which accompanies this distribution. The full text of the license may be found at
@@ -14,6 +14,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
1414
#ifndef __BASETYPES_H__
1515
#define __BASETYPES_H__
1616

17+
1718
#include <stdarg.h>
1819
#include <stdint.h>
1920

@@ -79,6 +80,9 @@ typedef uint16_t CHAR16;
7980
#define ERR_UNKNOWN_IMAGE_TYPE 29
8081
#define ERR_UNKNOWN_PE_OPTIONAL_HEADER_TYPE 30
8182
#define ERR_UNKNOWN_RELOCATION_TYPE 31
83+
#define ERR_GENERIC_CALL_NOT_SUPPORTED 32
84+
#define ERR_VOLUME_BASE_NOT_FOUND 33
85+
#define ERR_PEI_CORE_ENTRY_POINT_NOT_FOUND 34
8286
#define ERR_NOT_IMPLEMENTED 0xFF
8387

8488
// Compression algorithms
@@ -120,7 +124,8 @@ enum ActionTypes {
120124
Insert,
121125
Replace,
122126
Remove,
123-
Rebuild
127+
Rebuild,
128+
Rebase
124129
};
125130

126131
// Types
@@ -134,6 +139,7 @@ enum ItemTypes {
134139
File,
135140
Section
136141
};
142+
137143
// Subtypes
138144
enum ImageSubtypes{
139145
IntelImage = 70,
@@ -145,8 +151,12 @@ enum CapsuleSubtypes {
145151
UefiCapsule
146152
};
147153

154+
enum VolumeSubtypes {
155+
BootVolume = 90
156+
};
157+
148158
enum RegionSubtypes {
149-
DescriptorRegion = 90,
159+
DescriptorRegion = 100,
150160
GbeRegion,
151161
MeRegion,
152162
BiosRegion,

descriptor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* descriptor.h
22
3-
Copyright (c) 2013, Nikolaj Schlej. All rights reserved.
3+
Copyright (c) 2014, Nikolaj Schlej. All rights reserved.
44
This program and the accompanying materials
55
are licensed and made available under the terms and conditions of the BSD License
66
which accompanies this distribution. The full text of the license may be found at
@@ -167,4 +167,4 @@ extern UINT8* calculateAddress16(UINT8* baseAddress, const UINT16 baseOrLimit);
167167
extern UINT32 calculateRegionOffset(const UINT16 base);
168168
// Calculate size of region using it's base and limit
169169
extern UINT32 calculateRegionSize(const UINT16 base, const UINT16 limit);
170-
#endif
170+
#endif

ffs.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* ffs.h
22
3-
Copyright (c) 2013, Nikolaj Schlej. All rights reserved.
3+
Copyright (c) 2014, Nikolaj Schlej. All rights reserved.
44
This program and the accompanying materials
55
are licensed and made available under the terms and conditions of the BSD License
66
which accompanies this distribution. The full text of the license may be found at
@@ -94,9 +94,13 @@ typedef struct {
9494
// Filesystem GUIDs
9595
const QByteArray EFI_FIRMWARE_FILE_SYSTEM_GUID
9696
("\xD9\x54\x93\x7A\x68\x04\x4A\x44\x81\xCE\x0B\xF6\x17\xD8\x90\xDF", 16);
97+
const QByteArray EFI_APPLE_BOOT_VOLUME_FILE_SYSTEM_GUID
98+
("\xAD\xEE\xAD\x04\xFF\x61\x31\x4D\xB6\xBA\x64\xF8\xBF\x90\x1F\x5A", 16);
9799
const QByteArray EFI_FIRMWARE_FILE_SYSTEM2_GUID
98100
("\x78\xE5\x8C\x8C\x3D\x8A\x1C\x4F\x99\x35\x89\x61\x85\xC3\x2D\xD3", 16);
99101

102+
103+
100104
// Firmware volume signature
101105
const QByteArray EFI_FV_SIGNATURE("_FVH", 4);
102106
#define EFI_FV_SIGNATURE_OFFSET 0x28

0 commit comments

Comments
 (0)