Skip to content

Commit

Permalink
Add FDT_ENABLE Defines
Browse files Browse the repository at this point in the history
  • Loading branch information
S199pWa1k9r committed Aug 4, 2022
1 parent f6b46cb commit aef6d30
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions edk2-rockchip/Platform/FriendlyElec/NanoPi-R5S/NanoPi-R5S.dsc
Expand Up @@ -27,6 +27,7 @@
SKUID_IDENTIFIER = DEFAULT
FLASH_DEFINITION = Platform/Rockchip/Rk356x/Rk356x.fdf
BOARD_DXE_FV_COMPONENTS = Platform/FriendlyElec/NanoPi-R5S/NanoPi-R5S.fdt.inc
FDT_ENABLE = TRUE

#
# Defines for default states. These can be changed on the command line.
Expand Down Expand Up @@ -424,7 +425,7 @@
gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVendor|L"EDK2"
gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE
gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x3
gRk356xTokenSpaceGuid.PcdPlatformName|"FriendlyElec NanoPi"
gRk356xTokenSpaceGuid.PcdPlatformName|"FriendlyElec NanoPi-R5S"
gRk356xTokenSpaceGuid.PcdCpuName|"Rockchip RK3568 (Cortex-A55)"
gRk356xTokenSpaceGuid.PcdPlatformVendorName|"FriendlyElec"
gRk356xTokenSpaceGuid.PcdFamilyName|"NanoPi-R5S"
Expand Down Expand Up @@ -535,6 +536,7 @@
<LibraryClasses>
NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
}
MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
Expand Down Expand Up @@ -612,7 +614,9 @@
#
# Devicetree support
#
# Platform/Rockchip/Rk356x/Drivers/FdtDxe/FdtDxe.inf
!if $(FDT_ENABLE) == TRUE
Platform/Rockchip/Rk356x/Drivers/FdtDxe/FdtDxe.inf
!endif

#
# ACPI Support
Expand Down
Expand Up @@ -13,7 +13,9 @@ INF Platform/FriendlyElec/NanoPi-R5S/Drivers/BoardInitDxe/BoardInitDxe.inf
#
# Devicetree support
#
#INF Platform/Rockchip/Rk356x/Drivers/FdtDxe/FdtDxe.inf
!if $(FDT_ENABLE) == TRUE
INF Platform/Rockchip/Rk356x/Drivers/FdtDxe/FdtDxe.inf
!endif

#
# ACPI Support
Expand Down

0 comments on commit aef6d30

Please sign in to comment.