Skip to content

Commit e9338c4

Browse files
committed
add support files for EDK2 build
1 parent 20bda79 commit e9338c4

File tree

5 files changed

+159
-0
lines changed

5 files changed

+159
-0
lines changed

uefi-ntfs-extra.uni

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// /** @file
2+
// UEFI:NTFS package localized strings and content
3+
//
4+
// Copyright (c) 2021, Pete Batard <[email protected]>
5+
//
6+
// SPDX-License-Identifier: GPL-2.0-or-later
7+
//
8+
// **/
9+
10+
#string STR_PROPERTIES_PACKAGE_NAME
11+
#language en-US
12+
"UEFI:NTFS Bootloader Package"

uefi-ntfs.dec

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## @file
2+
# UEFI:NTFS Package
3+
#
4+
# Copyright (c) 2021, Pete Batard <[email protected]>
5+
#
6+
##
7+
8+
[Defines]
9+
DEC_SPECIFICATION = 0x00010005
10+
PACKAGE_NAME = uefi-ntfs
11+
PACKAGE_UNI_FILE = uefi-ntfs.uni
12+
PACKAGE_GUID = 30EF8F31-F121-47C4-886C-EA387D5DC520
13+
PACKAGE_VERSION = 1.0
14+
15+
[UserExtensions.TianoCore."ExtraFiles"]
16+
uefi-ntfs-extra.uni

uefi-ntfs.dsc

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
## @file
2+
# UEFI:NTFS Bootloader
3+
#
4+
# Copyright (c) 2021, Pete Batard <[email protected]>
5+
#
6+
# SPDX-License-Identifier: GPL-2.0-or-later
7+
#
8+
##
9+
10+
[Defines]
11+
PLATFORM_NAME = uefi-ntfs
12+
PLATFORM_GUID = 4F8F45AC-93DD-418D-9366-52556EBAC2B4
13+
PLATFORM_VERSION = 1.3
14+
DSC_SPECIFICATION = 0x00010005
15+
SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64
16+
OUTPUT_DIRECTORY = Build
17+
BUILD_TARGETS = DEBUG|RELEASE|NOOPT
18+
SKUID_IDENTIFIER = DEFAULT
19+
DEFINE FORCE_READONLY = FALSE
20+
21+
[BuildOptions]
22+
DEBUG_*_*_CC_FLAGS = -DENABLE_DEBUG
23+
RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
24+
*_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
25+
26+
!include MdePkg/MdeLibs.dsc.inc
27+
28+
[LibraryClasses]
29+
#
30+
# Entry Point Libraries
31+
#
32+
UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
33+
#
34+
# Common Libraries
35+
#
36+
BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
37+
BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
38+
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
39+
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
40+
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
41+
PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
42+
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
43+
UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
44+
UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
45+
UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
46+
47+
[LibraryClasses.ARM, LibraryClasses.AARCH64, LibraryClasses.RISCV64]
48+
NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
49+
NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
50+
51+
###################################################################################################
52+
#
53+
# Components Section - list of the modules and components that will be processed by compilation
54+
# tools and the EDK II tools to generate PE32/PE32+/Coff image files.
55+
#
56+
###################################################################################################
57+
58+
[Components]
59+
uefi-ntfs.inf

uefi-ntfs.inf

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
## @file
2+
# Component Description File for UEFI:NTFS.
3+
#
4+
# This bootloader attempts to load an NTFS file system driver,
5+
# then mount an NTFS file system residing on the same disk and
6+
# then invokes the relevant UEFI bootloader from the new volume.
7+
#
8+
# Copyright (c) 2021, Pete Batard <[email protected]>
9+
#
10+
# SPDX-License-Identifier: GPL-2.0-or-later
11+
#
12+
##
13+
14+
[Defines]
15+
INF_VERSION = 0x00010005
16+
BASE_NAME = uefi-ntfs
17+
FILE_GUID = F4C3635A-68DB-4154-953D-A10F9C6C0036
18+
MODULE_TYPE = UEFI_APPLICATION
19+
VERSION_STRING = 1.0
20+
ENTRY_POINT = efi_main
21+
22+
[Sources]
23+
boot.c
24+
path.c
25+
26+
[Packages]
27+
uefi-ntfs.dec
28+
MdePkg/MdePkg.dec
29+
30+
[LibraryClasses]
31+
BaseMemoryLib
32+
BaseLib
33+
DebugLib
34+
MemoryAllocationLib
35+
UefiApplicationEntryPoint
36+
UefiBootServicesTableLib
37+
UefiLib
38+
UefiRuntimeServicesTableLib
39+
PcdLib
40+
41+
[Guids]
42+
gEfiFileSystemInfoGuid
43+
gEfiFileSystemVolumeLabelInfoIdGuid
44+
45+
[Protocols]
46+
gEfiBlockIoProtocolGuid
47+
gEfiBlockIo2ProtocolGuid
48+
gEfiDevicePathToTextProtocolGuid
49+
gEfiDiskIoProtocolGuid
50+
gEfiDiskIo2ProtocolGuid
51+
gEfiLoadedImageProtocolGuid
52+
gEfiSimpleFileSystemProtocolGuid
53+
gEfiUnicodeCollationProtocolGuid
54+
gEfiUnicodeCollation2ProtocolGuid
55+
56+
[Pcd]
57+
gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultLang
58+
gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultPlatformLang
59+
60+
[BuildOptions]
61+
RELEASE_*_*_CC_FLAGS = -Os -DMDEPKG_NDEBUG -DNDEBUG

uefi-ntfs.uni

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// /** @file
2+
// Module implementation for the UEFI:NTFS Bootloader
3+
//
4+
// Copyright (c) 2021, Pete Batard <[email protected]>
5+
//
6+
// SPDX-License-Identifier: GPL-2.0-or-later
7+
//
8+
// **/
9+
10+
#string STR_PACKAGE_ABSTRACT #language en-US "Module implementation for the UEFI:NTFS Bootloader"
11+
#string STR_PACKAGE_DESCRIPTION #language en-US "This Package contains module implementation for the UEFI:NTFS Bootloader."

0 commit comments

Comments
 (0)