2016-07-12 11:01:24 +02:00
|
|
|
#
|
|
|
|
# Copyright (c) 2011-2015, ARM Limited. All rights reserved.
|
|
|
|
# Copyright (c) 2014-2016, Linaro Limited. All rights reserved.
|
|
|
|
# Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.
|
|
|
|
#
|
2019-04-04 01:03:23 +02:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
2016-07-12 11:01:24 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# Rules are use with the [FV] section's module INF type to define
|
|
|
|
# how an FFS file is created for a given INF file. The following Rule are the default
|
|
|
|
# rules for the different module type. User can add the customized rules to define the
|
|
|
|
# content of the FFS file.
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
# Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
|
|
|
|
############################################################################
|
|
|
|
#
|
|
|
|
#[Rule.Common.DXE_DRIVER]
|
|
|
|
# FILE DRIVER = $(NAMED_GUID) {
|
|
|
|
# DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
|
|
|
# COMPRESS PI_STD {
|
|
|
|
# GUIDED {
|
|
|
|
# PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
|
|
|
# UI STRING="$(MODULE_NAME)" Optional
|
|
|
|
# VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
|
|
|
# }
|
|
|
|
# }
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
[Rule.Common.SEC]
|
2024-07-01 11:18:06 +02:00
|
|
|
FILE SEC = $(NAMED_GUID) {
|
|
|
|
UE UE $(INF_OUTPUT)/$(MODULE_NAME).efi
|
2016-07-12 11:01:24 +02:00
|
|
|
}
|
|
|
|
|
2020-06-08 13:02:12 +02:00
|
|
|
[Rule.Common.SEC.SELF_RELOC]
|
|
|
|
FILE SEC = $(NAMED_GUID) {
|
2024-07-01 11:18:06 +02:00
|
|
|
UE UE $(INF_OUTPUT)/$(MODULE_NAME).efi
|
2020-06-08 13:02:12 +02:00
|
|
|
}
|
|
|
|
|
2016-07-12 11:01:24 +02:00
|
|
|
[Rule.Common.PEI_CORE]
|
2024-07-01 11:18:06 +02:00
|
|
|
FILE PEI_CORE = $(NAMED_GUID) {
|
|
|
|
UE UE $(INF_OUTPUT)/$(MODULE_NAME).efi
|
|
|
|
UI STRING="$(MODULE_NAME)" Optional
|
2016-07-12 11:01:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
[Rule.Common.PEIM]
|
2024-07-01 11:18:06 +02:00
|
|
|
FILE PEIM = $(NAMED_GUID) {
|
|
|
|
PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
|
|
|
UE UE $(INF_OUTPUT)/$(MODULE_NAME).efi
|
|
|
|
UI STRING="$(MODULE_NAME)" Optional
|
2016-07-12 11:01:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
[Rule.Common.DXE_CORE]
|
|
|
|
FILE DXE_CORE = $(NAMED_GUID) {
|
2024-07-01 11:18:06 +02:00
|
|
|
UE UE $(INF_OUTPUT)/$(MODULE_NAME).efi
|
|
|
|
UI STRING="$(MODULE_NAME)" Optional
|
2016-07-12 11:01:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
[Rule.Common.UEFI_DRIVER]
|
|
|
|
FILE DRIVER = $(NAMED_GUID) {
|
2024-07-01 11:18:06 +02:00
|
|
|
DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
|
|
|
UE UE $(INF_OUTPUT)/$(MODULE_NAME).efi
|
|
|
|
UI STRING="$(MODULE_NAME)" Optional
|
2016-07-12 11:01:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
[Rule.Common.DXE_DRIVER]
|
|
|
|
FILE DRIVER = $(NAMED_GUID) {
|
2024-07-01 11:18:06 +02:00
|
|
|
DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
|
|
|
UE UE $(INF_OUTPUT)/$(MODULE_NAME).efi
|
|
|
|
UI STRING="$(MODULE_NAME)" Optional
|
|
|
|
RAW ACPI Optional |.acpi
|
|
|
|
RAW ASL Optional |.aml
|
2016-07-12 11:01:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
[Rule.Common.DXE_RUNTIME_DRIVER]
|
|
|
|
FILE DRIVER = $(NAMED_GUID) {
|
2024-07-01 11:18:06 +02:00
|
|
|
DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
|
|
|
UE UE $(INF_OUTPUT)/$(MODULE_NAME).efi
|
|
|
|
UI STRING="$(MODULE_NAME)" Optional
|
2016-07-12 11:01:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
[Rule.Common.UEFI_APPLICATION]
|
|
|
|
FILE APPLICATION = $(NAMED_GUID) {
|
2024-07-01 11:18:06 +02:00
|
|
|
UI STRING="$(MODULE_NAME)" Optional
|
|
|
|
UE UE $(INF_OUTPUT)/$(MODULE_NAME).efi
|
2016-07-12 11:01:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
[Rule.Common.UEFI_DRIVER.BINARY]
|
|
|
|
FILE DRIVER = $(NAMED_GUID) {
|
|
|
|
DXE_DEPEX DXE_DEPEX Optional |.depex
|
|
|
|
PE32 PE32 |.efi
|
|
|
|
UI STRING="$(MODULE_NAME)" Optional
|
|
|
|
VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
|
|
|
}
|
|
|
|
|
|
|
|
[Rule.Common.UEFI_APPLICATION.BINARY]
|
|
|
|
FILE APPLICATION = $(NAMED_GUID) {
|
2024-07-01 11:18:06 +02:00
|
|
|
UE UE |.efi
|
2016-07-12 11:01:24 +02:00
|
|
|
UI STRING="$(MODULE_NAME)" Optional
|
|
|
|
VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
|
|
|
}
|
|
|
|
|
|
|
|
[Rule.Common.USER_DEFINED.ACPITABLE]
|
|
|
|
FILE FREEFORM = $(NAMED_GUID) {
|
|
|
|
RAW ACPI |.acpi
|
|
|
|
RAW ASL |.aml
|
|
|
|
UI STRING="$(MODULE_NAME)" Optional
|
|
|
|
}
|